/* Film Review Site Theme - Dark Nav / White Body / Orange Accent */

:root {
    --sr-black: #111111;
    --sr-darkbar: #1a1a1a;
    --sr-orange: #f5a623;
    --sr-orange-dark: #d4891a;
    --sr-orange-light: #fff4e0;
    --sr-white: #ffffff;
    --sr-offwhite: #f7f7f7;
    --sr-light-gray: #ebebeb;
    --sr-mid-gray: #cccccc;
    --sr-text: #1a1a1a;
    --sr-text-soft: #555555;
    --sr-text-muted: #888888;
    --sr-border: #e0e0e0;
    --sr-shadow: rgba(0,0,0,0.10);
    --sr-shadow-hover: rgba(0,0,0,0.22);
    --sr-radius: 3px;
    --sr-radius-md: 6px;
    --sr-radius-pill: 18px;
    --sr-trs: all 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--sr-offwhite);
    color: var(--sr-text);
    line-height: 1.5;
    font-size: 14px;
    overflow-x: hidden;
}

/* ===================== HEADER ===================== */
.sr-header {
    background: var(--sr-black);
    padding: 0;
}

.sr-header-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: nowrap;
}

.sr-logo-link {
    text-decoration: none;
    flex-shrink: 0;
    display: inline-block;
}

.sr-site-name {
    font-size: 27px;
    font-weight: 900;
    color: var(--sr-white);
    letter-spacing: -0.3px;
    line-height: 1;
    text-decoration: none;
    font-style: normal;
    border-bottom: none;
}

.sr-logo-link:hover .sr-site-name {
    color: var(--sr-orange);
}

.sr-domain-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    border-left: 2px solid #333;
    padding-left: 16px;
}

.sr-domain-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--sr-orange);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.sr-domain-addr {
    font-size: 17px;
    font-weight: 700;
    color: var(--sr-white);
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* ===================== LAYOUT ===================== */
.sr-outer {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 14px;
}

.sr-gap {
    padding: 6px 0;
}

/* ===================== NAV BAR ===================== */
.sr-navbox {
    background: var(--sr-white);
    border: 1px solid var(--sr-border);
    border-radius: var(--sr-radius-md);
    overflow: hidden;
    margin-bottom: 6px;
    box-shadow: 0 1px 3px var(--sr-shadow);
}

.sr-navrow {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--sr-light-gray);
}

.sr-navrow:last-child {
    border-bottom: none;
}

.sr-navzone {
    background: var(--sr-darkbar);
    color: var(--sr-orange);
    font-size: 13px;
    font-weight: 800;
    width: 10%;
    min-width: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 4px;
    flex-shrink: 0;
    text-align: center;
    line-height: 1.3;
    letter-spacing: 0.2px;
    border-right: 3px solid var(--sr-orange);
}

.sr-navlinks {
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 7px 10px;
    align-items: center;
    background: var(--sr-white);
}

.sr-navlinks a {
    display: inline-block;
    color: var(--sr-text);
    text-decoration: none;
    padding: 4px 6px;
    border-radius: var(--sr-radius);
    transition: var(--sr-trs);
    background: var(--sr-offwhite);
    border: 1px solid var(--sr-border);
    white-space: nowrap;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    width: calc((100% - 35px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
}

.sr-navlinks a:hover {
    background: var(--sr-orange);
    color: var(--sr-black);
    border-color: var(--sr-orange-dark);
    font-weight: 700;
}

.sr-navlinks a.active {
    background: var(--sr-orange);
    color: var(--sr-black);
    border-color: var(--sr-orange-dark);
    font-weight: 800;
    box-shadow: 0 2px 6px rgba(245,166,35,0.4);
}

/* ===================== SEARCH ===================== */
.sr-searchbar {
    background: var(--sr-white);
    border-radius: var(--sr-radius-md);
    padding: 11px 14px;
    margin-bottom: 6px;
    border: 1px solid var(--sr-border);
    box-shadow: 0 1px 3px var(--sr-shadow);
}

.sr-searchbar form {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    align-items: center;
}

.sr-searchbar input[type="text"] {
    flex: 1;
    min-width: 130px;
    padding: 9px 13px;
    border: 2px solid var(--sr-light-gray);
    border-radius: var(--sr-radius);
    background: var(--sr-offwhite);
    color: var(--sr-text);
    font-size: 14px;
    transition: var(--sr-trs);
    outline: none;
}

.sr-searchbar input[type="text"]:focus {
    border-color: var(--sr-orange);
    background: var(--sr-white);
    box-shadow: 0 0 0 3px rgba(245,166,35,0.18);
}

.sr-searchbar input[type="text"]::placeholder {
    color: var(--sr-text-muted);
}

.sr-searchbar button {
    padding: 9px 16px;
    border: 2px solid var(--sr-orange-dark);
    border-radius: var(--sr-radius);
    background: var(--sr-orange);
    color: var(--sr-black);
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    transition: var(--sr-trs);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.sr-searchbar button:hover {
    background: var(--sr-orange-dark);
    color: var(--sr-white);
}

/* ===================== HOT TAGS ===================== */
.sr-tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 11px 13px;
    background: var(--sr-white);
    border-radius: var(--sr-radius-md);
    margin-bottom: 6px;
    border: 1px solid var(--sr-border);
    box-shadow: 0 1px 3px var(--sr-shadow);
}

.sr-tagitem {
    padding: 5px 12px;
    background: var(--sr-offwhite);
    border-radius: var(--sr-radius-pill);
    color: var(--sr-text-soft);
    text-decoration: none;
    font-size: 12px;
    transition: var(--sr-trs);
    border: 1px solid var(--sr-border);
    font-weight: 500;
}

.sr-tagitem:hover {
    background: var(--sr-orange);
    color: var(--sr-black);
    border-color: var(--sr-orange-dark);
    font-weight: 700;
}

/* ===================== SECTION BLOCK ===================== */
.sr-section {
    margin-bottom: 6px;
    background: var(--sr-white);
    border-radius: var(--sr-radius-md);
    border: 1px solid var(--sr-border);
    box-shadow: 0 1px 3px var(--sr-shadow);
    overflow: hidden;
}

.sr-section-body {
    padding: 13px 15px 15px;
}

.sr-section-head {
    margin-bottom: 13px;
    padding-bottom: 9px;
    border-bottom: 3px solid var(--sr-light-gray);
    position: relative;
}

.sr-section-head::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 44px;
    height: 3px;
    background: var(--sr-orange);
}

.sr-section-title {
    font-size: 18px;
    font-weight: 900;
    margin: 0;
    color: var(--sr-text);
    letter-spacing: -0.2px;
    text-transform: uppercase;
}

.sr-section-title a {
    color: var(--sr-text);
    text-decoration: none;
    transition: var(--sr-trs);
}

.sr-section-title a:hover {
    color: var(--sr-orange-dark);
}

/* ===================== FILM CARD GRID ===================== */
.film-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    list-style: none;
    padding: 0;
}

.film-grid li {
    position: relative;
}

.film-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--sr-radius);
    aspect-ratio: 600 / 350;
    background: var(--sr-light-gray);
}

.film-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.38s ease;
}

.film-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.film-thumb:hover::after {
    opacity: 1;
}

.film-thumb:hover img {
    transform: scale(1.05);
}

.film-thumb:hover {
    box-shadow: 0 5px 16px var(--sr-shadow-hover);
}

.film-info {
    padding: 7px 0 3px;
}

.film-info h5 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.film-info h5 a {
    color: var(--sr-text);
    text-decoration: none;
    transition: var(--sr-trs);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.film-info h5 a:hover {
    color: var(--sr-orange-dark);
}

/* ===================== DETAIL TITLE BAR ===================== */
.item-header-bar {
    line-height: 1.8;
    text-align: center;
    padding: 15px 18px;
    font-size: 17px;
    margin: 10px 0;
    word-break: break-all;
    background: var(--sr-darkbar);
    border-radius: var(--sr-radius-md);
    color: var(--sr-white);
    border-left: 4px solid var(--sr-orange);
}

.item-header-bar a {
    color: var(--sr-orange) !important;
    text-decoration: none;
    font-weight: 800;
    margin-right: 8px;
}

.item-spec-panel {
    font-size: 14px;
    line-height: 1.9;
    padding: 18px 20px;
    background: var(--sr-white);
    border-radius: var(--sr-radius-md);
    margin: 8px 0;
    border: 1px solid var(--sr-border);
    box-shadow: 0 1px 3px var(--sr-shadow);
    color: var(--sr-text);
}

/* ===================== VIDEO PLAYER ===================== */
.video-container {
    width: 100%;
    height: 610px;
    max-height: 610px;
    margin-bottom: 12px;
    background: #000;
    border-radius: var(--sr-radius-md);
    overflow: hidden;
    box-shadow: 0 4px 18px var(--sr-shadow-hover);
    position: relative;
}

.video-container iframe,
.video-container video,
.video-container #video-container {
    width: 100%;
    height: 100%;
    border: none;
}

.MacPlayer {
    background: #000;
    border-radius: var(--sr-radius-md);
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 4px 20px var(--sr-shadow-hover);
}

/* ===================== TORRENT PREVIEW ===================== */
.torrent-preview picture {
    display: block;
    width: 100%;
}

.torrent-preview img,
.torrent-preview .img_item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--sr-radius);
    border: 1px solid var(--sr-border);
}

.torrent-preview .img_item {
    width: 100%;
}

/* ===================== ACTION BUTTONS ===================== */
.btn-row {
    text-align: center;
    padding: 13px;
    background: var(--sr-white);
    border-radius: var(--sr-radius-md);
    margin: 10px 0;
    border: 1px solid var(--sr-border);
    box-shadow: 0 1px 3px var(--sr-shadow);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
}

.down_btn {
    display: inline-block;
    padding: 10px 22px;
    background: var(--sr-orange);
    color: var(--sr-black);
    text-decoration: none;
    border-radius: var(--sr-radius);
    font-weight: 800;
    font-size: 14px;
    transition: var(--sr-trs);
    margin: 0;
    border: 2px solid var(--sr-orange-dark);
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.down_btn:hover {
    background: var(--sr-orange-dark);
    color: var(--sr-white);
    box-shadow: 0 4px 12px var(--sr-shadow-hover);
}

/* ===================== SHARE SECTION ===================== */
.share-section {
    background: var(--sr-white);
    border-radius: var(--sr-radius-md);
    padding: 14px;
    margin: 10px 0;
    border: 1px solid var(--sr-border);
    box-shadow: 0 1px 3px var(--sr-shadow);
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-url-display {
    background: var(--sr-offwhite);
    border: 1px solid var(--sr-border);
    border-radius: var(--sr-radius);
    padding: 9px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.share-label {
    font-weight: 800;
    font-size: 12px;
    color: var(--sr-orange-dark);
    white-space: nowrap;
    flex-shrink: 0;
}

.share-url {
    font-size: 12px;
    color: var(--sr-text-soft);
    word-break: break-all;
    flex: 1;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
}

.share-copy-btn {
    padding: 9px 18px;
    background: var(--sr-orange);
    color: var(--sr-black);
    border: 2px solid var(--sr-orange-dark);
    border-radius: var(--sr-radius);
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    transition: var(--sr-trs);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.share-copy-btn:hover {
    background: var(--sr-orange-dark);
    color: var(--sr-white);
}

.share-copy-btn:active {
    transform: scale(0.97);
}

.share-icon {
    font-size: 15px;
}

/* ===================== PAGINATION ===================== */
.page_info_div {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    padding: 16px 0;
}

.a_page_info,
.page_info_focus {
    display: inline-block;
    padding: 7px 13px;
    border-radius: var(--sr-radius);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: var(--sr-trs);
    min-width: 36px;
    text-align: center;
}

.a_page_info {
    background: var(--sr-white);
    color: var(--sr-text);
    border: 1px solid var(--sr-border);
}

.a_page_info:hover {
    background: var(--sr-orange);
    border-color: var(--sr-orange-dark);
    color: var(--sr-black);
    font-weight: 800;
}

.page_info_focus {
    background: var(--sr-orange);
    color: var(--sr-black);
    border: 2px solid var(--sr-orange-dark);
    cursor: default;
    font-weight: 900;
}

/* ===================== FOOTER ===================== */
.sr-sitefooter {
    padding: 20px 0;
    text-align: center;
    border-top: 3px solid var(--sr-orange);
    margin-top: 10px;
    background: var(--sr-darkbar);
}

.sr-sitefooter p {
    margin: 6px 0;
    color: #aaa;
    font-size: 13px;
}

.sr-sitefooter a {
    color: #aaa;
    text-decoration: none;
    transition: var(--sr-trs);
}

.sr-sitefooter a:hover {
    color: var(--sr-orange);
}

.flink-panel {
    padding: 11px 13px;
    background: var(--sr-white);
    border-radius: var(--sr-radius-md);
    border: 1px solid var(--sr-border);
}

.flink-panel dl {
    margin: 0;
}

.flink-panel dd {
    display: inline-block;
    margin: 3px 4px;
}

.flink-panel a {
    color: var(--sr-text-soft);
    text-decoration: none;
    font-size: 13px;
    transition: var(--sr-trs);
}

.flink-panel a:hover {
    color: var(--sr-orange-dark);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
    .sr-outer {
        padding: 0 8px;
    }

    .sr-header-inner {
        padding: 8px 8px;
        gap: 10px;
    }

    .sr-site-name {
        font-size: 19px;
    }

    .sr-domain-addr {
        font-size: 13px;
    }

    .sr-domain-label {
        font-size: 9px;
    }

    .sr-domain-wrap {
        padding-left: 10px;
        gap: 5px;
    }

    .sr-gap {
        padding: 4px 0;
    }

    .sr-navzone {
        width: 15%;
        min-width: 0;
        font-size: 10px;
        padding: 7px 2px;
        border-right-width: 2px;
    }

    .sr-navlinks {
        width: 85%;
        gap: 3px;
        padding: 6px 5px;
    }

    .sr-navlinks a {
        font-size: 12px;
        padding: 4px 2px;
        width: calc((100% - 9px) / 4);
        flex-shrink: 0;
        flex-grow: 0;
    }

    .film-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 9px;
    }

    .film-info h5 {
        font-size: 12px;
    }

    .sr-section-title {
        font-size: 16px;
    }

    .video-container {
        height: 56.25vw;
        max-height: 370px;
        margin-bottom: 10px;
    }

    .btn-row {
        padding: 10px 8px;
        gap: 7px;
    }

    .down_btn {
        padding: 9px 13px;
        font-size: 12px;
    }

    .share-section {
        padding: 9px;
        gap: 7px;
    }

    .share-url-display {
        padding: 8px 9px;
    }

    .share-label {
        font-size: 11px;
    }

    .share-url {
        font-size: 10px;
    }

    .share-copy-btn {
        padding: 8px 11px;
        font-size: 12px;
    }

    .sr-tagcloud {
        padding: 9px 11px;
        gap: 5px;
    }

    .sr-tagitem {
        padding: 4px 9px;
        font-size: 11px;
    }

    .sr-searchbar {
        padding: 9px 10px;
    }

    .sr-searchbar input[type="text"] {
        min-width: 90px;
        padding: 8px 10px;
        font-size: 13px;
    }

    .sr-searchbar button {
        padding: 8px 10px;
        font-size: 12px;
    }

    .sr-section-body {
        padding: 10px 11px 12px;
    }

    .a_page_info,
    .page_info_focus {
        padding: 6px 10px;
        font-size: 12px;
        min-width: 30px;
    }
}

@media (min-width: 480px) and (max-width: 768px) {
    .sr-navzone {
        font-size: 10px;
    }
    .sr-navlinks a {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .sr-site-name {
        font-size: 17px;
    }

    .sr-navzone {
        width: 15%;
        font-size: 10px;
        padding: 6px 2px;
    }

    .sr-navlinks {
        width: 85%;
        gap: 3px;
        padding: 5px 4px;
    }

    .sr-navlinks a {
        font-size: 12px;
        padding: 3px 1px;
        width: calc((100% - 9px) / 4);
    }

    .film-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 7px;
    }

    .down_btn {
        padding: 8px 10px;
        font-size: 11px;
    }

    .share-section {
        flex-wrap: nowrap;
        gap: 5px;
    }

    .share-copy-btn {
        padding: 7px 9px;
        font-size: 11px;
    }

    .share-icon {
        font-size: 13px;
    }
}

/* ===================== UTILITIES ===================== */
.hide_mobile {
    display: block;
}

.hide_pc {
    display: block;
}

@media (max-width: 768px) {
    .hide_mobile {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .hide_pc {
        display: none !important;
    }
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

img[data-original] {
    background: var(--sr-light-gray);
}

@media (min-width: 769px) {
    .film-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .sr-navzone {
        font-size: 13px;
    }

    .sr-navlinks a {
        font-size: 13px;
    }
}
