body {
    color: #e5e7eb;
    overflow-x: hidden;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.08), transparent 45%),
        radial-gradient(circle at bottom left, rgba(236, 72, 153, 0.08), transparent 45%);
}

.hero-section {
    display: grid;
    grid-template-columns: minmax(260px, 2fr) minmax(320px, 3fr);
    gap: 2.5rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.85));
    border-radius: 32px;
    padding: 2.5rem;
    border: 1px solid rgba(148, 163, 184, 0.15);
    box-shadow: 0 25px 40px -20px rgba(15, 23, 42, 0.6);
    position: relative;
    overflow: hidden;
}

.hero-media {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background-color: #0f172a;
    aspect-ratio: 16 / 9;
    box-shadow: inset 0 0 30px rgba(15, 23, 42, 0.8);
}

.hero-media video,
.hero-media iframe,
.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-media .hero-poster {
    filter: saturate(105%) brightness(1.05);
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
}

.hero-meta-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-age,
.hero-platform {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.85rem;
    background-color: rgba(15, 118, 110, 0.15);
    color: #5eead4;
    border: 1px solid rgba(45, 212, 191, 0.25);
}

.hero-platform {
    background-color: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.25);
}

.hero-title {
    font-size: clamp(2.25rem, 2vw + 1.5rem, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #f8fafc;
    text-shadow: 0 18px 45px rgba(30, 64, 175, 0.45);
}

.hero-summary {
    font-size: 1.05rem;
    line-height: 1.75rem;
    color: #cbd5f5;
    max-width: 48ch;
}

.hero-quickfacts {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: #94a3b8;
}

.hero-quickfacts span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hero-tags span {
    padding: 0.4rem 0.9rem;
    border-radius: 9999px;
    background-color: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.25);
    font-size: 0.75rem;
    font-weight: 600;
    color: #e2e8f0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-action {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    border-radius: 9999px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -15px rgba(59, 130, 246, 0.65);
}

.age-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
}

.age-section-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.age-section-header p {
    color: #94a3b8;
    font-size: 0.9rem;
}

.series-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 280px);
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.3) transparent;
}

.series-row::-webkit-scrollbar {
    height: 8px;
}

.series-row::-webkit-scrollbar-track {
    background: transparent;
}

.series-row::-webkit-scrollbar-thumb {
    background-color: rgba(148, 163, 184, 0.3);
    border-radius: 9999px;
}

.series-card {
    position: relative;
    background-color: rgba(15, 23, 42, 0.9);
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.15);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 340px;
}

.series-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(96, 165, 250, 0.45);
    box-shadow: 0 24px 45px -30px rgba(37, 99, 235, 0.85);
}

.series-card .preview-wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.preview-overlay {
    position: absolute;
    bottom: 0.85rem;
    left: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    z-index: 2;
}

.series-card video,
.series-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.35s ease;
    display: block;
}

.series-card video {
    opacity: 0;
}

.series-card:hover video {
    opacity: 1;
}

.series-card:hover img {
    opacity: 0;
}

.series-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(15, 23, 42, 0.95) 100%);
    pointer-events: none;
}

.series-card .info {
    position: relative;
    z-index: 1;
    padding: 1.25rem 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.series-card .title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.series-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.4;
}

.series-card .age-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.7rem;
    border-radius: 9999px;
    background-color: rgba(45, 212, 191, 0.15);
    color: #5eead4;
    border: 1px solid rgba(45, 212, 191, 0.25);
}

.preview-platform {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.7rem;
    border-radius: 9999px;
    background-color: rgba(59, 130, 246, 0.2);
    color: #bfdbfe;
    border: 1px solid rgba(59, 130, 246, 0.35);
}

.platform-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.platform-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.3rem 0.65rem;
    border-radius: 9999px;
    background-color: rgba(59, 130, 246, 0.25);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #e0f2fe;
    backdrop-filter: blur(6px);
}

.platform-chip--more {
    background-color: rgba(148, 163, 184, 0.35);
    border-color: rgba(148, 163, 184, 0.45);
    color: #e2e8f0;
}

.series-card p {
    font-size: 0.9rem;
    color: #cbd5f5;
    line-height: 1.5;
}

.series-card .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.series-card .tags span {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.3rem 0.65rem;
    border-radius: 9999px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: #e2e8f0;
    background-color: rgba(148, 163, 184, 0.16);
}

.series-card .admin-controls {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    display: flex;
    gap: 0.5rem;
}

.series-card .admin-button {
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(15, 23, 42, 0.85);
    color: #e2e8f0;
    transition: background-color 0.2s ease;
}

.series-card .admin-button:hover {
    background-color: rgba(30, 64, 175, 0.9);
}

.series-card .admin-button.delete:hover {
    background-color: rgba(220, 38, 38, 0.9);
}

.platform-logo {
    width: 80px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 12px 24px rgba(15, 23, 42, 0.65));
}

.detail-hero {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: flex-end;
    padding: 2.75rem;
    background-color: #0f172a;
    overflow: hidden;
}

.detail-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.9) 85%);
    z-index: 0;
}

.detail-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.detail-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
}

.detail-body {
    padding: 2.5rem;
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 2rem;
}

.detail-body h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    color: #cbd5f5;
    font-size: 0.9rem;
}

.detail-meta span {
    padding: 0.4rem 0.8rem;
    border-radius: 9999px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background-color: rgba(148, 163, 184, 0.12);
}

.detail-trailer {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background-color: rgba(15, 23, 42, 0.9);
    aspect-ratio: 16 / 9;
}

.detail-trailer iframe,
.detail-trailer video {
    width: 100%;
    height: 100%;
}

.streaming-callout-list {
    display: grid;
    gap: 1rem;
}

.streaming-callout {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(14, 165, 233, 0.05));
    border-radius: 20px;
    padding: 1.75rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
    display: grid;
    gap: 1rem;
}

.streaming-callout--secondary {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(30, 64, 175, 0.1));
    border-color: rgba(148, 163, 184, 0.25);
}

.streaming-callout strong {
    font-size: 1.1rem;
}

.streaming-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.watch-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.35rem;
    border-radius: 9999px;
    background-color: #3b82f6;
    color: #ffffff;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.watch-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 35px -25px rgba(59, 130, 246, 0.9);
}

.platform-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    border-radius: 9999px;
    background-color: rgba(14, 165, 233, 0.12);
    color: #bae6fd;
    font-weight: 600;
    border: 1px solid rgba(14, 165, 233, 0.25);
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #cbd5f5;
    margin-bottom: 0.35rem;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    background-color: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 14px;
    padding: 0.65rem 0.85rem;
    color: #f8fafc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

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

.form-help {
    font-size: 0.75rem;
    color: #94a3b8;
}

.modal-backdrop {
    backdrop-filter: blur(10px);
}

@media (max-width: 1024px) {
    .hero-section {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .hero-media {
        order: 2;
    }

    .hero-content {
        order: 1;
    }

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

@media (max-width: 768px) {
    .hero-section {
        border-radius: 24px;
        padding: 1.75rem;
    }

    .series-row {
        grid-auto-columns: minmax(200px, 240px);
    }

    .series-card {
        min-height: 300px;
    }
}
