:root {
    --bg-0: #05070b;
    --bg-1: #0d1218;
    --bg-2: #101a24;
    --surface: rgba(18, 24, 31, 0.96);
    --surface-strong: #111b26;
    --surface-soft: rgba(255, 255, 255, 0.02);
    --card-bg: #171f2a;
    --card-bg-strong: #1d2733;
    --panel-border: rgba(134, 155, 180, 0.18);
    --neon-green: #39ff14;
    --neon-green-soft: rgba(57, 255, 20, 0.14);
    --neon-orange: #ff8a3d;
    --text-color: #edf4ff;
    --text-muted: #b6c3d7;
    --grey: #9ca8b8;
    --shadow-soft: 0 22px 60px rgba(0, 0, 0, 0.42);
    --shadow-glow: 0 0 0 1px rgba(57, 255, 20, 0.16), 0 18px 44px rgba(57, 255, 20, 0.12);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top, rgba(57, 255, 20, 0.12), transparent 18%),
        radial-gradient(circle at 15% 20%, rgba(90, 140, 255, 0.12), transparent 16%),
        linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 38%, var(--bg-2) 100%);
    color: var(--text-color);
    padding-bottom: 64px;
    line-height: 1.6;
    letter-spacing: 0.01em;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.08;
    background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: radial-gradient(circle at center, black 45%, transparent 100%);
}

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

a {
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--neon-green);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(57,255,20,0.18);
}

.skip-link {
    position: absolute;
    left: 20px;
    top: -60px;
    z-index: 1100;
    background: var(--neon-green);
    color: #000;
    padding: 10px 14px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 20px;
}

/* --- HEADER & NAVIGATION STYLES --- */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(13, 18, 24, 0.95);
    border: 1px solid rgba(57, 255, 20, 0.2);
    border-radius: 12px;
    padding: 10px 20px;
    margin: 12px auto;
    max-width: 1200px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--neon-green, #39ff14);
    text-decoration: none;
    letter-spacing: 0.05em;
}

nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

nav a {
    color: var(--text-color, #edf4ff);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

nav a:hover,
nav a.active {
    color: var(--neon-green, #39ff14);
    background: rgba(57, 255, 20, 0.08);
    border-color: rgba(57, 255, 20, 0.25);
    box-shadow: inset 0 0 0 1px rgba(57, 255, 20, 0.12);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-action-btn {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color, #edf4ff);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-action-btn:hover {
    background: rgba(57, 255, 20, 0.15);
    color: var(--neon-green, #39ff14);
    border-color: var(--neon-green, #39ff14);
    box-shadow: 0 0 12px rgba(57, 255, 20, 0.2);
}

.language-toggle {
    display: flex;
    align-items: center;
    background: rgba(10, 14, 19, 0.95);
    border: 1px solid rgba(57, 255, 20, 0.22);
    border-radius: 999px;
    overflow: hidden;
}

.language-btn {
    background: transparent;
    color: var(--text-color, #edf4ff);
    border: none;
    padding: 6px 12px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.language-btn.active {
    background: var(--neon-green, #39ff14);
    color: #000;
}

/* Schedule header clear button - small variant of header action */
.schedule-panel-header .header-action-btn,
#schedule-panel .header-action-btn {
    min-width: auto;
    padding: 8px 10px;
    font-size: 0.85rem;
}

.shortcut-help {
    position: fixed; /* Fixes position relative to the viewport/screen */
    top: 70px;
    right: max(20px, calc((100vw - 1200px) / 2));
    z-index: 1000;
    min-width: min(300px, calc(100vw - 40px));
    background: rgba(8, 12, 18, 0.98);
    color: var(--text-color);
    border: 1px solid rgba(57, 255, 20, 0.28);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    padding: 18px 18px 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: 0.18s ease;
}

.shortcut-help.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.shortcut-help strong {
    display: block;
    margin-bottom: 12px;
    color: var(--neon-green);
    font-size: 0.95rem;
}

.shortcut-help ul {
    list-style: none;
    display: grid;
    gap: 8px;
}

.shortcut-help li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.shortcut-help li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2em;
    padding: 0.3rem 0.55rem;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: inset 0 -2px 0 rgba(255,255,255,0.08);
    color: var(--text-color);
    font-weight: 700;
}

.hero-banner {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 360px;
    margin-bottom: 34px;
    padding: clamp(24px, 4vw, 50px);
    border-radius: 28px;
    border: 1px solid rgba(57,255,20,0.2);
    background:
        linear-gradient(135deg, rgba(6, 10, 16, 0.24), rgba(7, 11, 15, 0.88)),
        url('https://placehold.co/1200x420/111/39ff14?text=Omega-Roll') center/cover no-repeat;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.hero-banner::after {
    content: "";
    position: absolute;
    inset: auto -20% -30% auto;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(57,255,20,0.28), transparent 65%);
    filter: blur(14px);
}

.hero-banner h1 {
    position: relative;
    z-index: 1;
    max-width: 720px;
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    line-height: 1.02;
    margin-bottom: 12px;
    letter-spacing: -0.05em;
}

.hero-banner p {
    position: relative;
    z-index: 1;
    max-width: 700px;
    color: var(--neon-green);
    font-size: 1.05rem;
    font-weight: 600;
}

.section-panel {
    background: linear-gradient(180deg, rgba(15, 20, 27, 0.96), rgba(11, 16, 21, 0.96));
    border: 1px solid var(--panel-border);
    border-radius: 20px;
    padding: 24px 22px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 28px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
}

.filter-control,
.search-input {
    background: rgba(10, 14, 19, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: var(--text-color);
    border-radius: 12px;
    padding: 12px 14px;
    min-width: 150px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-control:focus,
.search-input:focus {
    outline: none;
    border-color: var(--neon-green);
    box-shadow: 0 0 12px rgba(57,255,20,0.12);
}

h1, h2, h3 {
    color: var(--text-color);
    margin-bottom: 18px;
    line-height: 1.2;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h3 { font-size: 1.35rem; }

.neon-title {
    color: var(--neon-green);
    text-shadow: 0 0 12px rgba(57,255,20,0.35);
}

hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.14), transparent);
    margin: 52px 0;
}

p {
    line-height: 1.7;
    color: var(--text-muted);
}

.search-panel {
    margin-bottom: 30px;
}

.container {
    width: min(1200px, calc(100% - 28px));
    margin: 32px auto 0;
    padding-bottom: 12px;
}

.anime-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 22px;
    margin-top: 20px;
}

.anime-card {
    position: relative;
    background: linear-gradient(180deg, var(--card-bg) 0%, var(--card-bg-strong) 100%);
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
    border: 1px solid rgba(57,255,20,0.12);
    display: flex;
    flex-direction: column;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.anime-card:hover {
    transform: translateY(-6px);
    border-color: rgba(57,255,20,0.4);
    box-shadow: 0 0 0 1px rgba(57,255,20,0.12), 0 22px 36px rgba(0,0,0,0.4);
}

.anime-card img {
    width: 100%;
    height: 272px;
    object-fit: cover;
    background: #000;
}

.anime-card .info {
    min-height: 118px;
    padding: 16px 14px 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
}

.anime-card h3 {
    font-size: 0.98rem;
    line-height: 1.35;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.anime-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 2px;
}

.anime-card-score,
.anime-card-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 9px;
    border-radius: 999px;
    border: 1px solid rgba(57,255,20,0.18);
    background: rgba(57,255,20,0.08);
    color: var(--neon-green);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.anime-card-badge-alt {
    background: rgba(255,255,255,0.03);
    border-color: rgba(148, 163, 184, 0.18);
    color: var(--text-muted);
    text-transform: none;
    letter-spacing: 0.01em;
}

.search-container {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.search-input {
    flex: 1;
    padding: 13px 18px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(10, 14, 19, 0.95);
    color: var(--text-color);
    font-size: 1rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--neon-green);
    box-shadow: 0 0 12px rgba(57,255,20,0.14);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--neon-green), #8df38b);
    color: #000;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 12px 30px rgba(57,255,20,0.18);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 36px rgba(57,255,20,0.24);
}

.watchlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.86);
    color: var(--neon-green);
    border: 1px solid rgba(57,255,20,0.35);
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
    transition: 0.2s ease;
}

.watchlist-btn:hover {
    background: var(--neon-green);
    color: #000;
}

.watchlist-btn.saved {
    background: var(--neon-green);
    color: #000;
}

.schedule-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
    z-index: 999;
}

.schedule-overlay.open {
    opacity: 1;
    visibility: visible;
}

#schedule-panel {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(420px, 100%);
    background: rgba(10, 15, 22, 0.98);
    border-left: 1px solid rgba(57, 255, 20, 0.2);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.7);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 24px;
    overflow-y: auto;
}

#schedule-panel.open {
    transform: translateX(0);
}

.schedule-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.schedule-panel-header h2 {
    margin: 0;
    font-size: 1.35rem;
    color: var(--neon-green);
}

#schedule-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
}

#schedule-close:hover {
    color: var(--neon-green);
}

.schedule-loading,
.schedule-empty {
    color: var(--grey);
    padding: 20px 0;
    font-size: 0.92rem;
    text-align: center;
}

.schedule-day-section {
    margin-bottom: 24px;
}

.schedule-day-section h3 {
    margin-bottom: 12px;
    font-size: 1rem;
    color: var(--neon-green);
    letter-spacing: 0.02em;
    border-bottom: 1px dashed rgba(57, 255, 20, 0.2);
    padding-bottom: 4px;
}

.schedule-day-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.schedule-entry {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 14px;
    border-radius: 12px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.schedule-entry:hover {
    border-color: rgba(57, 255, 20, 0.3);
    background: rgba(57, 255, 20, 0.04);
}

.schedule-unfollow {
    position: absolute;
    right: 10px;
    top: 8px;
    background: transparent;
    border: none;
    color: var(--grey);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
    z-index: 2;
}

.schedule-unfollow:hover {
    color: #ff4d4d;
}

.schedule-entry-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.schedule-entry-main {
    flex: 1 1 auto;
    min-width: 0;
    padding-right: 12px;
}

.schedule-entry-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.schedule-entry-ep {
    display: inline-block;
    margin-bottom: 6px;
    background: rgba(57, 255, 20, 0.1);
    color: var(--neon-green);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
}

.schedule-entry-meta {
    color: var(--grey);
    font-size: 0.82rem;
}

.schedule-entry-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.schedule-entry-thumb {
    width: 52px;
    height: 74px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.schedule-view-btn {
    display: inline-block;
    background: transparent;
    border: 1px solid rgba(57, 255, 20, 0.3);
    color: var(--neon-green);
    padding: 4px 10px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.schedule-view-btn:hover {
    background: var(--neon-green);
    color: #000;
}

.mal-link {
    display: inline-block;
    margin-top: 12px;
    color: var(--neon-green);
    text-decoration: none;
    border: 1px solid rgba(57,255,20,0.25);
    padding: 8px 12px;
    border-radius: 12px;
    transition: background 0.2s ease;
}

.mal-link:hover {
    background: rgba(57,255,20,0.12);
}

.recommendation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.recommendation-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 14px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.recommendation-card:hover {
    transform: translateY(-2px);
    background: rgba(57,255,20,0.08);
}

.recommendation-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
}

.recommendation-card strong {
    font-size: 0.95rem;
}

@media (max-width: 900px) {
    .filter-row {
        justify-content: stretch;
    }

    .filter-control,
    .search-input {
        min-width: 100%;
    }

    header {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        padding: 18px 16px;
    }

    header > div,
    nav {
        width: 100%;
    }

    nav {
        order: 2;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .header-actions {
        justify-content: center;
    }

    .header-action-btn {
        width: 100%;
        min-width: auto;
        padding: 14px 16px;
        border-radius: 14px;
    }

    .anime-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 18px;
    }

    .anime-card img {
        height: 280px;
    }

    #schedule-panel {
        width: min(100%, 420px);
    }

    .schedule-entry {
        grid-template-columns: 80px 1fr;
        padding: 14px;
    }
}

@media (max-width: 600px) {
    .container {
        width: min(100% - 18px, 1200px);
    }

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

    .anime-card img {
        height: 220px;
    }

    header {
        padding: 16px 14px;
    }

    .header-action-btn,
    #schedule-close {
        width: 100%;
    }

    .schedule-entry {
        grid-template-columns: 72px 1fr;
    }
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.category-header h2 {
    margin-bottom: 0;
}

.genre-pill-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-height: 160px;
    overflow-y: auto;
    padding-right: 6px;
}

.genre-pill-container::-webkit-scrollbar {
    width: 6px;
}

.genre-pill-container::-webkit-scrollbar-thumb {
    background: var(--panel-border);
    border-radius: 4px;
}

.genre-pill {
    background: var(--surface-strong);
    border: 1px solid var(--panel-border);
    padding: 8px 18px;
    border-radius: 999px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.88rem;
    font-weight: 600;
}

.genre-pill:hover {
    color: var(--text-color);
    border-color: rgba(57, 255, 20, 0.4);
    background: var(--card-bg-strong);
}

.genre-pill.active {
    background: var(--neon-green-soft);
    border-color: var(--neon-green);
    color: var(--neon-green);
    box-shadow: 0 0 12px rgba(57, 255, 20, 0.2);
}

.loading-state {
    color: var(--neon-green);
    font-weight: 600;
    padding: 20px 0;
}

.pill-skeleton {
    width: 90px;
    height: 36px;
    background: var(--surface-strong);
    border-radius: 999px;
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0% { opacity: 0.4; }
    50% { opacity: 0.8; }
    100% { opacity: 0.4; }
}

/* Poster action buttons (MAL / AniList) */
.poster-wrap {
    position: relative;
    display: inline-block;
}

.poster-actions {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 8px;
    z-index: 5;
}

.poster-action {
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.06);
    color: var(--text-color);
    padding: 6px 8px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.78rem;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.poster-action:hover {
    background: var(--neon-green);
    color: #000;
    box-shadow: var(--shadow-glow);
}

/* Featured Hero Section (Streaming Service Style) */
.featured-hero {
    position: relative;
    width: 100%;
    min-height: 420px;
    border-radius: 20px;
    background-size: cover;
    background-position: center top;
    display: flex;
    align-items: center;
    padding: 40px;
    margin-bottom: 30px;
    border: 1px solid rgba(57, 255, 20, 0.2);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.hero-details {
    max-width: 620px;
    z-index: 2;
}

.hero-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.hero-badges .badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.hero-badges .score {
    background: rgba(57, 255, 20, 0.2);
    color: var(--neon-green);
    border: 1px solid var(--neon-green);
}

.hero-badges .ep {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-badges .tag {
    background: var(--neon-orange);
    color: #000;
}

.hero-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 12px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.hero-synopsis {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 22px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.hero-actions {
    display: flex;
    gap: 14px;
}

.hero-actions .btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 800;
}

@media (max-width: 768px) {
    .featured-hero {
        min-height: 340px;
        padding: 24px;
    }
}

/* Carousel Base Styling */
.carousel-container {
    position: relative;
    width: 100%;
    min-height: 440px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(57, 255, 20, 0.2);
    box-shadow: var(--shadow-soft);
    margin-bottom: 20px;
    background: #0d1218;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, transform 0.6s ease;
    transform: scale(1.02);
    background-size: cover;
    background-position: center top;
    display: flex;
    align-items: center;
    padding: 40px clamp(20px, 5vw, 60px);
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.hero-details {
    max-width: 620px;
    z-index: 2;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.hero-badges .badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.hero-badges .score {
    background: rgba(57, 255, 20, 0.2);
    color: var(--neon-green);
    border: 1px solid var(--neon-green);
}

.hero-badges .ep {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-badges .tag {
    background: var(--neon-orange);
    color: #000;
}

.hero-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 12px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.hero-synopsis {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 22px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

/* Arrow Controls */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(5, 7, 11, 0.65);
    backdrop-filter: blur(8px);
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 1.25rem;
    line-height: 1;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.carousel-arrow:hover {
    background: var(--neon-green);
    color: #000;
    border-color: var(--neon-green);
    box-shadow: 0 0 16px rgba(57, 255, 20, 0.4);
    transform: translateY(-50%) scale(1.08);
}

.carousel-arrow.prev { 
    left: 20px; 
}

.carousel-arrow.next { 
    right: 20px; 
}

/* Extra Padding on Slide content so text never collides with left arrow */
.carousel-slide {
    padding-left: clamp(70px, 8vw, 90px);
    padding-right: clamp(70px, 8vw, 90px);
}

/* Navigation Dots */
.carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background 0.2s ease, width 0.2s ease;
}

.carousel-dot.active {
    background: var(--neon-green);
    width: 24px;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .carousel-container {
        min-height: 380px;
    }
    .carousel-arrow {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
}