/*
 * KinoShit torrent details
 * Styled to follow KinoHit-Remaster-17: native section headings,
 * restrained borders, compact metadata and theme button treatment.
 */
.kst-release {
    margin-top: 26px;
    margin-bottom: 26px;
}
.kst-release__card {
    padding: 17px 19px;
    border: 1px solid rgba(127, 127, 127, .22);
    border-radius: 12px;
    background: rgba(127, 127, 127, .045);
}
.kst-release__name-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 13px;
    border-bottom: 1px solid rgba(127, 127, 127, .2);
}
.kst-release__name {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
.kst-release__quality {
    flex: 0 0 auto;
    display: inline-block;
    padding: 4px 9px;
    border-radius: 6px;
    background: rgba(127, 127, 127, .13);
    color: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}
.kst-release__specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
    padding-top: 5px;
}
.kst-release__spec {
    display: grid;
    grid-template-columns: minmax(105px, 34%) minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(127, 127, 127, .13);
}
.kst-release__label {
    color: inherit;
    opacity: .62;
    font-size: 12px;
    line-height: 1.45;
}
.kst-release__value {
    min-width: 0;
    color: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
.kst-release__spec--seeds .kst-release__value {
    color: #279765;
}
.kst-release__download {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 15px;
    padding-top: 14px;
    border-top: 1px solid rgba(127, 127, 127, .2);
}
.kst-release__download-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.kst-release__download-title {
    font-size: 13px;
    font-weight: 700;
}
.kst-release__download-note {
    font-size: 11px;
    opacity: .62;
    line-height: 1.4;
}
.kst-release__button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 0 0 auto;
    min-height: 42px;
    padding: 10px 17px !important;
    border: 0;
    border-radius: 8px;
    background: var(--accent, #d94b4b);
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-decoration: none !important;
    box-shadow: none;
    transition: filter .15s ease, transform .15s ease;
}
.kst-release__button:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}
.kst-release__button .fal {
    font-size: 15px;
}
.kst-release__empty {
    padding: 14px 16px;
    border: 1px dashed rgba(127, 127, 127, .28);
    border-radius: 9px;
    font-size: 13px;
    line-height: 1.5;
    opacity: .7;
}
@media (max-width: 760px) {
    .kst-release__specs {
        grid-template-columns: 1fr;
    }
    .kst-release__spec {
        grid-template-columns: minmax(105px, 30%) minmax(0, 1fr);
    }
}
@media (max-width: 520px) {
    .kst-release__card {
        padding: 14px;
    }
    .kst-release__name-row {
        gap: 8px;
    }
    .kst-release__name {
        font-size: 15px;
    }
    .kst-release__download {
        align-items: stretch;
        flex-direction: column;
        gap: 11px;
    }
    .kst-release__button {
        width: 100%;
    }
}


/* KinoShit content ads — restrained wrapper matching the site's section cards */
.kino-content-ad {
    position: relative;
    display: block;
    width: 100%;
    margin: 22px 0 26px;
    padding: 10px 12px 12px;
    border: 1px solid rgba(127, 127, 127, .22);
    border-radius: 10px;
    background: rgba(127, 127, 127, .035);
    box-sizing: border-box;
    text-align: center;
    overflow: hidden;
}
.kino-content-ad__label {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 16px;
    margin: 0 0 7px;
    color: inherit;
    opacity: .48;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1;
    text-transform: uppercase;
}
.kino-content-ad__body {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
.kino-content-ad__body > div[id^="mp_custom_"] {
    max-width: 100%;
}
.kino-content-ad iframe,
.kino-content-ad img {
    max-width: 100%;
}
.kino-content-ad--after-info {
    margin-top: 20px;
}
.kino-content-ad--download {
    margin-top: 20px;
    margin-bottom: 22px;
}
.kino-content-ad--comments {
    margin-top: 18px;
    margin-bottom: 20px;
}
@media (max-width: 600px) {
    .kino-content-ad {
        margin: 17px 0 20px;
        padding: 8px 8px 10px;
        border-radius: 8px;
    }
    .kino-content-ad__label {
        margin-bottom: 5px;
    }
}


/* Final UX adjustment: green magnet action and safe text wrapping */
.kst-release__download {
    flex-wrap: wrap;
}
.kst-release__download-text {
    flex: 1 1 220px;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
}
.kst-release__download-title,
.kst-release__download-note {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}
.kst-release__button {
    background: #229653 !important;
    border-color: #229653 !important;
    color: #fff !important;
    white-space: normal;
    overflow-wrap: anywhere;
    max-width: 100%;
}
.kst-release__button:hover,
.kst-release__button:focus {
    background: #187a42 !important;
    border-color: #187a42 !important;
    color: #fff !important;
}
@media (max-width: 640px) {
    .kst-release__download-text {
        flex-basis: 100%;
    }
    .kst-release__button {
        flex: 1 1 100%;
        width: 100%;
    }
}


/* Две кнопки скачивания: Magnet (зелёная) и .torrent (синяя) */
.kst-release__actions {
    display: flex;
    flex: 1 1 100%;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    min-width: 0;
    max-width: 100%;
}
.kst-release__button--magnet {
    background: #229653 !important;
    border-color: #229653 !important;
    color: #fff !important;
}
.kst-release__button--magnet:hover,
.kst-release__button--magnet:focus {
    background: #187a42 !important;
    border-color: #187a42 !important;
    color: #fff !important;
}
.kst-release__button--torrent {
    background: #2878c8 !important;
    border-color: #2878c8 !important;
    color: #fff !important;
}
.kst-release__button--torrent:hover,
.kst-release__button--torrent:focus {
    background: #1d62a7 !important;
    border-color: #1d62a7 !important;
    color: #fff !important;
}
.kst-release__actions .kst-release__button {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}
@media (max-width: 640px) {
    .kst-release__actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    .kst-release__actions .kst-release__button {
        width: 100%;
        flex: 1 1 auto;
    }
}


/* DLE attachment field: let DLE render the real download URL, style its anchor */
.kst-release__torrent-download {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-top: 12px;
    padding-top: 13px;
    border-top: 1px solid rgba(127, 127, 127, .2);
}
.kst-release__torrent-output {
    display: flex;
    flex: 0 1 auto;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
    max-width: 100%;
}
.kst-release__torrent-output a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 100%;
    min-height: 42px;
    padding: 10px 17px !important;
    border: 0 !important;
    border-radius: 8px;
    background: #2878c8 !important;
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    text-decoration: none !important;
    overflow-wrap: anywhere;
    white-space: normal;
    box-shadow: none !important;
}
.kst-release__torrent-output a:hover,
.kst-release__torrent-output a:focus {
    background: #1d62a7 !important;
    color: #fff !important;
}
.kst-release__torrent-output a img {
    display: none !important;
}
@media (max-width: 640px) {
    .kst-release__torrent-download {
        align-items: stretch;
        flex-direction: column;
        gap: 9px;
    }
    .kst-release__torrent-output {
        width: 100%;
    }
    .kst-release__torrent-output a {
        width: 100%;
    }
}
