@import url('https://fonts.googleapis.com/css2?family=Bungee&display=swap');

:root {
    --bg: #252525;
    --bg-soft: #1b1b1b;
    --panel: #191919;
    --panel-2: #111111;
    --text: #ededed;
    --muted: #909090;
    --line: #303030;
    --brand: #d72626;
    --brand-soft: #3b1212;
    --danger: #d94c4c;
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
}

body {
    margin: 0;
    font-family: Tahoma, Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 400;
    background: var(--bg);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1440px, calc(100% - 28px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: linear-gradient(180deg, #202020, #171717);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03);
}

.header-inner,
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0 8px;
}

.logo {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 4px;
    background: linear-gradient(180deg, #ef3b31, #cf2424);
    border: 1px solid #a51919;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    font-family: 'Bungee', Tahoma, Arial, Helvetica, sans-serif;
    font-size: 22px;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #ffffff;
    line-height: 1;
}

.mobile-toggle,
.mobile-search-wrap {
    display: none;
}

.mobile-toggle {
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text);
    cursor: pointer;
}

.mobile-menu-toggle {
    flex-direction: column;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}

.mobile-search-icon {
    position: relative;
    width: 15px;
    height: 15px;
    display: inline-block;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.mobile-search-icon::after {
    content: "";
    position: absolute;
    right: -5px;
    bottom: -4px;
    width: 7px;
    height: 2px;
    background: currentColor;
    transform: rotate(45deg);
    border-radius: 2px;
}

body.mobile-search-open .mobile-search-icon {
    width: 18px;
    height: 18px;
    border: 0;
    border-radius: 0;
}

body.mobile-search-open .mobile-search-icon::before,
body.mobile-search-open .mobile-search-icon::after {
    content: "";
    position: absolute;
    top: 8px;
    left: 0;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}

body.mobile-search-open .mobile-search-icon::before {
    transform: rotate(45deg);
}

body.mobile-search-open .mobile-search-icon::after {
    right: auto;
    bottom: auto;
    transform: rotate(-45deg);
}

.search-form {
    display: flex;
    gap: 6px;
    width: min(340px, 100%);
}

.search-form input,
.admin-form input,
.admin-form textarea,
.admin-form select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--panel-2);
    color: var(--text);
    outline: none;
    font-size: 12px;
}

.search-form input:focus,
.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
    border-color: #4a4a4a;
}

.search-form button,
.button,
.admin-form button {
    padding: 8px 12px;
    border: 1px solid #a51919;
    border-radius: 4px;
    background: linear-gradient(180deg, #ef3b31, #cf2424);
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    font-size: 11px;
}

.button.is-danger {
    background: var(--danger);
    border-color: #8d2d2d;
    color: #fff;
}

.main-nav {
    border-top: 1px solid #262626;
    background: linear-gradient(180deg, #141414, #101010);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 8px 4px 10px;
}

.nav-item {
    position: relative;
}

.nav-list a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    text-transform: none;
    transition: color 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
    border-bottom: 0;
}

.nav-list a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.nav-list a.is-active {
    background: var(--brand);
    color: #fff;
}

.nav-item.has-children > a::after {
    content: "";
    width: 0;
    height: 0;
    margin-left: 7px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    opacity: 0.78;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 12;
    display: none;
    min-width: 220px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--panel);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
    display: grid;
    gap: 6px;
}

.nav-dropdown a {
    justify-content: flex-start;
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid var(--line);
    background: var(--panel-2);
}

.language-nav-item {
    margin-left: auto;
}

.language-menu-trigger,
.language-dropdown a {
    gap: 8px;
}

.language-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    text-align: center;
    font-size: 14px;
    line-height: 1;
}

.language-dropdown {
    left: auto;
    right: 0;
    min-width: 170px;
}

.site-main {
    padding: 14px 0 30px;
}

.not-found-page .site-main {
    padding-top: 6px;
}

.not-found-page .site-footer {
    margin-top: 0;
}

.hero,
.content-panel,
.widget,
.player-box,
.meta-card,
.admin-card,
.admin-sidebar {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 6px;
}

.catalog-section {
    padding: 14px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 6px;
}

.not-found-hero {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 24px 46px rgba(0, 0, 0, 0.34);
    padding: 18px 18px 0;
}

.not-found-hero-image-wrap {
    width: min(100%, 620px);
    margin: 0 auto;
    text-align: center;
}

.not-found-hero-image {
    width: auto;
    max-width: 100%;
    height: auto;
    background: var(--panel-2);
    border-radius: 6px;
}

.not-found-hero-content {
    padding: 18px 18px 20px;
    text-align: center;
}

.not-found-hero-content h1 {
    margin: 0 0 8px;
    font-size: clamp(24px, 3.2vw, 34px);
    line-height: 1.15;
    color: var(--text);
}

.not-found-hero-content p {
    max-width: 760px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 13px;
}

.not-found-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.not-found-button,
.not-found-link {
    min-height: 38px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid var(--line);
    font-weight: 600;
    transition: 0.18s ease;
}

.not-found-button {
    background: linear-gradient(180deg, var(--brand-soft), var(--brand));
    border-color: var(--brand);
    color: #fff;
}

.not-found-button:hover {
    filter: brightness(1.04);
}

.not-found-link {
    background: var(--panel-2);
    color: var(--text);
}

.not-found-link:hover {
    border-color: var(--brand);
    color: var(--text);
}

.not-found-suggestions {
    margin-top: 16px;
}

.homepage-widget-section + .homepage-widget-section,
.homepage-widget-section + .catalog-section,
.catalog-section + .homepage-widget-section {
    margin-top: 18px;
}

.section-kicker {
    display: inline-block;
    margin-bottom: 4px;
    color: #bbbbbb;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.listing-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding: 0 0 10px;
    border-bottom: 1px solid var(--line);
}

.page-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.page-strip-sub {
    margin-top: 0;
}

.page-strip h1,
.page-strip h2 {
    margin: 0;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 600;
}

.page-strip p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.listing-head h1,
.listing-head h2 {
    margin: 0;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 600;
}

.listing-head p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.listing-head-badges {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    align-items: center;
}

.search-empty-state {
    padding: 34px 18px 30px;
    text-align: center;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.search-empty-state h2 {
    margin: 0 0 12px;
    color: var(--text);
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
}

.search-empty-state p {
    max-width: 620px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.search-empty-tips {
    margin-top: 18px;
    color: var(--muted);
}

.search-empty-tips strong {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-size: 13px;
}

.search-empty-tips ul {
    display: inline-block;
    margin: 0;
    padding-left: 18px;
    text-align: left;
    color: var(--muted);
    line-height: 1.9;
}

.search-suggestions {
    margin-top: 14px;
}

.listing-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 0 8px;
    background: #0f0f0f;
    border: 1px solid var(--line);
    color: #d9d9d9;
    font-size: 11px;
    font-weight: 700;
}

.listing-badge.is-red {
    background: var(--brand);
    border-color: #9f1717;
    color: #fff;
}

.homepage-widget-head {
    gap: 14px;
    margin-bottom: 14px;
    padding-bottom: 12px;
}

.homepage-widget-title-wrap {
    flex: 1;
    min-width: 0;
}

.homepage-widget-title {
    display: flex;
    align-items: baseline;
    gap: 5px;
    min-width: 0;
    margin: 0;
    color: var(--text);
    font-size: 18px;
    line-height: 1.1;
    font-weight: 700;
}

.homepage-widget-title span {
    display: inline-block;
    color: var(--muted);
    font-size: 14px;
    line-height: 1;
    font-weight: 500;
}

.homepage-widget-more {
    min-height: 28px;
    padding: 0 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
}

.section-header h1,
.section-header h2,
.section-header h3,
.widget h3 {
    margin: 0;
}

.section-header p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.content-panel,
.player-box,
.meta-card,
.widget,
.admin-card,
.admin-sidebar {
    padding: 12px;
}

.content-panel-flat {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
}

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

.movie-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
    transition: none;
}

.movie-card:hover {
    transform: none;
}

.movie-thumb {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
    background: #0a0a0a;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    border: 1px solid #3b3b3b;
    border-radius: 4px;
}

.movie-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.08);
    pointer-events: none;
}

.movie-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    background: #0a0a0a;
    image-rendering: auto;
    filter: contrast(0.96) saturate(0.96) brightness(1.01);
}

.movie-runtime {
    position: absolute;
    right: 6px;
    bottom: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 3px 8px;
    border-radius: 4px;
    background: linear-gradient(180deg, rgba(8, 8, 8, 0.96), rgba(20, 20, 20, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom-color: rgba(215, 38, 38, 0.52);
    color: #ffffff;
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.42);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 4px 12px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(2px);
    z-index: 1;
}

.movie-runtime-views {
    left: 6px;
    right: auto;
    border-bottom-color: rgba(79, 125, 215, 0.42);
}

.movie-card-body {
    padding: 7px 1px 0;
}

.movie-card-body h3 {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.01em;
    min-height: 34px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card-body h3 a {
    display: block;
    font-weight: 600;
}

.movie-card-body h3 a:hover {
    color: var(--brand);
}

.term-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.term-card {
    display: grid;
    gap: 6px;
    padding: 12px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 4px;
    transition: border-color 0.16s ease, background-color 0.16s ease;
}

.term-card:hover {
    border-color: var(--brand);
    background: var(--panel-2);
}

.term-card-name {
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.term-card-meta {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.3;
}

.title-list-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}

.title-list-column {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.title-list-group {
    position: relative;
    padding: 22px 18px 18px;
    background: linear-gradient(90deg, rgba(29, 34, 43, 0.96), rgba(23, 27, 35, 0.96));
    border: 1px solid var(--line);
    border-radius: 4px;
    height: fit-content;
}

.title-list-group-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    background: #111111;
    color: #f3d2a5;
    font-size: 20px;
    line-height: 1;
    font-weight: 700;
    transform: rotate(-6deg);
}

.title-list-items {
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
}

.title-list-items li {
    position: relative;
    padding-left: 16px;
}

.title-list-items li + li {
    margin-top: 10px;
}

.title-list-items li::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 0;
    width: 5px;
    height: 5px;
    background: #14d77a;
    border-radius: 2px;
}

.title-list-items a {
    color: #aeb8ca;
    font-size: 13px;
    line-height: 1.7;
}

.title-list-items a:hover {
    color: #ffffff;
}

.widget ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.widget li + li {
    margin-top: 10px;
}

.widget a {
    color: var(--muted);
}

.widget a:hover {
    color: var(--text);
}

.detail-layout {
    display: block;
}

.detail-main {
    display: grid;
    gap: 16px;
}

.site-ad-slot {
    margin: 14px 0;
    padding: 10px;
    background: var(--panel);
    border: 1px solid var(--line);
    overflow: hidden;
}

.site-ad-slot-inner {
    width: 100%;
    min-width: 0;
}

.site-ad-slot-inner > * + * {
    margin-top: 12px;
}

.site-ad-slot img {
    display: block;
    max-width: 100%;
    height: auto;
}

.site-ad-slot iframe {
    max-width: 100%;
}

.site-ad-slot.is-header-slot {
    width: min(100% - 24px, 1440px);
    margin: 0 auto 14px;
}

.site-ad-slot.is-homepage-slot {
    margin-top: 0;
}

.player-layout {
    display: block;
}

.player-layout.has-side-ad {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 14px;
    align-items: start;
}

.player-layout-main,
.player-ad-side {
    min-width: 0;
}

.site-ad-slot.is-player-sidebar {
    margin: 0;
}

.site-ad-slot.is-player-sidebar .site-ad-slot-inner {
    display: grid;
    place-items: center;
}

.site-ad-slot.is-player-sidebar .site-ad-slot-inner > * {
    width: 100%;
}

.site-ad-slot.is-player-sidebar .site-ad-slot-inner > * + * {
    margin-top: 14px;
}

.site-ad-slot.is-below-player,
.site-ad-slot.is-below-description {
    margin-bottom: 0;
}

.detail-summary,
.detail-block {
    padding: 10px;
    background: var(--panel);
    border: 1px solid var(--line);
}

.detail-summary {
    display: grid;
    grid-template-columns: minmax(420px, 46%) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.detail-poster-wrap {
    align-self: start;
    background: #0b0b0b;
    border: 0;
    border-radius: 2px;
    overflow: hidden;
}

.detail-poster {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center center;
    background: #050505;
}

.detail-info {
    display: grid;
    gap: 14px;
    align-content: start;
}

.detail-heading h2 {
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 400;
}

.detail-divider {
    height: 3px;
    background: #050505;
}

.detail-feature-copy {
    color: var(--text);
    font-size: 15px;
    line-height: 1.5;
    font-weight: 400;
}

.detail-feature-link {
    color: inherit;
}

.detail-feature-link:hover {
    color: var(--brand);
}

.detail-title-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.detail-title-category {
    color: var(--text);
}

.detail-title-category:hover {
    color: var(--brand);
}

.detail-title-meta-separator {
    color: #777;
    line-height: 1;
}

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

.detail-credit-line {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: baseline;
    font-size: 14px;
    line-height: 1.6;
}

.detail-credit-line strong {
    color: var(--brand);
    font-weight: 500;
}

.detail-credit-line span {
    color: var(--text);
}

.detail-inline-links a {
    color: var(--text);
}

.detail-inline-links a:hover {
    color: var(--brand);
}

.detail-tag-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-tag-pills a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 3px;
    background: var(--brand);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
}

.detail-tag-pills a:hover {
    background: linear-gradient(180deg, var(--brand-soft), var(--brand));
}

.detail-description p {
    margin: 0;
    color: var(--text);
    line-height: 1.65;
}

.detail-description p + p {
    margin-top: 12px;
}

.detail-category-link {
    color: inherit;
    text-decoration: none;
}

.detail-category-link:hover {
    color: var(--text);
    text-decoration: underline;
}

.player-stage {
    position: relative;
    line-height: 0;
    border-radius: 6px;
    overflow: hidden;
    background: var(--panel-2);
    border: 1px solid var(--line);
}

.fake-player {
    position: relative;
    display: block;
    vertical-align: top;
    width: 100%;
    background: var(--panel-2);
    pointer-events: none;
}

.fake-player-hidden {
    display: none;
}

.fake-player-poster {
    display: block;
    vertical-align: top;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center center;
    filter: saturate(0.95) contrast(0.96);
}

.fake-player-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.4)),
        radial-gradient(circle at center, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.36));
}

.fake-player-trigger {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 88px;
    height: 88px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.fake-player-trigger.fake-player-hidden {
    display: none;
}

.fake-player-button {
    width: 100%;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--brand-soft), var(--brand));
    background-clip: padding-box;
    border: 4px solid rgba(255, 255, 255, 0.26);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.fake-player-triangle {
    width: 0;
    height: 0;
    margin-left: 6px;
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    border-left: 24px solid rgba(255, 255, 255, 0.95);
}

.player-frame {
    display: block;
    vertical-align: top;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 0;
    background: var(--panel-2);
}

.player-frame-hidden {
    display: none;
}

.player-frame.is-pending-load {
    visibility: visible;
}

.player-loading {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.32);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease;
    z-index: 3;
}

.player-loading.is-active {
    opacity: 1;
    visibility: visible;
}

.player-loading-ring {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.22);
    border-top-color: rgba(255, 255, 255, 0.96);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
    animation: player-loading-spin 0.8s linear infinite;
}

@keyframes player-loading-spin {
    to {
        transform: rotate(360deg);
    }
}

.server-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.server-strip-label {
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.server-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 0;
}

.server-list a,
.server-chip,
.tag-list a,
.pill,
.page-link {
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #575757;
    color: var(--muted);
    font-size: 12px;
}

.server-list a:hover,
.server-chip:hover,
.tag-list a:hover,
.page-link:hover {
    color: #fff;
    border-color: #3b3b3b;
}

.server-chip {
    cursor: pointer;
    color: #fff;
}

.server-chip.is-active {
    background: var(--brand);
    border-color: #9f1717;
    color: #fff;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.meta-list {
    display: grid;
    gap: 12px;
}

.meta-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    align-items: start;
}

.meta-row strong {
    color: #fff;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 17px;
}

.page-link {
    min-width: 36px;
    padding: 8px 11px;
    text-align: center;
    font-size: 11px;
    font-weight: 500;
    background: linear-gradient(180deg, #2d2d2d, #242424);
    border-color: #4a4a4a;
    color: #e4e4e4;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    border-radius: 4px;
}

.page-link:hover {
    background: linear-gradient(180deg, #393939, #2c2c2c);
    border-color: #636363;
    color: #fff;
}

.page-ellipsis {
    cursor: default;
    background: linear-gradient(180deg, #252525, #1f1f1f);
    border-color: #3f3f3f;
    color: #bdbdbd;
}

.page-link.is-active {
    background: linear-gradient(180deg, #ef3b31, #cf2424);
    border-color: #a51919;
    color: #fff;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.page-link-last {
    display: none;
}

.page-link-first {
    display: none;
}

.notice {
    margin-bottom: 16px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 2px;
}

.notice.success {
    background: rgba(56, 142, 60, 0.14);
    color: #99d39d;
}

.notice.error {
    background: rgba(185, 58, 58, 0.14);
    color: #f0a2a2;
}

.admin-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
}

.admin-sidebar a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--muted);
}

.admin-sidebar a + a {
    margin-top: 8px;
}

.admin-sidebar a:hover {
    background: #0c0c0c;
    color: #fff;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    color: #fff;
}

.admin-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.site-footer {
    margin-top: 12px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.footer-inner {
    align-items: flex-start;
    justify-content: center;
}

.footer-copy {
    display: grid;
    gap: 6px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.footer-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.footer-copy p:last-child {
    color: var(--text);
    opacity: 0.88;
}

.footer-copy a {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-copy a:hover {
    color: var(--brand);
}

.scroll-top-button {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #a51919;
    border-radius: 4px;
    background: linear-gradient(180deg, #ef3b31, #cf2424);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease, background-color 0.16s ease;
    z-index: 60;
}

.scroll-top-button.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-button:hover {
    background: linear-gradient(180deg, #ff4a3d, #da2929);
}

.scroll-top-icon {
    width: 14px;
    height: 14px;
    border-top: 3px solid #fff;
    border-left: 3px solid #fff;
    transform: rotate(45deg) translate(2px, 2px);
}

@media (max-width: 1220px) {
    .detail-summary,
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .player-layout.has-side-ad {
        grid-template-columns: 1fr;
    }

    .site-ad-slot.is-player-sidebar .site-ad-slot-inner > * {
        width: auto;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 860px) {
    .header-inner {
        justify-content: space-between;
        padding: 12px 0;
    }

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

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

    .title-list-grid {
        grid-template-columns: 1fr;
    }


    .section-header,
    .listing-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .homepage-widget-title {
        flex-wrap: wrap;
    }

    .homepage-widget-head {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .homepage-widget-title {
        font-size: 16px;
    }

    .homepage-widget-title span {
        font-size: 13px;
    }
}

@media (max-width: 720px) {
    .container {
        width: min(100% - 12px, 1440px);
    }

    .site-main {
        padding: 10px 0 24px;
    }

    .site-header {
        position: sticky;
        top: 0;
        z-index: 40;
    }

    .header-inner {
        display: grid;
        grid-template-columns: 38px 1fr 38px;
        align-items: center;
        gap: 10px;
        padding: 10px 0;
    }

    .logo {
        justify-self: center;
        min-height: 36px;
        padding: 0 12px;
        font-size: 17px;
    }

    .not-found-hero-content {
        padding: 16px 14px 18px;
    }

    .not-found-hero {
        padding: 12px 12px 0;
    }

    .not-found-actions {
        gap: 8px;
    }

    .not-found-button,
    .not-found-link {
        width: 100%;
    }

    .search-form {
        display: none;
    }

    .mobile-toggle {
        display: inline-flex;
    }

    .mobile-search-wrap {
        display: block;
    }

    .mobile-search-form {
        display: none;
        gap: 0;
        padding: 0 0 12px;
    }

    body.mobile-search-open .mobile-search-form {
        display: flex;
    }

    .mobile-search-form input {
        flex: 1;
        min-width: 0;
        padding: 10px 12px;
        border: 1px solid var(--line);
        border-right: 0;
        border-radius: 4px 0 0 4px;
        background: var(--panel-2);
        color: var(--text);
        font-size: 14px;
    }

    .mobile-search-form button {
        padding: 10px 14px;
        border: 1px solid var(--brand);
        border-radius: 0 4px 4px 0;
        background: linear-gradient(180deg, var(--brand-soft), var(--brand));
        color: #fff;
        font-size: 13px;
        font-weight: 700;
    }

    .main-nav {
        display: none;
    }

    body.mobile-menu-open .main-nav {
        display: block;
    }

    .nav-list {
        display: grid;
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 0 0 12px;
    }

    .nav-list a {
        min-height: 38px;
        padding: 0 12px;
        border-radius: 4px;
        background: var(--panel);
        border: 1px solid var(--line);
        color: var(--text);
    }

    .nav-item {
        display: grid;
        gap: 6px;
    }

    .language-nav-item {
        margin-left: 0;
    }

    .language-nav-item .nav-dropdown {
        position: static;
        display: none;
        min-width: 0;
        margin-top: 6px;
        gap: 6px;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .language-nav-item .nav-dropdown a {
        min-height: 38px;
    }

    .nav-item.is-open > a {
        background: var(--brand-soft);
        color: var(--text);
    }

    .nav-item:hover .nav-dropdown,
    .nav-item:focus-within .nav-dropdown {
        display: none;
    }

    .nav-dropdown {
        position: static;
        display: none;
        min-width: 0;
        padding: 0 0 0 10px;
        border: 0;
        border-left: 1px solid var(--line);
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .nav-item.is-open .nav-dropdown {
        display: grid;
        gap: 6px;
    }

    .nav-dropdown a {
        min-height: 34px;
        padding: 0 12px;
    }

    .catalog-section {
        padding: 12px 10px;
    }

    .fake-player-button {
        width: 100%;
        height: 100%;
    }

    .fake-player-trigger {
        width: 76px;
        height: 76px;
    }

    .fake-player-triangle {
        border-top-width: 14px;
        border-bottom-width: 14px;
        border-left-width: 21px;
    }
}

@media (min-width: 721px) and (max-width: 1100px) {
    .movie-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .pagination {
        justify-content: center;
        flex-wrap: wrap;
        overflow-x: visible;
        gap: 5px;
        margin-top: 14px;
        padding-bottom: 0;
    }

    .page-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 36px;
        min-height: 34px;
        padding: 8px 10px;
        font-size: 12px;
        line-height: 1;
        text-align: center;
        border-radius: 4px;
        border-width: 0;
        box-shadow: none;
    }

    .page-link-start,
    .page-ellipsis-start,
    .page-link-end {
        display: none;
    }

    .page-link-first,
    .page-link-last {
        display: inline-flex;
    }

    .page-link-mobile-hide {
        display: none;
    }

    .pagination-compact-mobile .page-ellipsis {
        display: none;
    }

    .pagination-compact-mobile {
        gap: 4px;
    }

    .pagination-compact-mobile .page-link {
        min-width: 34px;
        padding: 8px 9px;
    }

    .page-link-prev,
    .page-link-next {
        min-width: 32px;
        min-height: 34px;
        padding: 8px 9px;
        font-size: 0;
    }

    .page-link-prev::before {
        content: "<";
        font-size: 12px;
        font-weight: 700;
    }

    .page-link-next::before {
        content: ">";
        font-size: 12px;
        font-weight: 700;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(100% - 8px, 1320px);
    }

    .not-found-hero-image {
        width: 100%;
    }

    .not-found-hero-content h1 {
        font-size: 22px;
    }

    .homepage-widget-head {
        gap: 10px;
        margin-bottom: 12px;
        padding-bottom: 10px;
    }

    .homepage-widget-title-wrap {
        min-width: 0;
        flex: 1;
    }

    .homepage-widget-title {
        display: inline-flex;
        align-items: baseline;
        gap: 4px;
        font-size: 15px;
        line-height: 1.1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .homepage-widget-title span {
        font-size: 13px;
        line-height: 1;
    }

    .homepage-widget-head .listing-head-badges {
        flex: 0 0 auto;
        margin-left: auto;
    }

    .homepage-widget-more {
        min-height: 30px;
        padding: 0 11px;
        font-size: 11px;
        white-space: nowrap;
    }

    .movie-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .term-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .meta-row {
        grid-template-columns: 1fr;
    }

    .movie-thumb {
        border-radius: 4px;
    }

    .movie-card-body {
        padding-top: 6px;
    }

    .movie-card-body h3 {
        font-size: 13px;
        line-height: 1.6;
        min-height: 3.2em;
    }

    .scroll-top-button {
        right: 10px;
        bottom: 12px;
        width: 42px;
        height: 42px;
    }

    .term-card {
        padding: 10px;
    }

    .term-card-name {
        font-size: 12px;
    }
}

@media (max-width: 400px) {
    .term-grid {
        grid-template-columns: 1fr;
    }

    .movie-card-body h3 {
        font-size: 12px;
    }

    .pagination {
        gap: 5px;
    }

    .page-link {
        min-width: 30px;
        padding: 7px 9px;
        font-size: 10px;
    }
}

.site-main .hero-copy {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

@media (max-width: 720px) {
    .pagination-compact-mobile {
        width: 100%;
        justify-content: center;
        align-items: center;
    }

    .pagination-compact-mobile .page-link-start,
    .pagination-compact-mobile .page-link-end {
        display: inline-flex !important;
        visibility: visible !important;
    }

    .pagination-compact-mobile .page-link-first,
    .pagination-compact-mobile .page-link-last,
    .pagination-compact-mobile .page-ellipsis {
        display: none !important;
    }
}
