body {
    font-family: "Segoe UI", Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #05070f;
    color: #f1f1f1;
}

html {
    scroll-behavior: smooth;
}

a {
    color: #ffb347;
    text-decoration: none;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

section:has(.tiles-horizontal-scroll-wrapper) {
    padding-left: 0;
    padding-right: 0;
}

.article-content {
    background: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 24px;
    box-shadow: none;
}

.article-content h1,
.article-content h2,
.article-content h3 {
    margin-top: 24px;
    margin-bottom: 16px;
}

.article-content h1:first-child {
    margin-top: 0;
}

.article-content p {
    margin-bottom: 16px;
    line-height: 1.8;
}

.site-header {
    background: linear-gradient(120deg, rgba(20, 24, 46, 0.95), rgba(9, 12, 24, 0.95));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.site-header .branding {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
}

.tagline {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
}

.main-nav {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.main-nav a {
    color: rgba(255, 255, 255, 0.8);
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
}

.main-nav a.active {
    color: #fff;
    border-color: rgba(255, 179, 71, 0.9);
}

.main-nav a:hover {
    color: #fff;
    border-color: rgba(255, 179, 71, 0.6);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.nav-dropdown-toggle:hover {
    color: #fff;
    border-color: rgba(255, 179, 71, 0.6);
}

.nav-dropdown-toggle.active {
    color: #fff;
    border-color: rgba(255, 179, 71, 0.9);
}

.nav-dropdown-arrow {
    font-size: 0.7em;
    transition: transform 0.2s ease;
}

.nav-dropdown.open .nav-dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background: rgba(20, 24, 46, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    min-width: 220px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 1000;
    padding: 8px 0;
}

.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 16px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-bottom: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: transparent;
}

.nav-dropdown-menu a.active {
    background-color: rgba(255, 179, 71, 0.15);
    color: #ffb347;
    border-color: transparent;
}

.header-search {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.header-search input[type="search"] {
    flex: 1 1 240px;
    padding: 10px 14px;
    border-radius: 6px;
    border: none;
}

.header-search button {
    padding: 10px 18px;
    border-radius: 6px;
    background: linear-gradient(90deg, #ff512f, #dd2476);
    color: #fff;
    border: none;
    cursor: pointer;
}

.site-footer {
    background: rgba(9, 11, 20, 0.95);
    padding: 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 48px;
}

.site-footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.site-footer .footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

.site-footer .footer-links a:hover {
    color: #fff;
}

.hero {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: linear-gradient(135deg, rgba(255, 138, 0, 0.18), rgba(229, 46, 113, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hero h1 {
    font-size: 2.4rem;
    margin: 0 0 12px;
}

.hero p {
    max-width: 700px;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.search-form,
.filters-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.search-type-select {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 150px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.search-type-select:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.search-type-select:focus {
    outline: none;
    border-color: #ffb347;
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(255, 179, 71, 0.1);
}

.search-type-select option {
    background: #1a1a1a;
    color: #fff;
    padding: 8px;
}

.search-form input[type="search"],
.filters-form select {
    flex: 1 1 220px;
    padding: 10px 14px;
    border-radius: 6px;
    border: none;
}

.search-form button,
.filters-form button {
    padding: 10px 18px;
    border-radius: 6px;
    background: linear-gradient(90deg, #ff512f, #dd2476);
    color: #fff;
    border: none;
    cursor: pointer;
}

.search-form button:hover,
.filters-form button:hover,
.header-search button:hover {
    opacity: 0.9;
}

.tiles {
    display: grid;
    gap: 16px;
}

.tiles-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

@media (max-width: 768px) {
    .tiles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.tiles-horizontal-scroll-wrapper {
    position: relative;
}

.tiles-horizontal-scroll {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(320px, 420px);
    gap: 20px;
    overflow-x: auto;
    padding: 8px 20px 12px;
    scrollbar-width: none;
}

@media (max-width: 768px) {
    .tiles-horizontal-scroll {
        grid-auto-columns: calc(50% - 8px);
        gap: 16px;
        padding: 8px 12px 12px;
    }
}

.tiles-horizontal-scroll::-webkit-scrollbar {
    display: none;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(8, 11, 22, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: none;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 2;
}

.slider-nav:hover {
    background: rgba(8, 11, 22, 0.95);
    transform: translateY(-50%) scale(1.05);
}

.slider-nav--prev {
    left: 10px;
}

.slider-nav--next {
    right: 10px;
}

.tile {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 24px rgba(12, 14, 26, 0.3);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 40px rgba(15, 18, 33, 0.45);
}

.tile-poster {
    position: relative;
}

.tile-poster img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.tile-poster::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(5, 7, 15, 0.92));
    pointer-events: none;
}

.tile-placeholder {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    font-size: 2.6rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.5);
}

.tile-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tile-body h3 {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.3;
}

.tile-body .meta {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
}

.tile-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: auto;
}

.tile-actions .btn {
    padding: 10px 16px;
    font-size: 0.9rem;
}

.article-primary-link {
    margin-bottom: 16px;
    font-weight: 600;
}

.article-primary-link a {
    color: #ffb347;
}

.article-primary-link a:hover {
    text-decoration: underline;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: auto;
    min-width: 140px;
    max-width: none;
    margin: 0;
    align-self: stretch;
    box-sizing: border-box;
}

.category-card .btn,
.featured-card .btn {
    min-width: 0;
    max-width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #ff8a00, #ff4d4d);
    color: #fff;
    box-shadow: 0 10px 25px rgba(255, 76, 41, 0.35);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.3);
}

.detail-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.detail-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.title-hero {
    position: relative;
    padding: 64px 32px;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(13, 18, 33, 0.95), rgba(7, 10, 20, 0.85));
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.title-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(5, 7, 15, 0.85), rgba(5, 7, 15, 0.3));
    pointer-events: none;
}

.title-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--hero-image, none);
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    filter: blur(8px);
    transform: scale(1.05);
    z-index: 0;
}

.title-hero__content {
    position: relative;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 1;
}

.title-hero__content h1 {
    font-size: 3rem;
    margin: 0;
}

.title-hero__chips {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.title-hero__meta {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
}

.title-hero__meta a {
    color: #ffb347;
}

.title-hero__synopsis {
    margin: 0;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

.title-hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.detail-long-description {
    line-height: 1.7;
    white-space: pre-line;
}

.detail-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.detail-gallery figure {
    margin: 0;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    aspect-ratio: 16 / 9;
}

.detail-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.detail-gallery figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
}

.section-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.section-header h2 {
    margin: 0;
}

.section-header p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}

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

.series-section .section-header p {
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.series-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.series-section .series-grid {
    margin-top: 1.5rem;
}

.series-tile {
    background: rgba(17, 19, 31, 0.92);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.series-tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.series-tile__media {
    position: relative;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #252b3d, #1c202d);
}

.series-tile__media img,
.series-tile__placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.series-tile__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.45);
    background: linear-gradient(135deg, #262b3a, #1a1d29);
}

.series-tile__badge {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.68);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    backdrop-filter: blur(4px);
    text-transform: uppercase;
}

.series-tile__body {
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.series-tile__body h3 {
    font-size: 1.05rem;
    margin: 0;
    color: #fff;
    line-height: 1.35;
}

.series-tile__body .btn {
    align-self: stretch;
    margin-top: auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-left: 16px;
    padding-right: 16px;
}

.detail-section.series-section {
    margin-top: 2.5rem;
}

@media (min-width: 1200px) {
    .series-section .series-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.category-card-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

@media (max-width: 768px) {
    .category-card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .category-card {
        overflow: hidden;
        min-width: 0;
    }

    .category-card__body {
        min-width: 0;
        overflow: hidden;
        padding-left: 0;
        padding-right: 0;
        min-height: 0;
    }

    .category-card .btn-primary {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        align-self: stretch;
    }
}

.category-card {
    background: rgba(17, 18, 28, 0.92);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.category-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #191e29, #10121c);
}

.category-card__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.category-card__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, #23283a, #1a1d2a);
}

.category-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem 0;
    min-height: 0;
}

.category-card__body h3 {
    margin: 0;
    font-size: 1.3rem;
}

.category-card__meta {
    margin: 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
}

.category-card__teaser {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.category-card .btn-primary {
    align-self: stretch;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.featured-card-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

@media (max-width: 768px) {
    .featured-card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

.featured-card {
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(17, 18, 28, 0.9);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.featured-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.45);
}

.featured-card__media {
    position: relative;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #1c2131, #131724);
}

.featured-card__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.featured-card__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.45);
    background: linear-gradient(135deg, #262b3a, #191d2a);
}

.featured-card__body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.featured-card__body h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #fff;
}

.featured-card__body p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.5;
}

.featured-card__body .btn {
    align-self: flex-start;
}

.category-hero {
    position: relative;
    margin-bottom: 2.5rem;
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(22, 25, 40, 0.9), rgba(13, 15, 25, 0.9));
    min-height: 260px;
    display: flex;
    align-items: flex-end;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.category-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--category-hero-image, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.75);
    transform: scale(1.05);
}

.category-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 10, 20, 0) 0%, rgba(8, 10, 20, 0.8) 100%);
}

.category-hero__content {
    position: relative;
    padding: 3rem;
    max-width: 640px;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.category-hero__content h1 {
    margin: 0;
    font-size: clamp(2.2rem, 3.5vw, 3rem);
}

.category-hero__meta {
    margin: 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
}

.category-hero__description {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
}

.category-hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.category-hero__actions .btn {
    min-width: 180px;
}

.article-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.article-card {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.article-card__image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.article-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.article-card__body h3 {
    margin: 0;
    font-size: 1.2rem;
}

.article-card__body p {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
}

.article-body {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
    line-height: 1.8;
}

.article-body br {
    content: "";
    display: block;
    margin: 8px 0;
}

.meta {
    color: rgba(255, 255, 255, 0.65);
}

.filter-info {
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.75);
}

.pagination {
    display: flex;
    gap: 8px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.pagination a {
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.pagination a.active {
    background: linear-gradient(90deg, #ff8a00, #e52e71);
}

.rich-text p {
    line-height: 1.7;
    margin-bottom: 12px;
}

.rich-text a {
    color: #ffb347;
    text-decoration: underline;
}

.error-page {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 48px 24px;
}

.error-page h1 {
    font-size: 5rem;
    margin: 0;
}

@media (max-width: 768px) {
    main {
        padding: 16px;
    }

    .site-header {
        padding: 16px;
    }

    section {
        padding-left: 8px;
        padding-right: 8px;
    }

    .cta-actions {
        flex-direction: column;
        gap: 12px;
    }

    .cta-actions .btn {
        width: 100%;
    }

    .detail-main {
        grid-template-columns: 1fr;
    }

    .detail-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-poster img,
    .poster-placeholder {
        height: 300px;
    }

    /* Series - 2 tiles side by side on mobile */
    .series-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .series-tile {
        overflow: hidden;
        min-width: 0;
    }

    .series-tile__body {
        min-width: 0;
        overflow: hidden;
        padding-left: 12px;
        padding-right: 12px;
    }

    .series-tile__body .btn {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        align-self: stretch;
        padding-left: 12px;
        padding-right: 12px;
    }

    /* Sliders - 2 tiles side by side on mobile (already defined above) */
    .tile-poster img,
    .tile-placeholder {
        height: 140px;
    }

    .tile-body {
        padding: 12px;
    }

    .tile-body h3 {
        font-size: 0.95rem;
        line-height: 1.3;
    }

    .tile-body .meta {
        font-size: 0.85rem;
    }

    .tile-actions {
        gap: 5px;
    }

    .tile-actions .btn {
        padding: 8px 12px;
        font-size: 0.85rem;
        min-width: auto;
    }
}

/* Comments and Ratings Styles */
.comments-section {
    margin-top: 32px;
}

.rating-summary {
    margin-bottom: 32px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.rating-average {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.rating-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffb347;
}

.rating-stars {
    display: flex;
    gap: 4px;
    font-size: 1.5rem;
    line-height: 1;
}

.rating-stars span {
    display: inline-block;
    font-size: 1.5rem;
    line-height: 1;
}

.rating-count {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.comments-list {
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    padding: 20px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.comment-header strong {
    color: #fff;
    font-size: 1rem;
}

.comment-rating {
    display: flex;
    gap: 2px;
    font-size: 1.2rem;
    line-height: 1;
    align-items: center;
}

.comment-rating span {
    display: inline-block;
    font-size: 1.2rem;
    line-height: 1;
}

.comment-header time {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-left: auto;
}

.comment-body {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    white-space: pre-wrap;
}

.comment-form {
    margin-top: 32px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.comment-form h4 {
    margin: 0 0 20px 0;
    color: #fff;
    font-size: 1.3rem;
}

.comment-form .form-group {
    margin-bottom: 20px;
}

.comment-form label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.95rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form select,
.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.comment-form select {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.comment-form select::-ms-expand {
    display: none;
}

.comment-form select option {
    background: #1a1a1a !important;
    color: #fff !important;
    padding: 8px;
}

.comment-form select:invalid {
    color: rgba(255, 255, 255, 0.6);
}

.comment-form select:valid {
    color: #fff;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form select:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #ffb347;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(255, 179, 71, 0.1);
}

.comment-form input[type="text"]::placeholder,
.comment-form input[type="email"]::placeholder,
.comment-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.comment-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

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

.comment-form button[type="submit"] {
    padding: 14px 28px;
    background: linear-gradient(90deg, #ff512f, #dd2476);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(255, 81, 47, 0.3);
}

.comment-form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 81, 47, 0.4);
}

.comment-form button[type="submit"]:active {
    transform: translateY(0);
}

.comment-form-info {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 16px;
    line-height: 1.6;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.rating-preview {
    display: inline-block;
    font-size: 1.2em !important;
    color: #ffc107 !important;
    margin-left: 8px;
    line-height: 1;
}

@media (max-width: 768px) {
    .rating-average {
        flex-direction: column;
        align-items: flex-start;
    }

    .comment-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .comment-header time {
        margin-left: 0;
    }

    .comment-form {
        padding: 16px;
    }
}

