:root {
    --page-bg: #070707;
    --panel-bg: #1d1d1f;
    --panel-soft: #2b2b2e;
    --text: #f3f3f3;
    --muted: #b9b9b9;
    --gold: #f1a208;
    --red: #d91e18;
}

body.site-body {
    background: var(--page-bg);
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-shell {
    max-width: 1560px;
}

.site-nav {
    background: linear-gradient(110deg, #080808 0%, #17110a 52%, #0b0b0c 100%);
    border-bottom: 3px solid var(--gold);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
    display: block;
    padding: 0;
}

.site-nav__top-row {
    align-items: center;
    display: flex;
    gap: 1rem;
    min-height: 68px;
}

.site-brand {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    margin-right: .25rem;
    padding: 0;
}

.site-brand__logo {
    display: block;
    height: 48px;
    max-width: min(250px, 42vw);
    object-fit: contain;
    object-position: left center;
    width: auto;
}

.site-page-heading {
    flex: 0 1 620px;
    min-width: 0;
}

.site-page-title {
    color: #fff8e7;
    font-size: clamp(1rem, 1.55vw, 1.35rem);
    font-weight: 800;
    line-height: 1.25;
    margin: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-tagline {
    color: #bdb5a8;
    font-size: .78rem;
    line-height: 1.25;
    margin: .14rem 0 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-nav__top-actions {
    align-items: center;
    display: flex;
    gap: .7rem;
    margin-left: auto;
}

.site-primary-nav {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    margin: 0 auto;
    gap: .2rem;
}

.site-primary-nav .nav-link {
    border: 1px solid transparent;
    border-radius: 999px;
    color: #f7f3eb;
    font-size: .94rem;
    font-weight: 650;
    padding: .48rem .75rem;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.site-primary-nav .nav-link:hover,
.site-primary-nav .nav-link:focus-visible {
    background: rgba(241, 162, 8, .12);
    border-color: rgba(241, 162, 8, .72);
    color: var(--gold);
    transform: translateY(-1px);
}

.site-primary-nav .nav-link.active {
    background: linear-gradient(135deg, rgba(241, 162, 8, .28), rgba(241, 162, 8, .09));
    border-color: var(--gold);
    box-shadow: inset 0 -2px 0 var(--gold), 0 0 15px rgba(241, 162, 8, .14);
    color: #ffd36c;
}

.site-search {
    min-width: min(390px, 34vw);
}

.site-search .form-control {
    min-width: 0;
}

.site-nav__menu-row {
    border-bottom: 1px solid rgba(255, 255, 255, .11);
    border-top: 1px solid rgba(255, 255, 255, .1);
    width: 100%;
}

.site-nav__menu-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-color: rgba(241, 162, 8, .7) rgba(255, 255, 255, .08);
    scrollbar-width: thin;
}

.site-nav__menu-scroll::-webkit-scrollbar {
    height: 7px;
}

.site-nav__menu-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, .06);
}

.site-nav__menu-scroll::-webkit-scrollbar-thumb {
    background: rgba(241, 162, 8, .7);
    border-radius: 999px;
}

.site-nav__menu-inner {
    align-items: center;
    display: flex;
    min-height: 49px;
    min-width: 100%;
    padding: 0 1.25rem;
    width: max-content;
}

.site-primary-nav .nav-item {
    flex: 0 0 auto;
}

.site-primary-nav .nav-link {
    white-space: nowrap;
}

.mobile-nav-groups {
    display: grid;
    gap: 16px;
    margin: 10px 0 14px;
}

.mobile-primary-nav,
.mobile-category-nav {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mobile-nav__title {
    color: var(--gold);
    font-size: .9rem;
    font-weight: 700;
    grid-column: 1 / -1;
    padding: .5rem 0 0;
}

.mobile-primary-nav .nav-link,
.mobile-category-nav .nav-link {
    background: var(--panel-soft);
    border: 1px solid #3b3b3e;
    border-radius: 5px;
    color: var(--text);
    height: 100%;
    padding: .5rem .65rem;
}

.mobile-primary-nav .nav-link:hover,
.mobile-primary-nav .nav-link:focus-visible,
.mobile-category-nav .nav-link:hover,
.mobile-category-nav .nav-link:focus-visible {
    border-color: var(--gold);
    color: var(--gold);
}

.mobile-primary-nav .nav-link.active,
.mobile-category-nav .nav-link.active {
    background: rgba(241, 162, 8, .16);
    border-color: var(--gold);
    box-shadow: inset 3px 0 0 var(--gold);
    color: #ffd36c;
}

.site-ticker {
    align-items: stretch;
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .1);
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    display: flex;
    min-height: 38px;
    overflow: hidden;
}

.site-ticker__badge {
    align-items: center;
    background: linear-gradient(135deg, #ffd05c, #e58d00);
    color: #15110a;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: .76rem;
    font-weight: 800;
    gap: .35rem;
    letter-spacing: .02em;
    padding: 0 .9rem;
}

.site-ticker__badge span {
    animation: ticker-sparkle 1.8s ease-in-out infinite;
    font-size: 1rem;
}

.site-ticker__viewport {
    align-items: center;
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    position: relative;
}

.site-ticker__viewport::before,
.site-ticker__viewport::after {
    content: '';
    height: 100%;
    pointer-events: none;
    position: absolute;
    top: 0;
    width: 28px;
    z-index: 1;
}

.site-ticker__viewport::before {
    background: linear-gradient(90deg, #17110a, transparent);
    left: 0;
}

.site-ticker__viewport::after {
    background: linear-gradient(270deg, #0b0b0c, transparent);
    right: 0;
}

.site-ticker__text {
    color: #fff4d9;
    display: inline-block;
    font-size: .9rem;
    font-weight: 650;
    padding-left: 100%;
    white-space: nowrap;
    will-change: transform;
    animation: site-ticker-scroll 24s linear infinite;
}

.site-ticker:hover .site-ticker__text {
    animation-play-state: paused;
}

@keyframes site-ticker-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

@keyframes ticker-sparkle {
    0%, 100% { opacity: .65; transform: scale(.82) rotate(0); }
    50% { opacity: 1; transform: scale(1.2) rotate(20deg); }
}

@media (max-width: 991.98px) {
    .site-nav__top-row {
        min-height: 62px;
    }

    .site-brand {
        margin-right: 0;
    }

    .site-page-heading {
        flex-basis: 260px;
    }

    .site-brand__logo {
        height: 43px;
    }

    .site-search {
        min-width: 0;
    }

    .site-nav__menu-scroll {
        overflow: visible;
    }

    .site-nav__menu-inner {
        display: block;
        min-height: 0;
        padding: 0 1rem;
        width: 100%;
    }
}

@media (min-width: 992px) {
    .site-nav__menu-row.collapse {
        display: block !important;
    }

    .site-nav__menu-row--no-primary.collapse {
        display: none !important;
    }
}

@media (max-width: 575.98px) {
    .site-nav__top-row {
        flex-wrap: wrap;
        gap: .65rem;
        padding-bottom: .65rem;
        padding-top: .65rem;
    }

    .site-nav__top-actions {
        flex: 1 1 auto;
        gap: .5rem;
    }

    .site-page-heading {
        flex: 1 1 auto;
    }

    .site-page-title {
        font-size: .94rem;
    }

    .site-tagline {
        display: none;
    }

    .site-search {
        flex: 1 1 auto;
    }

    .site-brand__logo {
        height: 38px;
        max-width: 170px;
    }

    .site-ticker {
        border-radius: 6px 6px 0 0;
        min-height: 36px;
    }

    .site-ticker__badge {
        font-size: .7rem;
        padding: 0 .65rem;
    }

    .site-ticker__text {
        animation-duration: 18s;
        font-size: .82rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-ticker__badge span,
    .site-ticker__text {
        animation: none;
    }

    .site-ticker__text {
        padding-left: 1rem;
    }
}

.site-main {
    padding: 18px 0;
}

.content-band,
.side-panel,
.auth-panel,
.movie-detail {
    background: var(--panel-bg);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 16px;
}

.section-title {
    align-items: center;
    border-bottom: 1px solid #3a3a3a;
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 10px;
}

.section-title h1,
.section-title h2 {
    font-size: 1.35rem;
    margin: 0;
}

.section-title a,
.side-list a,
.year-grid a,
.type-grid a,
.link-grid a {
    color: var(--text);
    text-decoration: none;
}

.home-news {
    margin-top: 18px;
}

.home-news--below-header {
    margin-bottom: 0;
    margin-top: 12px;
}

.home-news__content {
    color: #e9e9e9;
    font-size: 1rem;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.home-news__content > :first-child {
    margin-top: 0;
}

.home-news__content > :last-child {
    margin-bottom: 0;
}

.home-news__content h2,
.home-news__content h3,
.home-news__content h4 {
    color: var(--gold);
    line-height: 1.35;
    margin: 1.2em 0 .45em;
}

.home-news__content h2 { font-size: 1.4rem; }
.home-news__content h3 { font-size: 1.2rem; }
.home-news__content h4 { font-size: 1.05rem; }

.home-news__content a {
    color: #ffd05c;
    text-decoration: underline;
}

.home-news__content blockquote {
    border-left: 3px solid var(--gold);
    color: var(--muted);
    margin: 1rem 0;
    padding: .2rem 0 .2rem 1rem;
}

.site-footer-menu {
    background: #111;
    border-top: 1px solid #303034;
    padding: 16px 0;
}

.site-footer-menu__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    justify-content: center;
}

.site-footer-menu__links a {
    color: var(--text);
    font-size: .9rem;
    padding: 3px 4px;
    text-decoration: none;
}

.site-footer-menu__links a:hover,
.site-footer-menu__links a:focus-visible {
    color: var(--gold);
    text-decoration: underline;
}

.movie-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.movie-pagination {
    margin-top: 24px;
}

.movie-pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.movie-pagination a,
.movie-pagination span {
    align-items: center;
    background: var(--panel-soft);
    border: 1px solid #424246;
    border-radius: 5px;
    color: var(--text);
    display: inline-flex;
    justify-content: center;
    min-height: 36px;
    min-width: 36px;
    padding: 5px 10px;
    text-decoration: none;
}

.movie-pagination a:hover,
.movie-pagination a:focus-visible {
    border-color: var(--gold);
    color: var(--gold);
}

.movie-pagination .is-current span {
    background: var(--gold);
    border-color: var(--gold);
    color: #111;
    font-weight: 700;
}

.movie-pagination .is-disabled span {
    cursor: default;
    opacity: .5;
}

.movie-card {
    min-width: 0;
}

.movie-poster {
    aspect-ratio: 2 / 3;
    background: #111;
    border-radius: 6px;
    display: block;
    overflow: hidden;
    position: relative;
}

.movie-poster img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.movie-quality {
    background: var(--red);
    border-radius: 0 0 0 6px;
    color: #fff;
    font-size: .76rem;
    font-weight: 700;
    padding: 4px 7px;
    position: absolute;
    right: 0;
    top: 0;
}

.movie-card__title {
    font-size: .95rem;
    line-height: 1.35;
    margin: 8px 0 4px;
}

.movie-card__title a {
    color: var(--text);
    text-decoration: none;
}

.movie-card__meta,
.movie-meta,
.site-footer {
    color: var(--muted);
}

.side-panel h2 {
    background: linear-gradient(#c88602, var(--gold));
    border-radius: 6px 6px 0 0;
    color: #fff;
    font-size: 1rem;
    margin: -16px -16px 12px;
    padding: 10px 14px;
}

.side-list {
    display: grid;
    gap: 8px;
}

.year-grid,
.type-grid,
.link-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
}

.year-grid a,
.type-grid a,
.link-grid a {
    background: var(--panel-soft);
    border-radius: 6px;
    padding: 8px 10px;
    text-align: center;
}

.ad img {
    border-radius: 6px;
    height: auto;
    max-width: 100%;
}

.ad-band {
    text-align: center;
}

.white_content1,
.center-popup-ad {
    background: rgba(0, 0, 0, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    bottom: 18px;
    display: none;
    left: 50%;
    max-width: 760px;
    overflow: hidden;
    padding: 10px;
    position: fixed;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    z-index: 10020;
}

.center-popup-ad__close-row {
    color: #fff;
    font-size: 0.95rem;
    margin: 0 0 6px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

.center-popup-ad__close {
    align-items: center;
    background: #f5a400;
    border: 0;
    border-radius: 50%;
    color: #151515;
    display: inline-flex;
    font-size: 22px;
    font-weight: 700;
    height: 28px;
    justify-content: center;
    line-height: 1;
    margin-left: 6px;
    vertical-align: middle;
    width: 28px;
}

.center-popup-ad__body {
    display: grid;
    gap: 8px;
    justify-items: center;
}

.center-popup-ad__link,
.center-popup-ad__link img {
    display: block;
    max-width: 100%;
}

.side-ad-panel {
    display: grid;
    gap: 10px;
}

.side-ad-panel .ad,
.side-ad-panel .ad-image {
    display: block;
    text-align: center;
}

.side-ad-panel img {
    display: block;
    margin: 0 auto;
    width: 100%;
}

.movie-detail__title {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 12px;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.movie-meta span {
    background: var(--panel-soft);
    border-radius: 999px;
    padding: 4px 10px;
}

.movie-showcase {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(170px, 240px) minmax(0, 1fr);
    margin-bottom: 16px;
}

.movie-cover {
    align-self: start;
    background: #111;
    border-radius: 8px;
    overflow: hidden;
}

.movie-cover img {
    aspect-ratio: 2 / 3;
    display: block;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.movie-trailer {
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    min-height: 100%;
    overflow: hidden;
}

.movie-trailer .section-title {
    background: var(--panel-soft);
    margin: 0;
    padding: 10px 12px;
}

.movie-trailer .section-title h2 {
    font-size: 1rem;
}

.movie-trailer iframe {
    aspect-ratio: 16 / 9;
    border: 0;
    display: block;
    width: 100%;
}

.trailer-empty {
    align-items: center;
    color: var(--muted);
    display: flex;
    justify-content: center;
    min-height: 260px;
}

.player-shell {
    aspect-ratio: 16 / 9;
    background: #000;
    border: 1px solid #333;
    margin-bottom: 16px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.movie-player,
.preroll-video,
.movie-frame-holder,
.movie-frame-holder iframe {
    background: #000;
    height: 100%;
    width: 100%;
}

.movie-player,
.preroll-video {
    object-fit: contain;
}

.movie-frame-holder {
    display: none;
}

.movie-frame-holder iframe {
    border: 0;
    display: block;
}

.play-overlay,
.preroll-skip,
.preroll-link {
    background: var(--gold);
    border: 0;
    border-radius: 6px;
    color: #111;
    font-weight: 800;
    padding: 10px 18px;
}

.play-overlay {
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
}

.preroll-layer {
    background: #000;
    inset: 0;
    position: absolute;
    z-index: 4;
}

.preroll-actions {
    display: grid;
    gap: 8px;
    position: absolute;
    right: 14px;
    top: 14px;
    z-index: 5;
}

.preroll-status {
    background: rgba(0, 0, 0, .68);
    border-radius: 6px;
    bottom: 14px;
    color: #fff;
    font-size: 0.9rem;
    left: 14px;
    padding: 8px 12px;
    position: absolute;
    z-index: 5;
}

.preroll-skip {
    background: rgba(0, 0, 0, .72);
    color: #fff;
}

.preroll-skip.enabled {
    background: var(--red);
    cursor: pointer;
}

.preroll-link {
    background: var(--red);
    color: #fff;
}

.detail-body {
    color: #e8e8e8;
    line-height: 1.75;
}

.form-stack {
    display: grid;
    gap: 12px;
}

.contact-page {
    overflow: hidden;
    padding: 0;
}

.contact-page__hero {
    background:
        radial-gradient(circle at 90% 0%, rgba(241, 162, 8, .22), transparent 42%),
        linear-gradient(135deg, #242019, #1d1d1f 62%);
    border-bottom: 1px solid rgba(241, 162, 8, .25);
    padding: clamp(1.25rem, 4vw, 2.25rem);
}

.contact-page__eyebrow {
    color: var(--gold);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    margin: 0 0 .45rem;
}

.contact-page__hero h1 {
    font-size: clamp(1.65rem, 4vw, 2.2rem);
    margin: 0;
}

.contact-page__hero > p:last-child {
    color: #ded7ca;
    line-height: 1.75;
    margin: .65rem 0 0;
    max-width: 680px;
}

.contact-page > .alert {
    margin: 1.25rem 1.25rem 0;
}

.contact-form {
    padding: clamp(1.25rem, 4vw, 2.25rem);
}

.contact-form__grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-form label {
    display: grid;
    gap: .45rem;
}

.contact-form label > span {
    color: #f1f1f1;
    font-size: .92rem;
    font-weight: 700;
}

.contact-form label > span small {
    color: var(--muted);
    font-size: .8rem;
    font-weight: 500;
}

.contact-form em {
    color: #ff8e88;
    font-style: normal;
}

.contact-form__full {
    grid-column: 1 / -1;
}

.contact-form .form-control {
    background: #111214;
    border-color: #46464a;
    color: var(--text);
    padding: .7rem .8rem;
}

.contact-form .form-control:focus {
    background: #111214;
    border-color: var(--gold);
    box-shadow: 0 0 0 .2rem rgba(241, 162, 8, .16);
    color: var(--text);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form__error {
    color: #ff9b95;
    font-size: .82rem;
}

.contact-form__footer {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .8rem 1.2rem;
    justify-content: space-between;
    margin-top: 1.25rem;
}

.contact-form__footer small {
    color: var(--muted);
}

.auth-panel {
    margin: 0 auto;
    max-width: 460px;
}

.tv-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.tv-item {
    background: var(--panel-soft);
    border-radius: 8px;
    color: var(--text);
    display: grid;
    gap: 8px;
    padding: 12px;
    text-align: center;
    text-decoration: none;
}

.tv-item img {
    aspect-ratio: 16 / 9;
    object-fit: contain;
    width: 100%;
}

.empty-state,
.empty-player {
    align-items: center;
    color: var(--muted);
    display: flex;
    justify-content: center;
    min-height: 180px;
}

.site-footer {
    border-top: 1px solid #222;
    padding: 18px 0;
}

.site-footer--custom {
    background: linear-gradient(135deg, #121214, #09090a);
    border-top-color: #303034;
    color: var(--muted);
    cursor: default;
    padding: 26px 0;
}

.site-footer__inner {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 18px 26px;
    justify-content: center;
    text-align: center;
}

.site-footer__brand {
    flex: 0 0 auto;
}

.site-footer__brand img {
    display: block;
    height: 52px;
    max-width: min(260px, 72vw);
    object-fit: contain;
}

.site-footer__content {
    color: var(--muted);
    line-height: 1.7;
    max-width: 900px;
}

.site-footer__content > :first-child { margin-top: 0; }
.site-footer__content > :last-child { margin-bottom: 0; }

.site-footer__content h2,
.site-footer__content h3,
.site-footer__content h4 {
    color: var(--gold);
    margin: .35rem 0 .6rem;
}

.site-footer__content a {
    color: #ffd05c;
    text-decoration: underline;
}

@media (max-width: 767.98px) {
    .site-main {
        padding: 10px 0;
    }

    .white_content1,
    .center-popup-ad {
        bottom: 8px;
        border-left: 0;
        border-right: 0;
        border-radius: 0;
        padding: 10px;
        width: 100%;
    }

    .movie-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .movie-showcase {
        grid-template-columns: 1fr;
    }

    .movie-cover {
        margin: 0 auto;
        max-width: 240px;
        width: 70%;
    }

    .content-band,
    .movie-detail,
    .auth-panel {
        border-left: 0;
        border-right: 0;
        border-radius: 0;
    }

    .contact-form__grid {
        grid-template-columns: 1fr;
    }

    .contact-form__full {
        grid-column: auto;
    }

    .contact-form__footer {
        align-items: stretch;
        flex-direction: column;
    }

    .contact-form__footer .btn {
        width: 100%;
    }
}
