:root {
    color-scheme: dark;
    --bg: #101114;
    --panel: #1a1d22;
    --panel-soft: #22262d;
    --text: #f7f7f8;
    --muted: #b6bbc4;
    --accent: #e50914;
    --accent-soft: rgba(229, 9, 20, 0.14);
    --border: rgba(255, 255, 255, 0.1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px clamp(18px, 5vw, 48px);
    background: rgba(16, 17, 20, 0.94);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
}

.search-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-btn {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--panel-soft);
    color: var(--text);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-btn:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
}

.site-header .search-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    margin: 0 auto;
    width: calc(100% - 36px);
    max-width: 400px;
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 10px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 21;
}

.brand {

    color: var(--accent);
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 900;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 0.95rem;
    font-weight: 700;
}

.main-nav .nav-list {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav .nav-list li {
    display: inline-flex;
}

.main-nav a,
.category-dropdown summary {
    color: var(--text);
    cursor: pointer;
    list-style: none;
    text-decoration: none;
}

.category-dropdown summary::-webkit-details-marker {
    display: none;
}

.category-dropdown summary::after {
    content: " v";
    color: var(--accent);
    font-size: 0.8rem;
}

.main-nav a:hover,
.category-dropdown summary:hover {
    color: var(--accent);
}

.category-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 14px);
    min-width: 160px;
    padding: 8px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.dropdown-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 6px;
}

.dropdown-menu a:hover {
    background: var(--accent-soft);
}

.hero {
    min-height: 62vh;
    display: flex;
    align-items: center;
    padding: clamp(56px, 9vw, 110px) clamp(18px, 5vw, 48px);
    background:
        linear-gradient(90deg, rgba(16, 17, 20, 0.98) 0%, rgba(16, 17, 20, 0.82) 52%, rgba(16, 17, 20, 0.48) 100%),
        radial-gradient(circle at 80% 28%, rgba(229, 9, 20, 0.34), transparent 30%),
        linear-gradient(135deg, #2f1522, #122438 48%, #111318);
}

.hero-content {
    width: min(680px, 100%);
}

.skip-link {
    position: absolute;
    left: 18px;
    top: -48px;
    padding: 12px 18px;
    border-radius: 0 0 10px 10px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 18px;
}

.search-panel {
    margin-top: 22px;
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: center;
    max-width: 100%;
}

.search-panel input {
    flex: 1 1 170px;
    min-width: 140px;
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--panel-soft);
    color: var(--text);
    font-size: 0.9rem;
}

.search-panel button {
    min-width: 100px;
    padding: 0 18px;
    min-height: 40px;
    border-radius: 999px;
    border: none;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.search-panel button:hover {
    background: #ff1a25;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.eyebrow {
    margin: 0 0 14px;
    color: #ffb7bd;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(2.35rem, 7vw, 4.9rem);
    line-height: 0.98;
}

.hero p {
    max-width: 560px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.btn-primary,
.see-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 6px;
    font-weight: 800;
    text-decoration: none;
}

.btn-primary {
    margin-top: 10px;
    padding: 0 24px;
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: #ff1a25;
}

.btn-secondary {
    margin-top: 10px;
    margin-left: 10px;
    padding: 0 24px;
    min-height: 42px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: transparent;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.container {
    width: min(1200px, calc(100% - 36px));
    margin: 0 auto;
    padding: 42px 0 18px;
}

section {
    scroll-margin-top: 92px;
    margin-bottom: 50px;
}

.section-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.section-top h2 {
    margin: 0;
    font-size: clamp(1.45rem, 4vw, 2rem);
}

.see-more {
    flex: 0 0 auto;
    padding: 0 14px;
    background: var(--accent-soft);
    color: #ff6f77;
    font-size: 0.9rem;
}

.see-more:hover {
    background: rgba(229, 9, 20, 0.22);
}

.show-list,
.update-list,
.show-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.show-item,
.show-card {
    position: relative;
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.show-item.banner-card,
.show-card.banner-card {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.show-item.banner-card::before,
.show-card.banner-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.55));
    pointer-events: none;
}

.show-item.banner-card .show-meta,
.show-item.banner-card .language-tag,
.show-item.banner-card .show-poster,
.show-card.banner-card .show-meta,
.show-card.banner-card .language-tag,
.show-card.banner-card .show-poster {
    position: relative;
    z-index: 1;
}

.show-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.show-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.show-card-link:hover .show-meta h3 {
    color: #fff;
}

.show-item:hover,
.show-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.32);
}

.show-item:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.32);
}

.show-card .show-meta {
    padding: 18px;
}

.show-card .show-meta h3 {
    margin: 0 0 10px;
    font-size: 1.3rem;
}

.show-card .show-meta p {
    margin: 0.4rem 0 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.show-card .show-poster {
    padding: 18px;
    min-height: 150px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
}

.show-card .show-poster strong {
    font-size: 1.2rem;
    line-height: 1.1;
}

/* Featured Dramas Section */
.featured-dramas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.featured-drama-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-drama-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(229, 9, 20, 0.25);
}

.featured-poster {
    width: 100%;
    aspect-ratio: 3 / 4;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.featured-poster::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
}

.featured-title-box {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.8));
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.3;
    text-align: center;
    z-index: 2;
}

.featured-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.show-details {
    padding: 32px 0;
}

.show-details h1 {
    margin-top: 0;
    font-size: clamp(2rem, 4vw, 3rem);
}

.show-details p {
    color: var(--muted);
    line-height: 1.7;
}

.show-details .media-links {
    margin-top: 24px;
}

.show-details .media-links ul {
    padding-left: 20px;
}

.share-section {
    margin-top: 28px;
    padding: 20px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.share-section h2 {
    margin: 0 0 14px;
    font-size: 1.35rem;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease;
    cursor: pointer;
}

.share-button:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.14);
}

.share-button.facebook { background: #1877f2; }
.share-button.x-share { background: #1da1f2; }
.share-button.instagram { background: #e1306c; }
.share-button.youtube { background: #ff0000; }
.share-button.copy-link { background: #4b5563; }

.share-note {
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.95rem;
}

.comments-section {
    margin-top: 32px;
    padding: 24px 22px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.comments-section h2 {
    margin-top: 0;
    margin-bottom: 18px;
}

.comment-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    resize: vertical;
    margin-bottom: 14px;
}

.comment-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border: none;
    border-radius: 14px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.comment-submit:hover {
    background: #ff1a25;
}

.comment-list {
    margin-top: 20px;
}

.comment-item {
    padding: 18px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 14px;
}

.comment-text {
    margin: 0 0 10px;
    color: #fff;
    line-height: 1.75;
}

.comment-meta {
    color: var(--muted);
    font-size: 0.88rem;
}

.no-comments {
    color: var(--muted);
    margin: 0;
}

.back-button {
    display: inline-flex;
    margin-top: 24px;
    padding: 12px 22px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 800;
}

.back-button:hover {
    background: #ff1a25;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 32px;
}

.page-link {
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: var(--panel);
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
}

.page-link.active,
.page-link:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.page-count {
    color: var(--muted);
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.language-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.show-poster {
    display: grid;
    place-items: end start;
    width: 100%;
    aspect-ratio: 16 / 10;
    padding: 18px;
    color: #fff;
    font-size: clamp(1.4rem, 4vw, 2.15rem);
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7);
}

.show-poster.poster-image {
    background-color: #111;    background-size: cover;
    background-position: center;}

.detail-poster img {
    width: 100%;
    max-width: 560px;
    border-radius: 18px;
    display: block;
    margin-bottom: 24px;
    object-fit: cover;
}

.poster-rose { background: linear-gradient(135deg, #442332, #b52645 58%, #15161c); }
.poster-gold { background: linear-gradient(135deg, #1d1f25, #93702c 52%, #17191e); }
.poster-blue { background: linear-gradient(135deg, #182333, #12679d 58%, #101114); }
.poster-green { background: linear-gradient(135deg, #172821, #2c765d 55%, #111318); }
.poster-teal { background: linear-gradient(135deg, #10282c, #188a91 58%, #15161c); }
.poster-purple { background: linear-gradient(135deg, #241735, #7b4ab0 58%, #111318); }
.poster-red { background: linear-gradient(135deg, #301316, #b7131d 58%, #15161c); }
.poster-lime { background: linear-gradient(135deg, #182313, #75a83b 58%, #101114); }
.poster-amber { background: linear-gradient(135deg, #312015, #c57a20 58%, #15161c); }
.poster-navy { background: linear-gradient(135deg, #111827, #315f99 58%, #101114); }
.poster-silver { background: linear-gradient(135deg, #30343a, #8e98a5 58%, #15161c); }
.poster-electric { background: linear-gradient(135deg, #1d1b2e, #415ee0 58%, #101114); }
.poster-crimson { background: linear-gradient(135deg, #1f161a, #9f1f35 58%, #15161c); }
.poster-coffee { background: linear-gradient(135deg, #211915, #8d5c38 58%, #101114); }
.poster-sea { background: linear-gradient(135deg, #122329, #247a8c 58%, #15161c); }

.show-meta {
    padding: 16px;
}

.show-meta h3 {
    margin: 0 0 9px;
    font-size: 1.08rem;
}

.show-meta p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.site-footer {
    padding: 48px 18px;
    border-top: 1px solid var(--border);
    background: var(--panel);
    color: var(--muted);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.footer-section h3 {
    color: var(--text);
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 12px;
}

.footer-section p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-copyright {
    font-weight: 800;
    color: var(--accent);
    font-size: 0.95rem;
}

@media (max-width: 720px) {
    .site-footer {
        padding: 32px 16px;
    }

    .footer-content {
        gap: 24px;
        grid-template-columns: 1fr;
    }

    .footer-section h3 {
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-header {
        flex-wrap: wrap;
        gap: 14px;
        padding: 18px;
    }

    .main-nav .nav-list {
        justify-content: flex-start;
        gap: 12px;
    }

    .section-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-panel {
        flex-direction: column;
        align-items: stretch;
        width: calc(100% - 20px) !important;
        left: 10px !important;
        right: 10px !important;
    }

    .search-panel input,
    .search-panel button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto;
        transition: none !important;
        animation: none !important;
    }
}

@media (max-width: 720px) {
    .site-header {
        align-items: center;
        flex-direction: row;
        gap: 12px;
        position: sticky;
        top: 0;
        z-index: 20;
    }

    .search-toggle {
        order: 2;
    }

    .main-nav {
        width: 100%;
        justify-content: flex-start;
        gap: 10px;
        order: 3;
    }

    .brand {
        order: 1;
    }

    .dropdown-menu {
        left: 0;
        right: auto;
    }

    .section-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .see-more {
        min-height: 36px;
    }
}

@media (max-width: 420px) {
    .main-nav {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .show-list,
    .update-list,
    .show-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .hero {
        padding: clamp(36px, 10vw, 60px) 16px;
    }

    .hero-content {
        width: 100%;
    }

    .hero h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero p {
        font-size: 1rem;
    }

    .container {
        width: 100%;
        max-width: 100%;
        padding: 28px 16px 16px;
    }

    .show-card .show-poster {
        min-height: 130px;
        padding: 14px;
    }

    .show-card .show-meta {
        padding: 14px;
    }

    .show-details {
        padding: 24px 0;
    }

    .back-button {
        width: 100%;
        justify-content: center;
    }

    .pagination {
        gap: 8px;
    }

    .page-link {
        flex: 1 1 auto;
        text-align: center;
        min-width: 0;
    }

    .page-count {
        width: 100%;
        text-align: left;
    }

    .search-panel {
        gap: 10px;
    }

    .search-panel input,
    .search-panel button {
        width: 100%;
    }
}

/* Starfilx-inspired homepage refresh */
:root {
    --bg: #08090b;
    --panel: #111318;
    --panel-soft: #181b22;
    --text: #f5f5f5;
    --muted: #a7adba;
    --accent: #e50914;
    --accent-soft: rgba(229, 9, 20, 0.16);
    --border: rgba(255, 255, 255, 0.09);
}

body {
    background: #08090b;
}

.site-header {
    padding: 12px clamp(14px, 4vw, 42px);
    background: #0c0d10;
    border-bottom: 2px solid var(--accent);
}

.brand {
    letter-spacing: 0;
    font-size: clamp(1.35rem, 3vw, 2rem);
}

.brand span {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-right: 6px;
    border-radius: 6px;
    background: var(--accent);
    color: #fff;
}

.main-nav .nav-list {
    gap: 6px;
}

.main-nav a,
.category-dropdown summary {
    padding: 9px 11px;
    border-radius: 4px;
    color: #e8e8ea;
}

.main-nav a:hover,
.category-dropdown summary:hover {
    background: var(--accent);
    color: #fff;
}

.search-btn {
    min-width: 42px;
    min-height: 42px;
    padding: 0;
    border-radius: 4px;
    background: var(--accent);
    border-color: var(--accent);
}

.starflix-hero {
    min-height: 430px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
    gap: clamp(22px, 5vw, 60px);
    padding: clamp(42px, 7vw, 78px) clamp(18px, 5vw, 54px);
    background:
        linear-gradient(90deg, rgba(8, 9, 11, 0.98), rgba(8, 9, 11, 0.76)),
        url('https://images.unsplash.com/photo-1485846234645-a62644f84728?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
}

.starflix-hero h1 {
    max-width: 760px;
    font-size: clamp(2.15rem, 6vw, 4.25rem);
    line-height: 1.02;
}

.hero-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-self: center;
}

.showcase-tile {
    min-height: 150px;
    border-radius: 8px;
    background: #171a20 center / cover no-repeat;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
}

.showcase-large {
    grid-row: span 2;
    min-height: 314px;
}

.category-rail {
    width: min(1200px, calc(100% - 36px));
    margin: -24px auto 0;
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #101217;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
}

.category-rail a,
.sidebar-tags a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 4px;
    background: #1a1d24;
    color: #f0f0f1;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.9rem;
}

.category-rail a:hover,
.sidebar-tags a:hover {
    background: var(--accent);
}

.home-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 28px;
    align-items: start;
}

.content-column section,
.home-sidebar section {
    margin-bottom: 28px;
}

.star-section-top {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.section-kicker {
    margin: 0 0 4px;
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.star-post-grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.show-item,
.show-card,
.featured-drama-card,
.sidebar-widget {
    border-radius: 6px;
    background: #111318;
    border: 1px solid var(--border);
}

.show-item.banner-card::before,
.show-card.banner-card::before {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.86));
}

.show-poster {
    aspect-ratio: 16 / 10.5;
    font-size: clamp(1.15rem, 3vw, 1.65rem);
}

.show-meta h3 {
    font-size: 1rem;
    line-height: 1.35;
}

.show-meta p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.show-meta .post-date {
    display: block;
    margin-bottom: 7px;
    color: #ff5961;
    font-size: 0.78rem;
    font-weight: 800;
}

.language-tag {
    top: 10px;
    left: 10px;
    right: auto;
    border-radius: 4px;
    background: var(--accent);
    border: 0;
}

.featured-dramas-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.featured-drama-card {
    border-radius: 6px;
    box-shadow: none;
}

.featured-poster {
    aspect-ratio: 2 / 3;
}

.featured-title-box {
    text-align: left;
    font-size: 0.88rem;
}

.sidebar-widget {
    padding: 16px;
}

.sidebar-widget h2 {
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    font-size: 1.05rem;
}

.popular-posts {
    display: grid;
    gap: 12px;
}

.popular-post-item {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 10px;
    color: inherit;
    text-decoration: none;
}

.popular-thumb {
    min-height: 58px;
    border-radius: 5px;
    background: #222 center / cover no-repeat;
}

.popular-text strong {
    display: block;
    font-size: 0.9rem;
    line-height: 1.35;
}

.popular-text small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.76rem;
}

.sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

@media (max-width: 900px) {
    .starflix-hero,
    .home-layout {
        grid-template-columns: 1fr;
    }

    .home-sidebar {
        order: -1;
    }

    .hero-showcase {
        max-width: 520px;
    }
}

@media (max-width: 760px) {
    .top-banner-ads {
        grid-template-columns: 1fr;
        width: min(100% - 16px, 728px);
        margin: 12px auto 18px;
        padding: 8px;
    }

    .top-banner-ads .site-ad-slot {
        min-height: 50px;
    }

    .detail-poster-img {
        height: clamp(460px, 130vw, 620px);
    }
}
@media (max-width: 560px) {
    .starflix-hero {
        padding: 34px 16px 46px;
    }

    .hero-showcase {
        display: none;
    }

    .category-rail {
        width: calc(100% - 24px);
        margin-top: -18px;
    }

    .home-sidebar {
        order: 0;
    }
}

/* Full original streaming-blog remake */
.clone-home {
    --clone-bg: #070707;
    --clone-panel: #111111;
    --clone-panel-2: #171717;
    --clone-red: #e50914;
    --clone-red-dark: #b80710;
    --clone-text: #f4f4f4;
    --clone-muted: #a4a4a4;
    --clone-border: rgba(255, 255, 255, 0.1);
    background: var(--clone-bg);
}

.top-strip {
    background: #050505;
    border-bottom: 1px solid #161616;
    color: #bdbdbd;
    font-size: 0.82rem;
}

.top-strip-inner {
    width: min(1180px, calc(100% - 28px));
    min-height: 34px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.top-strip nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.top-strip a {
    color: #d8d8d8;
    text-decoration: none;
}

.top-strip a:hover {
    color: var(--clone-red);
}

.clone-header {
    position: sticky;
    top: 0;
    z-index: 30;
    min-height: 72px;
    padding: 12px max(14px, calc((100vw - 1180px) / 2));
    background: #0b0b0b;
    border-bottom: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.clone-header .brand {
    color: #fff;
    font-size: clamp(1.55rem, 3vw, 2.35rem);
    font-weight: 950;
}

.clone-header .brand span {
    background: var(--clone-red);
    border-radius: 3px;
}

.clone-header .main-nav .nav-list {
    gap: 2px;
}

.clone-header .main-nav a {
    border-radius: 3px;
    color: #f1f1f1;
    font-size: 0.88rem;
    text-transform: uppercase;
}

.clone-header .main-nav a:hover {
    background: var(--clone-red);
}

.clone-header .search-btn {
    min-width: 70px;
    padding: 0 12px;
    border-radius: 3px;
    background: var(--clone-red);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.clone-category-bar {
    position: sticky;
    top: 72px;
    z-index: 25;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1px;
    padding: 0 max(10px, calc((100vw - 1180px) / 2));
    background: var(--clone-red);
    border-bottom: 3px solid #700309;
}

.clone-category-bar a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 0 16px;
    color: #fff;
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 900;
    text-transform: uppercase;
}

.clone-category-bar a:hover {
    background: rgba(0, 0, 0, 0.22);
}

.clone-ticker {
    width: min(1180px, calc(100% - 28px));
    margin: 18px auto 0;
    display: grid;
    grid-template-columns: auto 1fr;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid var(--clone-border);
    background: #101010;
}

.clone-ticker strong {
    padding: 10px 14px;
    background: var(--clone-red);
    color: #fff;
    text-transform: uppercase;
}

.clone-ticker span {
    padding: 10px 14px;
    color: #ddd;
}

.clone-hero {
    width: min(1180px, calc(100% - 28px));
    margin: 18px auto 0;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
    gap: 14px;
}

.hero-side-stack {
    display: grid;
    gap: 14px;
}

.hero-feature-card {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    border-radius: 5px;
    background: #181818 center / cover no-repeat;
    border: 1px solid var(--clone-border);
}

.hero-feature-card.main-feature {
    min-height: 474px;
}

.hero-feature-card::before,
.clone-post-card::before,
.clone-feature-card .featured-poster::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.86));
    pointer-events: none;
}

.hero-feature-card a {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 18px;
    color: #fff;
    text-decoration: none;
}

.hero-feature-card span,
.featured-title-box span {
    width: fit-content;
    padding: 5px 8px;
    margin-bottom: 8px;
    border-radius: 3px;
    background: var(--clone-red);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.hero-feature-card h2 {
    max-width: 760px;
    margin: 0 0 8px;
    font-size: clamp(1.35rem, 4vw, 2.6rem);
    line-height: 1.05;
}

.hero-feature-card p {
    margin: 0;
    color: #d7d7d7;
    font-weight: 700;
}

.clone-main-layout {
    width: min(1180px, calc(100% - 28px));
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    padding-top: 24px;
}

.clone-section,
.clone-widget {
    margin-bottom: 24px;
    padding: 14px;
    border: 1px solid var(--clone-border);
    border-radius: 5px;
    background: var(--clone-panel);
}

.clone-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 2px solid #242424;
}

.clone-section-head h1,
.clone-section-head h2,
.clone-widget h2 {
    margin: 0;
    color: #fff;
    font-size: 1.12rem;
    line-height: 1.2;
    text-transform: uppercase;
}

.clone-section-head h1::before,
.clone-section-head h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1.2rem;
    margin-right: 8px;
    background: var(--accent);
}

/* Show Detail Page Styles */
.show-detail-main {
    padding: 40px clamp(18px, 5vw, 48px);
    max-width: 1200px;
    margin: 0 auto;
}

.show-detail-hero {
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.1) 0%, rgba(26, 29, 34, 0.8) 100%);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 40px;
}

.show-detail-wrapper {
    display: grid;
    grid-template-columns: minmax(340px, 420px) 1fr;
    gap: 40px;
    align-items: start;
}

.show-detail-poster {
    position: sticky;
    top: 100px;
}

.detail-poster-img {
    width: 100%;
    height: clamp(520px, 68vw, 680px);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    display: block;
}

.show-detail-info h1 {
    font-size: 2.5rem;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.show-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: var(--muted);
}

.meta-item {
    display: flex;
    gap: 8px;
}

.show-detail-meta strong {
    color: var(--text);
}

.show-detail-genre,
.show-detail-cast {
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.show-detail-genre span,
.show-detail-cast span {
    display: inline-block;
    margin-top: 8px;
    padding: 8px 12px;
    background: var(--panel);
    border-radius: 4px;
    border: 1px solid var(--border);
}

.show-detail-description {
    margin-bottom: 30px;
}

.show-detail-description h2 {
    font-size: 1.3rem;
    margin: 0 0 12px 0;
}

.description-text {
    line-height: 1.6;
    color: var(--muted);
}

.watch-now-section {
    margin-top: 30px;
}

.watch-now-section h2 {
    font-size: 1.3rem;
    margin: 0 0 16px 0;
}

.media-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.watch-link {
    display: inline-block;
    padding: 12px 24px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
}

.watch-link:hover {
    background: #cc0811;
    transform: translateY(-2px);
}

.watch-link.coming-soon,
.watch-link[disabled] {
    background: #9aa3ad;
    color: #ffffffcc;
    cursor: not-allowed;
    transform: none;
    opacity: 0.95;
}

/* Share Section */
.show-detail-share {
    background: var(--panel-soft);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
}

.show-detail-share h2 {
    margin: 0 0 20px 0;
    font-size: 1.3rem;
}

.share-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.share-btn {
    padding: 10px 20px;
    background: var(--panel);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.share-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.copy-link-btn {
    font-family: inherit;
}

/* Related Dramas */
.show-related-dramas {
    margin-bottom: 40px;
}

.show-related-dramas h2 {
    font-size: 1.5rem;
    margin: 0 0 24px 0;
}

.related-dramas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.related-drama-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.related-drama-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.related-drama-card a {
    text-decoration: none;
    display: block;
    height: 100%;
}

.related-poster {
    width: 100%;
    padding-bottom: 150%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.related-drama-card h3 {
    margin: 12px;
    font-size: 0.9rem;
    line-height: 1.3;
}

.related-drama-card p {
    margin: 0 12px 12px 12px;
    font-size: 0.8rem;
    color: var(--muted);
}

.back-to-shows {
    text-align: center;
    margin-top: 40px;
}

.back-btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
    .show-detail-wrapper {
        grid-template-columns: 1fr;
    }

    .show-detail-poster {
        position: static;
    }

    .show-detail-info h1 {
        font-size: 1.8rem;
    }

    .show-detail-hero {
        padding: 20px;
    }

    .related-dramas-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}
.clone-section-head h2::before,
.clone-widget h2::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 18px;
    margin-right: 9px;
    vertical-align: -3px;
    background: var(--clone-red);
}

.clone-section-head a {
    flex: 0 0 auto;
    padding: 8px 12px;
    border-radius: 3px;
    background: var(--clone-red);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
}

.clone-feature-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-top: 0;
}

.clone-feature-card {
    border-radius: 4px;
    border: 1px solid var(--clone-border);
    box-shadow: none;
}

.clone-feature-card:hover,
.clone-post-card:hover {
    transform: translateY(-3px);
    border-color: rgba(229, 9, 20, 0.65);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42);
}

.clone-feature-card .featured-poster {
    aspect-ratio: 2 / 3;
}

.clone-feature-card .featured-title-box {
    display: grid;
    justify-items: start;
    gap: 4px;
    padding: 12px;
    text-align: left;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.92));
}

.clone-feature-card .featured-title-box strong {
    display: block;
    font-size: 0.86rem;
    line-height: 1.25;
}

.clone-post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.show-grid,
.update-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.clone-post-card {
    overflow: hidden;
    border-radius: 3px;
    background: #101010;
    border: 1px solid #242424;
    box-shadow: none;
}

.clone-post-card::before {
    display: none;
}

.clone-post-card .show-card-link {
    display: block;
    height: 100%;
}

.clone-post-card .show-poster {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    min-height: 0;
    padding: 0;
    background-color: #1a1a1a;
    background-size: cover;
    background-position: center;
    border-bottom: 0;
}

.clone-post-card .show-poster::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.18));
    pointer-events: none;
}

.clone-post-card .show-meta {
    position: relative;
    z-index: 1;
    min-height: 112px;
    padding: 12px 12px 13px;
    background: #141414;
    border-top: 1px solid #222;
}

.clone-post-card .show-meta h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.32;
}

.clone-post-card .show-meta p {
    margin: 0;
    color: #aaa;
    font-size: 0.82rem;
    line-height: 1.45;
}

.clone-post-card .show-meta .post-date {
    margin-bottom: 7px;
    color: #e50914;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.clone-post-card .language-tag {
    top: 8px;
    left: 8px;
    z-index: 3;
    max-width: calc(100% - 16px);
    padding: 5px 8px;
    border-radius: 2px;
    background: #e50914;
    color: #fff;
    font-size: 0.67rem;
    font-weight: 900;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.clone-widget {
    padding: 14px;
}

.clone-widget h2 {
    padding-bottom: 12px;
    border-bottom: 2px solid #242424;
    font-size: 1rem;
}

.sidebar-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-top: 14px;
}

.sidebar-search input {
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid var(--clone-border);
    border-radius: 3px;
    background: #090909;
    color: #fff;
}

.sidebar-search button {
    border: 0;
    border-radius: 3px;
    padding: 0 12px;
    background: var(--clone-red);
    color: #fff;
    font-weight: 900;
}

.clone-sidebar .popular-posts {
    margin-top: 14px;
    gap: 0;
}

.clone-sidebar .popular-post-item {
    grid-template-columns: 88px 1fr;
    padding: 10px 0;
    border-bottom: 1px solid #242424;
}

.clone-sidebar .popular-post-item:last-child {
    border-bottom: 0;
}

.clone-sidebar .popular-thumb {
    min-height: 62px;
    border-radius: 3px;
}

.clone-sidebar .popular-text strong {
    color: #fff;
    font-size: 0.84rem;
}

.clone-sidebar .popular-text small {
    color: var(--clone-muted);
}

.clone-sidebar .sidebar-tags {
    margin-top: 14px;
}

.clone-sidebar .sidebar-tags a {
    border-radius: 3px;
    background: #202020;
    color: #fff;
    font-size: 0.8rem;
}

.clone-footer {
    margin-top: 20px;
    background: #0b0b0b;
    border-top: 3px solid var(--clone-red);
}

@media (max-width: 980px) {
    .clone-main-layout,
    .clone-hero {
        grid-template-columns: 1fr;
    }

    .hero-feature-card.main-feature {
        min-height: 360px;
    }

    .hero-side-stack {
        grid-template-columns: 1fr 1fr;
    }

    .clone-feature-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .clone-post-grid,
    .show-grid,
    .update-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .top-strip-inner,
    .clone-header,
    .clone-header .nav-list {
        align-items: flex-start;
    }

    .top-strip-inner {
        flex-direction: column;
        padding: 8px 0;
    }

    .clone-category-bar {
        position: static;
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .clone-category-bar a {
        flex: 0 0 auto;
    }

    .hero-side-stack,
    .clone-feature-grid,
    .clone-post-grid,
    .show-grid,
    .update-list {
        grid-template-columns: 1fr;
    }

    .hero-feature-card,
    .hero-feature-card.main-feature {
        min-height: 260px;
    }

    .clone-section,
    .clone-widget {
        padding: 12px;
    }
}

.top-banner-ads {
    display: grid;
    grid-template-columns: repeat(2, minmax(300px, 1fr));
    gap: 12px;
    width: min(100% - 24px, 1180px);
    margin: 16px auto 22px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    background: #101010;
    overflow: hidden;
}

.top-banner-ads .site-ad-slot {
    min-height: 90px;
    background: #080808;
    border: 1px solid #222;
}
.site-ad-stack {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 14px;
    width: min(100% - 24px, 1040px);
    margin: 22px auto;
    padding: 12px 0;
    overflow: hidden;
}

.site-ad-slot {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    min-height: 50px;
    overflow: hidden;
}

.site-ad-slot iframe {
    max-width: 100%;
}

@media (max-width: 760px) {
    .top-banner-ads {
        grid-template-columns: 1fr;
        width: min(100% - 16px, 728px);
        margin: 12px auto 18px;
        padding: 8px;
    }

    .top-banner-ads .site-ad-slot {
        min-height: 50px;
    }

    .detail-poster-img {
        height: clamp(460px, 130vw, 620px);
    }
}
@media (max-width: 560px) {
    .top-banner-ads {
    display: grid;
    grid-template-columns: repeat(2, minmax(300px, 1fr));
    gap: 12px;
    width: min(100% - 24px, 1180px);
    margin: 16px auto 22px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    background: #101010;
    overflow: hidden;
}

.top-banner-ads .site-ad-slot {
    min-height: 90px;
    background: #080808;
    border: 1px solid #222;
}
.site-ad-stack {
        width: min(100% - 16px, 340px);
        gap: 10px;
        margin: 16px auto;
    }

    .site-ad-slot-wide {
        width: 100%;
    }
}

/* Drama detail post layout */
.detail-page-body {
    background: #08090b;
}

.detail-post-shell {
    display: grid;
    gap: 22px;
}

.detail-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: #9aa3ad;
    font-size: 0.9rem;
}

.detail-breadcrumb a {
    color: #ffffff;
    text-decoration: none;
}

.detail-breadcrumb a:hover {
    color: var(--accent);
}

.detail-page-body .show-detail-main {
    max-width: 1180px;
    padding-top: 28px;
}

.detail-page-body .show-detail-hero,
.detail-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: #111318;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.35);
}

.detail-page-body .show-detail-hero {
    padding: 24px;
}

.detail-page-body .show-detail-wrapper {
    grid-template-columns: minmax(240px, 320px) 1fr;
    gap: 28px;
}

.detail-page-body .show-detail-poster {
    position: sticky;
    top: 88px;
}

.detail-page-body .detail-poster-img {
    width: 100%;
    display: block;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: #171a20;
}

.detail-primary-actions {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.detail-primary-link,
.detail-secondary-link,
.source-link,
.episode-watch,
.back-btn,
.share-btn {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 6px;
    padding: 10px 16px;
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.detail-primary-link,
.episode-watch {
    background: #e50914;
}

.detail-secondary-link,
.source-link,
.back-btn,
.share-btn {
    background: #242833;
}

.detail-primary-link:hover,
.episode-watch:hover,
.detail-secondary-link:hover,
.source-link:hover,
.back-btn:hover,
.share-btn:hover {
    filter: brightness(1.12);
}

.detail-primary-link.disabled,
.source-link.disabled,
.episode-watch.disabled {
    background: #5b626d;
    color: #d7dce2;
    cursor: not-allowed;
}

.detail-label {
    margin: 0 0 8px;
    color: #e50914;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0;
}

.detail-page-body .show-detail-title {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1.15;
}

.show-detail-subtitle {
    margin: 10px 0 18px;
    color: #b7bec8;
    line-height: 1.6;
}

.detail-page-body .show-detail-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 22px;
}

.detail-page-body .show-detail-meta div {
    padding: 12px;
    border-radius: 6px;
    background: #171a20;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-page-body .show-detail-meta dt {
    margin-bottom: 5px;
    color: #8f98a6;
    font-size: 0.78rem;
    font-weight: 700;
}

.detail-page-body .show-detail-meta dd {
    margin: 0;
    color: #ffffff;
    font-weight: 800;
}

.detail-info-block {
    margin-top: 18px;
}

.detail-info-block h2,
.detail-section-head h2 {
    margin: 0;
    font-size: 1.1rem;
}

.detail-info-block p {
    margin: 8px 0 0;
    color: #c5cbd3;
    line-height: 1.7;
}

.detail-card {
    padding: 22px;
}

.detail-section-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-bottom: 16px;
}

.detail-section-head span {
    color: #9aa3ad;
    font-size: 0.9rem;
}

.media-links-container,
.share-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.episodes-list {
    display: grid;
    gap: 10px;
}

.episode-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: 6px;
    background: #171a20;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.episode-row strong,
.episode-row span {
    display: block;
}

.episode-row span,
.episode-row p {
    color: #aeb6c2;
}

.episode-row p {
    margin: 6px 0 0;
    font-size: 0.88rem;
}

.episode-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.detail-page-body .related-dramas-grid {
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
}

.detail-page-body .related-drama-card strong,
.detail-page-body .related-drama-card small {
    display: block;
    padding: 0 12px;
}

.detail-page-body .related-drama-card strong {
    margin-top: 10px;
    color: #ffffff;
    line-height: 1.35;
}

.detail-page-body .related-drama-card small {
    margin: 6px 0 12px;
    color: #9aa3ad;
}

.back-to-shows {
    margin-bottom: 18px;
}

@media (max-width: 860px) {
    .detail-page-body .show-detail-wrapper,
    .episode-row {
        grid-template-columns: 1fr;
    }

    .detail-page-body .show-detail-poster {
        position: static;
        max-width: 320px;
        margin: 0 auto;
    }

    .detail-page-body .show-detail-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .episode-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 520px) {
    .detail-page-body .show-detail-main {
        padding-inline: 14px;
    }

    .detail-page-body .show-detail-hero,
    .detail-card {
        padding: 16px;
    }

    .detail-page-body .show-detail-meta {
        grid-template-columns: 1fr;
    }

    .detail-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .detail-primary-link,
    .detail-secondary-link,
    .source-link,
    .episode-watch,
    .share-btn,
    .back-btn {
        width: 100%;
    }
}

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

.roles-grid article {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    background: #171a20;
    padding: 16px;
}

.roles-grid h3 {
    margin: 0 0 10px;
    font-size: 1rem;
}

.roles-grid ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.roles-grid li {
    color: #c5cbd3;
    line-height: 1.45;
}

.comment-form {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    background: #171a20;
    color: #ffffff;
    padding: 12px 14px;
    font: inherit;
}

.comment-form textarea {
    min-height: 110px;
    resize: vertical;
}

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

.comment-item {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    background: #171a20;
    padding: 14px;
}

.comment-item strong,
.comment-item time {
    display: block;
}

.comment-item time,
.empty-comments {
    color: #9aa3ad;
    font-size: 0.9rem;
}

.comment-item p {
    margin: 10px 0 0;
    color: #d7dce2;
    line-height: 1.6;
}

.detail-page-body .show-detail-meta {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 960px) {
    .detail-page-body .show-detail-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .roles-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .detail-page-body .show-detail-meta {
        grid-template-columns: 1fr;
    }
}
