/* ================================================
   FAST ANIMES - Premium Redesign
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #ff6b35;
    --primary-glow: rgba(255, 107, 53, 0.4);
    --accent: #ff9e7d;
    --accent-glow: rgba(255, 158, 125, 0.3);
    --neon-pink: #ff8c61;
    --success: #22c55e;
    --dark-bg: #050505;
    --darker-bg: #000000;
    --card-bg: rgba(18, 18, 18, 0.8);
    --card-bg-solid: #121212;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-hover: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 107, 53, 0.3);
    --text-white: #ffffff;
    --text-gray: #9ca3af;
    --text-muted: #6b7280;
    --header-height: 70px;
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px var(--primary-glow);
    --gradient-hero: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 158, 125, 0.1));
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-white);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.5);
}

/* Row scrollbar */
.row-posters::-webkit-scrollbar {
    height: 3px;
}

.row-posters::-webkit-scrollbar-track {
    background: transparent;
}

.row-posters::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.2);
    border-radius: 10px;
}


/* ================================================
   HEADER
   ================================================ */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4%;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(5, 5, 8, 0.95) 0%, rgba(5, 5, 8, 0) 100%);
    transition: var(--transition);
    backdrop-filter: blur(0px);
}

header.scrolled {
    background: rgba(5, 5, 8, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.logo {
    display: flex;
    align-items: center;
    z-index: 1001;
    position: relative;
    text-decoration: none;
}

.logo img {
    height: 45px;
    width: auto;
}

/* Removed text gradient styles for logo */

.mobile-menu-toggle {
    display: none;
    font-size: 22px;
    cursor: pointer;
    z-index: 1001;
    color: var(--text-white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    background: var(--surface-hover);
    border-color: var(--border-hover);
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-gray);
    padding: 8px 16px;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--text-white);
    background: var(--surface);
}

.nav-links a.active {
    color: var(--text-white);
    background: rgba(139, 92, 246, 0.15);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.search-bar {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 24px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    gap: 8px;
}

.search-bar:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

.search-bar i {
    color: var(--text-muted);
    font-size: 14px;
}

.search-bar input {
    background: transparent;
    border: none;
    color: #fff;
    outline: none;
    width: 200px;
    font-size: 14px;
    font-family: var(--font-main);
}

.search-bar input::placeholder {
    color: var(--text-muted);
}


/* ================================================
   HERO SECTION
   ================================================ */
.hero-slider {
    position: relative;
    height: 80vh;
    min-height: 500px;
    width: 100%;
    overflow: hidden;
    background: var(--darker-bg);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-bg-blur {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background-size: cover;
    background-position: center;
    filter: blur(50px) brightness(0.3) saturate(1.3);
    z-index: 0;
}

/* Gradient overlays on hero */
.slide::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, var(--dark-bg) 0%, rgba(10, 10, 15, 0.5) 50%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    z-index: 1;
    pointer-events: none;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    max-width: 1300px;
    gap: 60px;
    margin-top: var(--header-height);
}

.hero-text {
    flex: 1;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-title {
    font-size: 52px;
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 16px;
    color: #fff;
    letter-spacing: -1px;
}

.hero-meta {
    display: flex;
    gap: 16px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    align-items: center;
}

.hero-meta span {
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 13px;
    color: var(--text-gray);
}

.hero-meta span:first-child {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.2);
    color: var(--success);
}

.hero-desc {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.7);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 550px;
}

.slide-poster {
    flex-shrink: 0;
    width: 260px;
    height: 380px;
    box-shadow: var(--shadow-card), 0 0 60px rgba(139, 92, 246, 0.15);
    border-radius: var(--radius);
    overflow: hidden;
    transform: rotate(2deg);
    border: 2px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.5s ease;
}

.slide.active .slide-poster {
    animation: posterFloat 6s ease-in-out infinite;
}

@keyframes posterFloat {

    0%,
    100% {
        transform: rotate(2deg) translateY(0);
    }

    50% {
        transform: rotate(2deg) translateY(-10px);
    }
}

.slide-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    padding: 0;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.4);
}

.slider-dot.active {
    background: var(--primary);
    box-shadow: 0 0 12px var(--primary-glow);
    width: 28px;
    border-radius: 5px;
}


/* ================================================
   BUTTONS
   ================================================ */
.btn {
    padding: 12px 28px;
    font-size: 14px;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-family: var(--font-main);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    color: #fff;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    margin-left: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}


/* ================================================
   ROWS & POSTERS
   ================================================ */
.container {
    position: relative;
    z-index: 10;
    margin-top: -80px;
    width: 100%;
    padding-bottom: 40px;
    transition: margin-top 0.3s ease;
}

.container.search-active {
    margin-top: calc(var(--header-height) + 24px) !important;
}

.category-row {
    padding: 24px 0;
    padding-left: 4%;
    padding-right: 4%;
    margin-bottom: 16px;
    position: relative;
}

.row-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-white);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.row-title::before {
    content: '';
    width: 4px;
    height: 22px;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    border-radius: 2px;
}

.row-wrapper {
    position: relative;
}

.row-posters {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 12px;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: thin;
}

/* Scroll arrows */
.row-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: var(--transition);
    font-size: 16px;
    opacity: 0;
}

.category-row:hover .row-arrow {
    opacity: 1;
}

.row-arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-50%) scale(1.1);
}

.row-arrow.left {
    left: 8px;
}

.row-arrow.right {
    right: 8px;
}

/* Grid Posters (no horizontal scroll) */
.grid-posters {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 20px 16px;
    padding: 0 14px;
}

.grid-posters .poster {
    width: 100%;
}

.grid-posters .poster img {
    width: 100%;
    height: 255px;
}

/* Poster Card */
.poster {
    width: 175px;
    transition: var(--transition);
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
    overflow: hidden;
}

.poster img {
    width: 100%;
    height: 255px;
    object-fit: cover;
    border-radius: var(--radius);
    transition: var(--transition);
    box-shadow: var(--shadow-card);
}

.poster::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 255px;
    border-radius: var(--radius);
    background: linear-gradient(to top, rgba(10, 10, 15, 0.9) 0%, rgba(10, 10, 15, 0) 60%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.poster:hover::after {
    opacity: 1;
}

.poster:hover {
    transform: translateY(-8px) scale(1.03);
    z-index: 20;
}

.poster:hover img {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 30px var(--primary-glow);
}

.poster-title {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-gray);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    padding: 0 4px;
    transition: var(--transition);
}

.poster:hover .poster-title {
    color: var(--text-white);
}

/* Play icon overlay */
.poster-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    width: 50px;
    height: 50px;
    background: rgba(139, 92, 246, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    z-index: 25;
    font-size: 18px;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.4);
    pointer-events: none;
}

.poster:hover .poster-play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Episode Badge */
.poster-ep-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    z-index: 30;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(139, 92, 246, 0.5);
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, var(--card-bg-solid) 25%, rgba(30, 30, 50, 0.8) 50%, var(--card-bg-solid) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius);
}

.skeleton-poster {
    width: 175px;
    height: 255px;
    flex-shrink: 0;
}

.skeleton-title {
    width: 175px;
    height: 14px;
    margin-top: 10px;
    border-radius: 4px;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ================================================
   MODAL (kept for future use)
   ================================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
    backdrop-filter: blur(10px);
}

.modal-content {
    display: none;
}


/* ================================================
   FOOTER
   ================================================ */
.site-footer {
    background: var(--darker-bg);
    border-top: 1px solid var(--border);
    padding: 50px 4% 30px;
    margin-top: 60px;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
}

.footer-content {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    font-size: 20px;
    margin-bottom: 12px;
    display: inline-block;
}

.footer-brand p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
}

.footer-links h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links a {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.footer-bottom {
    max-width: 1300px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}


/* ================================================
   VIDEO PAGE STYLES
   ================================================ */
.video-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 100px 4% 40px;
    max-width: 1600px;
    margin: 0 auto;
}

.main-content {
    flex: 3;
    min-width: 300px;
}

.sidebar {
    flex: 1;
    min-width: 300px;
}

.player-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(139, 92, 246, 0.1);
    margin-bottom: 24px;
    border: 1px solid var(--border);
}

.player-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.anime-info-header {
    margin-bottom: 24px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.anime-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #fff;
    letter-spacing: -0.5px;
}

.anime-meta {
    color: var(--success);
    font-weight: 600;
    font-size: 13px;
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    align-items: center;
}

.anime-meta span {
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-gray);
}

.anime-meta span:first-child {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.2);
    color: var(--primary);
}

.anime-description {
    color: var(--text-gray);
    line-height: 1.7;
    font-size: 14px;
}

/* Episode Navigation */
.ep-navigation {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.ep-nav-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text-white);
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.ep-nav-btn:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: var(--primary);
    color: var(--primary);
}

.ep-nav-btn.disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* Season Tabs */
.season-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.season-tab {
    background: var(--surface);
    color: var(--text-gray);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-main);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.season-tab:hover {
    background: var(--surface-hover);
    border-color: var(--border-hover);
}

.season-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 15px rgba(139, 92, 246, 0.3);
}

.season-count {
    font-size: 11px;
    opacity: 0.7;
    background: rgba(255, 255, 255, 0.15);
    padding: 2px 6px;
    border-radius: 10px;
}

.ep-grid.season-panel {
    display: none;
}

.ep-grid.season-panel.active {
    display: grid;
}

/* Episode Grid */
.ep-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(55px, 1fr));
    gap: 8px;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 5px;
}

.ep-btn {
    background: var(--surface);
    color: var(--text-gray);
    border: 1px solid var(--border);
    padding: 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
    font-family: var(--font-main);
    display: block;
}

.ep-btn:hover {
    background: var(--surface-hover);
    border-color: var(--border-hover);
    color: var(--text-white);
}

.ep-btn.active {
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 2px 12px rgba(139, 92, 246, 0.3);
}

.sidebar-section {
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.sidebar-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-left: 12px;
    position: relative;
}

.sidebar-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    border-radius: 2px;
}

.related-item {
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
    cursor: pointer;
    transition: var(--transition);
    padding: 8px;
    border-radius: var(--radius-sm);
    text-decoration: none;
}

.related-item:hover {
    background: var(--surface-hover);
}

.related-img {
    width: 65px;
    height: 90px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.related-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.related-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-white);
}

.related-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.sidebar-poster-box {
    margin-top: 20px;
    text-align: center;
    background: var(--card-bg);
    padding: 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.sidebar-poster-box img {
    width: 100%;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    box-shadow: var(--shadow-card);
}


/* ================================================
   GRID LAYOUT (All Animes / Search / My List)
   ================================================ */
.grid-posters {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 24px;
    padding-right: 4%;
}


/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 992px) {
    .hero-title {
        font-size: 40px;
    }

    .slide-poster {
        width: 200px;
        height: 300px;
    }

    .hero-content-wrapper {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 12px 5%;
        flex-wrap: wrap;
        height: auto;
        min-height: var(--header-height);
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 75%;
        background: rgba(5, 5, 8, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
        border-left: 1px solid var(--border);
        gap: 6px;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 18px;
        padding: 14px 30px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .search-bar {
        width: 100%;
        order: 10;
        margin-top: 4px;
    }

    .hero-slider {
        height: 90vh;
    }

    .hero-content-wrapper {
        flex-direction: column-reverse;
        justify-content: center;
        text-align: center;
        margin-top: 20px;
        gap: 20px;
    }

    .hero-text {
        width: 100%;
    }

    .hero-title {
        font-size: 30px;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-meta {
        justify-content: center;
        font-size: 13px;
    }

    .slide-poster {
        width: 150px;
        height: 220px;
        transform: rotate(0deg);
        margin-bottom: 10px;
    }

    @keyframes posterFloat {

        0%,
        100% {
            transform: rotate(0deg) translateY(0);
        }

        50% {
            transform: rotate(0deg) translateY(-6px);
        }
    }

    .poster {
        width: 140px;
    }

    .poster img {
        height: 210px;
    }

    .poster-title {
        font-size: 12px;
    }

    .category-row {
        padding-left: 5%;
        padding-right: 5%;
    }

    .grid-posters {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 16px;
        padding-right: 5%;
    }

    /* Video page */
    .video-layout {
        flex-direction: column;
        padding-top: 80px;
    }

    .sidebar {
        width: 100%;
    }

    .anime-title {
        font-size: 22px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-brand {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .poster {
        width: 120px;
    }

    .poster img {
        height: 175px;
    }

    .skeleton-poster {
        width: 120px;
        height: 175px;
    }

    .hero-title {
        font-size: 24px;
    }

    .slide-poster {
        width: 120px;
        height: 175px;
    }

    .grid-posters {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 12px;
    }
}

/* Featured Content (Internal Ads) */
.featured-slot {
    width: 100%;
    margin: 30px 0;
    border-radius: 12px;
    overflow: hidden;
    min-height: 100px;
    /* background: rgba(255, 255, 255, 0.05); Removed to identify if image is loading */
}

.featured-slot img {
    transition: transform 0.3s;
}

.featured-slot:hover img {
    transform: scale(1.02);
}

.promo-link {
    display: block;
    width: 100%;
    height: 100%;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}