/* ==========================================================================
   ANIZY — ULTRA-REALISTIC LUXURY WHITE ANIME DESIGN SYSTEM
   Featuring: 100% Static Luminous Hopping Shimmer, Floating 2:3 & 1:1 Profile Frames,
   Encapsulated Metadata Enclosures, Interactive 5-Step Verification & Live Anime Hub
   ========================================================================== */

:root {
    --bg-main: #ffffff;
    --bg-subtle: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --bg-overlay: rgba(15, 23, 42, 0.45);
    
    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;
    --border-dark: #94a3b8;
    --border-focus: #0f172a;
    
    --text-main: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-inverse: #ffffff;

    --anime-pink: #ff007f;
    --anime-purple: #8b5cf6;
    --anime-blue: #3b82f6;
    --anime-cyan: #06b6d4;
    --anime-gold: #f59e0b;
    --anime-green: #10b981;
    --anime-gradient: linear-gradient(135deg, #ff007f 0%, #8b5cf6 50%, #3b82f6 100%);
    --anime-gradient-soft: linear-gradient(135deg, rgba(255, 0, 127, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);

    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 6px 20px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 14px 36px rgba(15, 23, 42, 0.08);
    --shadow-pop: 0 24px 60px rgba(15, 23, 42, 0.14);
    --shadow-anime: 0 10px 30px rgba(255, 0, 127, 0.18);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 26px;
    --radius-pill: 9999px;

    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    line-height: 1.5;
    overflow-x: hidden;
}

/* ─── 100% STATIC LUMINOUS HOPPING SHIMMER ENGINE ─── */
@keyframes flixPulseAmbient {
    0%, 100% {
        background-color: #f1f5f9;
        border-color: #e2e8f0;
    }
    50% {
        background-color: #e2e8f0;
        border-color: #cbd5e1;
    }
}

@keyframes flixRaySweep {
    0% {
        transform: translateX(-160%) rotate(25deg);
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    100% {
        transform: translateX(260%) rotate(25deg);
        opacity: 0;
    }
}

.shimmer-box {
    position: relative;
    background: #f1f5f9;
    overflow: hidden;
    border: 1px solid var(--border-light);
    animation: flixPulseAmbient 2.4s ease-in-out infinite;
    animation-delay: var(--hop-delay, 0s);
}

.shimmer-box::before {
    content: '';
    position: absolute;
    top: -60%;
    left: -60%;
    width: 220%;
    height: 220%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.85) 45%,
        rgba(255, 255, 255, 0.98) 50%,
        rgba(255, 255, 255, 0.85) 55%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: flixRaySweep 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    animation-delay: var(--hop-delay, 0s);
    pointer-events: none;
    z-index: 2;
}

/* ─── LUXURY WHITE TOPBAR / HEADER ─── */
.anizy-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 74px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
}

.anizy-header-inner {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-menu-trigger {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    background: var(--bg-subtle);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.05rem;
    transition: all 0.2s ease;
}
.btn-menu-trigger:hover {
    background: #e2e8f0;
    border-color: var(--border-medium);
    transform: scale(1.04);
}

.anizy-logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-main);
}
.anizy-logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--anime-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.15rem;
    box-shadow: 0 4px 14px rgba(255, 0, 127, 0.3);
}
.anizy-logo-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.45rem;
    letter-spacing: -0.5px;
    background: var(--anime-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.anizy-logo-badge {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    background: rgba(255, 0, 127, 0.1);
    color: var(--anime-pink);
    padding: 2px 7px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 0, 127, 0.2);
}

/* Category Trigger */
.btn-category-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid var(--border-medium);
    color: var(--text-main);
    padding: 9px 16px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-category-trigger:hover {
    background: var(--bg-subtle);
    border-color: var(--anime-purple);
    color: var(--anime-purple);
}

/* Search Bar */
.anizy-search-wrap {
    flex: 1;
    max-width: 520px;
    position: relative;
}
.search-input-container {
    position: relative;
    width: 100%;
}
.search-icon-left {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.95rem;
    pointer-events: none;
}
.anizy-search-input {
    width: 100%;
    height: 44px;
    padding: 0 40px 0 42px;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--border-light);
    background: var(--bg-subtle);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-main);
    outline: none;
    transition: all 0.2s ease;
}
.anizy-search-input:focus {
    background: #ffffff;
    border-color: var(--anime-purple);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
}
.search-clear-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: none;
}

/* Autocomplete Dropdown */
.search-suggestions-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-pop);
    max-height: 420px;
    overflow-y: auto;
    z-index: 1200;
    display: none;
    padding: 8px;
}
.search-suggestions-dropdown.open {
    display: block;
}
.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.18s;
}
.suggestion-item:hover {
    background: var(--bg-subtle);
}
.suggestion-thumb {
    width: 44px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    background: #e2e8f0;
}
.suggestion-info {
    flex: 1;
    min-width: 0;
}
.suggestion-title {
    font-weight: 800;
    font-size: 0.92rem;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.suggestion-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 3px;
    display: flex;
    gap: 8px;
}

/* Header Right Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.action-round-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    background: #ffffff;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.05rem;
    transition: all 0.2s ease;
    position: relative;
    text-decoration: none;
}
.action-round-btn:hover {
    background: var(--bg-subtle);
    border-color: var(--border-medium);
    color: var(--text-main);
}
.notif-badge-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: var(--anime-pink);
    border-radius: 50%;
    border: 2px solid #ffffff;
}

.btn-profile-pill {
    display: flex;
    align-items: center;
    gap: 9px;
    background: #ffffff;
    border: 1.5px solid var(--border-medium);
    padding: 5px 14px 5px 5px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-profile-pill:hover {
    background: var(--bg-subtle);
    border-color: var(--anime-pink);
}
.profile-avatar-wrap {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--anime-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
}
.profile-avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.profile-pseudo-text {
    font-weight: 800;
    font-size: 0.88rem;
    color: var(--text-main);
    max-width: 110px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ─── SIDEBAR DRAWER (LEFT FLYOUT) ─── */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-overlay);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}
.sidebar-overlay.open {
    opacity: 1;
    visibility: visible;
}
.anizy-sidebar-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 320px;
    max-width: 85vw;
    background: #ffffff;
    border-right: 1px solid var(--border-light);
    box-shadow: var(--shadow-pop);
    z-index: 2100;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.anizy-sidebar-drawer.open {
    transform: translateX(0) !important;
}

/* Right-sided Drawer (e.g. Chat Lounge) */
.anizy-sidebar-drawer.drawer-right {
    left: auto !important;
    right: 0 !important;
    border-right: none !important;
    border-left: 1px solid var(--border-light) !important;
    transform: translateX(100%);
    width: 420px;
    max-width: 95vw;
}
.anizy-sidebar-drawer.drawer-right.open {
    transform: translateX(0) !important;
}
.drawer-header {
    padding: 20px 22px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.drawer-profile-card {
    padding: 16px 22px;
    background: var(--anime-gradient-soft);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 14px;
}
.drawer-profile-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    border: 2.5px solid #ffffff;
    box-shadow: var(--shadow-sm);
}
.drawer-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.drawer-profile-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--text-main);
}
.drawer-profile-badge {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--anime-pink);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.drawer-nav {
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.drawer-nav-label {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    padding: 10px 12px 4px;
}
.drawer-nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 14px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    transition: all 0.18s ease;
}
.drawer-nav-item:hover, .drawer-nav-item.active {
    background: var(--bg-subtle);
    color: var(--text-main);
}
.drawer-nav-item.active {
    background: rgba(255, 0, 127, 0.08);
    color: var(--anime-pink);
}
.drawer-nav-item i {
    width: 20px;
    text-align: center;
    font-size: 1.05rem;
    color: var(--text-muted);
}
.drawer-nav-item.active i {
    color: var(--anime-pink);
}

/* ─── LUXURY TRANSPARENT HEADER (ANIZY HOME OVERLAY) ─── */
body.anizy-home-page {
    padding-top: 0 !important;
}
body.anizy-home-page .anizy-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 74px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: none;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    z-index: 1000;
}
body.anizy-home-page .anizy-header.header-scrolled {
    background: rgba(10, 15, 29, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.5);
}
body.anizy-home-page .anizy-logo-title {
    color: #ffffff;
}
body.anizy-home-page .btn-menu-trigger {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}
body.anizy-home-page .btn-menu-trigger:hover {
    background: rgba(255, 255, 255, 0.26);
    color: #ffffff;
}
body.anizy-home-page .btn-category-trigger {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}
body.anizy-home-page .btn-category-trigger .nav-text-label {
    color: #ffffff;
}
body.anizy-home-page .search-input-container {
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-pill);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
}
body.anizy-home-page .search-input-container:focus-within {
    background: rgba(255, 255, 255, 0.97);
    border-color: var(--anime-pink);
    box-shadow: 0 0 0 3px rgba(255, 0, 127, 0.18);
}
body.anizy-home-page .anizy-search-input {
    background: transparent;
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
body.anizy-home-page .search-input-container:focus-within .anizy-search-input {
    color: #1a1a2e;
    text-shadow: none;
}
body.anizy-home-page .anizy-search-input::placeholder {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
}
body.anizy-home-page .search-input-container:focus-within .anizy-search-input::placeholder {
    color: rgba(60, 60, 80, 0.5);
}
body.anizy-home-page .search-icon-left {
    color: rgba(255, 255, 255, 0.85);
}
body.anizy-home-page .search-input-container:focus-within .search-icon-left {
    color: var(--anime-pink);
}
body.anizy-home-page .search-clear-btn {
    color: rgba(255, 255, 255, 0.85);
}
body.anizy-home-page .search-input-container:focus-within .search-clear-btn {
    color: rgba(30, 30, 50, 0.7);
}
body.anizy-home-page .action-round-btn {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}
body.anizy-home-page .action-round-btn:hover {
    background: rgba(255, 255, 255, 0.26);
}
body.anizy-home-page .btn-profile-pill {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}
body.anizy-home-page .profile-pseudo-text {
    color: #ffffff;
}
body.anizy-home-page .btn-profile-pill .nav-text-label {
    color: #cbd5e1;
}

/* ─── CAROUSEL CINÉMATIQUE 3D FLUIDE (STYLE MDVD / ANIME ENGINE) ─── */
.anizy-carousel-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
}

.carousel {
    height: 100vh;
    min-height: 680px;
    width: 100%;
    overflow: hidden;
    position: relative;
    background-color: #0b0f19;
}

/* Les items de la liste : TOUS en position absolue plein écran, image 100% lumineuse sans coin sombre */
.carousel .list .item {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0 0 0 0;
}

.carousel .list .item:nth-child(1) {
    z-index: 1;
}

.carousel .list .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

/* Contenu textuel : MASQUÉ par défaut pour TOUS les items inactifs (évite toute superposition de texte) */
.carousel .list .item .content {
    display: none;
    position: absolute;
    top: 20%;
    width: 1200px;
    max-width: 86%;
    left: 50%;
    transform: translateX(-50%);
    padding-right: 46%;
    box-sizing: border-box;
    color: #ffffff;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.85);
    z-index: 10;
}

.content-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #ff007f 0%, #8b5cf6 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 14px;
    border-radius: 9999px;
    margin-bottom: 14px;
    box-shadow: 0 4px 14px rgba(255, 0, 127, 0.35);
}

.content h1.anime-title {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 4.5vw, 4rem);
    font-weight: 900;
    line-height: 1.08;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
    color: #ffffff;
}

.content .details {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.content .details p {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #ffcc00;
    padding: 0 10px;
    border-right: 2px solid rgba(255, 255, 255, 0.35);
    margin: 0;
}

.content .details p:last-child {
    border-right: none;
}

.content .anime-synopsis {
    max-width: 580px;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.65;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95), 0 1px 4px rgba(0, 0, 0, 0.9);
    margin: 0 0 26px 0;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.content .buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.buttons .download-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 30px;
    font-weight: 800;
    font-size: 0.98rem;
    border: none;
    background: #efbf04;
    color: #000000;
    box-shadow: 0 8px 24px rgba(239, 191, 4, 0.4);
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.buttons .download-btn:hover {
    background: #ffd700;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(239, 191, 4, 0.6);
}

.buttons .trailer-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 24px;
    font-weight: 700;
    font-size: 0.92rem;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.buttons .trailer-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: #ffffff;
    transform: translateY(-2px);
}

.buttons .resume-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 26px;
    font-weight: 800;
    font-size: 0.95rem;
    border: 1.5px solid rgba(0, 240, 255, 0.7);
    background: linear-gradient(135deg, rgba(0, 150, 255, 0.45) 0%, rgba(139, 92, 246, 0.65) 100%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: #ffffff;
    border-radius: 9999px;
    cursor: pointer;
    box-shadow: 0 6px 22px rgba(0, 200, 255, 0.38);
    transition: all 0.25s ease;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
}

.buttons .resume-btn:hover {
    background: linear-gradient(135deg, rgba(0, 200, 255, 0.75) 0%, rgba(139, 92, 246, 0.9) 100%);
    border-color: #00f0ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 240, 255, 0.6);
}

.buttons .watchlist-circle-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.buttons .watchlist-circle-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    color: var(--anime-gold);
}

/* ─── THUMBNAILS (MINIATURES BAS DROITE - STYLE ANIME EXACT ET CLAIR) ─── */
.thumbnail {
    position: absolute;
    bottom: 50px;
    left: 50%;
    width: max-content;
    z-index: 100;
    display: flex;
    gap: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top-left-radius: 50px;
    border-bottom-left-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-right: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.thumbnail .item {
    width: 150px;
    height: 220px;
    flex-shrink: 0;
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    cursor: pointer;
}

.thumbnail .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 30px;
}

.thumbnail .item .thum-glass-overlay {
    display: none;
}

.thumbnail .item .thum-content {
    color: #ffffff;
    position: absolute;
    bottom: 12px;
    left: 14px;
    right: 14px;
    z-index: 3;
}

.thumbnail .item .thum-content .title {
    font-weight: 700;
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.thumbnail .item .thum-content .description {
    font-weight: 500;
    font-size: 0.72rem;
    color: #cbd5e1;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ─── ARROWS (NAVIGATION AVANT / ARRIÈRE) ─── */
.arrows {
    position: absolute;
    bottom: 135px;
    right: calc(50% + 20px);
    z-index: 105;
    display: flex;
    gap: 12px;
    align-items: center;
}

.arrows button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(238, 238, 238, 0.88);
    backdrop-filter: blur(8px);
    border: none;
    color: #000000;
    font-size: 1.15rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.arrows button:hover {
    background-color: #ffffff;
    color: #ff0040;
    box-shadow: 0 0 20px rgba(255, 0, 64, 0.6);
    transform: scale(1.08);
}

/* ─── PROGRESS BAR (4 SECONDES) ─── */
.carousel .time {
    position: absolute;
    z-index: 1000;
    width: 0%;
    height: 5px;
    background: linear-gradient(90deg, #ff0040, #ff007f, #8b5cf6);
    left: 0;
    top: 0;
}

.carousel.running .time,
.carousel.next .time,
.carousel.prev .time {
    animation: runningTime 4s linear 1 forwards;
}

@keyframes runningTime {
    from { width: 100%; }
    to { width: 0%; }
}

/* ─── ANIMATION TEXT IN FIRST ITEM ─── */
.carousel .list .item:nth-child(1) .content {
    display: block;
    filter: blur(20px);
    opacity: 0;
    animation: showContent 0.5s 0.8s linear 1 forwards;
}

@keyframes showContent {
    to {
        filter: blur(0px);
        opacity: 1;
    }
}

/* ─── CREATE ANIMATION WHEN NEXT CLICK (SHOWIMAGE DEPUIS LA MINIATURE) ─── */
.carousel.next .list .item:nth-child(1) {
    z-index: 50;
}

.carousel.next .list .item:not(:nth-child(1)) .content {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.carousel.next .list .item:nth-child(1) img {
    width: 150px;
    height: 220px;
    position: absolute;
    bottom: 50px;
    left: 50%;
    border-radius: 100%;
    animation: showImage 0.5s linear 1 forwards;
    z-index: 50;
}

@keyframes showImage {
    to {
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}

.carousel.next .thumbnail {
    animation: effectNext 0.5s linear 1 forwards;
}

@keyframes effectNext {
    from {
        transform: translateX(170px);
    }
    to {
        transform: translateX(0);
    }
}

/* ─── PREV CLICK (DIMINUTION FLUIDE DE L'IMAGE VERS LA MINIATURE) ─── */
.carousel.prev .list .item:nth-child(2) {
    z-index: 200;
}

.carousel.prev .list .item:nth-child(2) img {
    animation: outFrame 0.5s linear 1 forwards;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 200;
}

@keyframes outFrame {
    to {
        width: 150px;
        height: 220px;
        bottom: 50px;
        left: 50%;
        border-radius: 100%;
    }
}

.carousel.prev .thumbnail .item:nth-child(1) {
    overflow: hidden;
    opacity: 0;
    animation: showThumbnail 0.5s linear 1 forwards;
}

@keyframes showThumbnail {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 150px;
        opacity: 1;
    }
}

.carousel.prev .list .item:nth-child(2) .content {
    animation: contentOut 1.5s linear 1 forwards !important;
}

@keyframes contentOut {
    to {
        filter: blur(20px);
        opacity: 0;
    }
}

.carousel.next .arrows button,
.carousel.prev .arrows button {
    pointer-events: none;
}

/* ═════════════════════════════════════════════════════════════
   SOLO LEVELING CINEMATIC RESUME & 3D LOGO MORPH ENGINE
   ═════════════════════════════════════════════════════════════ */

/* 1. Fullscreen Background Video Layer */
.solo-video-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.7s;
    overflow: hidden;
    background: #000000;
}

.solo-video-layer.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.solo-trailer-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: brightness(0.92) contrast(1.06);
}

/* 2. Luminous Shimmer Loading Overlay on Player */
.video-shimmer-loader {
    position: absolute;
    inset: 0;
    z-index: 20;
    background: rgba(11, 15, 25, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.video-shimmer-loader.loading {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.video-shimmer-box {
    width: 280px;
    height: 8px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.6), 0 0 40px rgba(139, 92, 246, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.video-shimmer-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(0, 240, 255, 0) 0%,
        rgba(0, 240, 255, 0.8) 35%,
        rgba(255, 255, 255, 1) 50%,
        rgba(255, 0, 127, 0.8) 65%,
        rgba(139, 92, 246, 0) 100%
    );
    animation: videoShimmerSweep 1.3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes videoShimmerSweep {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(50%); }
}

.video-shimmer-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.video-shimmer-text i {
    color: #00f0ff;
}

/* 3. Bottom Left Quit Button */
.bottom-quit-btn {
    position: absolute;
    bottom: 45px;
    left: 45px;
    z-index: 120;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 26px;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    border-radius: 9999px;
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(25px) scale(0.92);
    transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.bottom-quit-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.bottom-quit-btn:hover {
    background: linear-gradient(135deg, rgba(255, 0, 127, 0.85), rgba(139, 92, 246, 0.85));
    border-color: #ff007f;
    box-shadow: 0 0 25px rgba(255, 0, 127, 0.6);
    transform: translateY(-2px) scale(1.04);
}

/* 4. Center Watch Button (Appears 2 seconds before end) */
.center-watch-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    z-index: 130;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.center-watch-container.visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.center-watch-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 18px 44px;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.35rem;
    letter-spacing: 0.5px;
    color: #000000;
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.85), 0 12px 35px rgba(0, 0, 0, 0.6);
    animation: centerWatchPulse 1.6s infinite ease-in-out;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.center-watch-btn:hover {
    background: linear-gradient(135deg, #fff066 0%, #ffbb00 100%);
    transform: scale(1.08);
    box-shadow: 0 0 60px rgba(255, 215, 0, 1), 0 16px 45px rgba(0, 0, 0, 0.7);
}

.watch-icon-pulse {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #000000;
    color: #ffd700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
}

@keyframes centerWatchPulse {
    0%, 100% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.75), 0 10px 30px rgba(0, 0, 0, 0.5);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 60px rgba(255, 215, 0, 1), 0 15px 45px rgba(255, 170, 0, 0.9);
        transform: scale(1.06);
    }
}

/* 5. 3D Card Deck to Transparent Site Logo Morph Container */
.deck-logo-morph-container {
    position: absolute;
    bottom: 50px;
    left: 50%;
    width: 150px;
    height: 220px;
    z-index: 110;
    perspective: 1200px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.deck-logo-morph-container.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.deck-flipper {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.95s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.deck-flipper.flipped {
    transform: rotateY(180deg) scale(1.15);
}

.deck-front,
.deck-back {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 28px;
}

/* Deck Front: Realistic Stack of Cards with Solo Leveling on Top */
.deck-front {
    position: relative;
}

.deck-card {
    position: absolute;
    inset: 0;
    border-radius: 28px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.deck-card-3 {
    transform: translate(-10px, -8px) rotate(-4deg);
    opacity: 0.65;
}

.deck-card-2 {
    transform: translate(6px, -5px) rotate(2.5deg);
    opacity: 0.8;
}

.deck-card-1 {
    transform: translate(-4px, -2px) rotate(-1.5deg);
    opacity: 0.9;
}

.deck-card-cover {
    position: absolute;
    inset: 0;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(0, 240, 255, 0.5);
    border: 2px solid rgba(0, 240, 255, 0.8);
    transform: translate(0, 0) rotate(0deg);
}

.deck-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 26px;
}

.deck-cover-overlay {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: center;
}

.deck-cover-badge {
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid #00f0ff;
    color: #00f0ff;
    font-size: 0.68rem;
    font-weight: 900;
    padding: 3px 10px;
    border-radius: 9999px;
    letter-spacing: 0.5px;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

/* Deck Back: Floating Transparent Site Logo */
.deck-back {
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.site-logo-morph-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background: transparent;
}

.logo-morph-aura {
    position: absolute;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.5) 0%, rgba(255, 0, 127, 0.35) 45%, rgba(139, 92, 246, 0) 72%);
    filter: blur(14px);
    animation: auraPulse 2.8s infinite ease-in-out alternate;
    pointer-events: none;
}

@keyframes auraPulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    100% { transform: scale(1.25); opacity: 1; }
}

.site-logo-transparent-img {
    max-width: 130px;
    max-height: 130px;
    object-fit: contain;
    background: transparent !important;
    filter: drop-shadow(0 0 16px rgba(0, 240, 255, 0.8)) drop-shadow(0 0 30px rgba(255, 0, 127, 0.6));
    animation: logoLevitate 2.6s ease-in-out infinite alternate;
    position: relative;
    z-index: 2;
}

@keyframes logoLevitate {
    0% { transform: translateY(0px) scale(1); }
    100% { transform: translateY(-10px) scale(1.06); }
}

.site-logo-glow-label {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.15rem;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #ffffff 0%, #00f0ff 50%, #ff007f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
    margin-top: 6px;
    position: relative;
    z-index: 2;
}

/* 6. Card Gathering & Dealing Animations for .thumbnail */
.thumbnail.gathering-to-deck .item {
    transition: transform 0.75s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s ease !important;
}

.thumbnail.gathering-to-deck .item:nth-child(1) {
    transform: translate(0, 0) rotate(0deg) !important;
}

.thumbnail.gathering-to-deck .item:nth-child(2) {
    transform: translate(-170px, -4px) rotate(-2.5deg) !important;
    opacity: 0.85;
}

.thumbnail.gathering-to-deck .item:nth-child(3) {
    transform: translate(-340px, -8px) rotate(2deg) !important;
    opacity: 0.75;
}

.thumbnail.gathering-to-deck .item:nth-child(4) {
    transform: translate(-510px, -12px) rotate(-3deg) !important;
    opacity: 0.65;
}

.thumbnail.gathering-to-deck .item:nth-child(5) {
    transform: translate(-680px, -16px) rotate(1.5deg) !important;
    opacity: 0.55;
}

.thumbnail.gathering-to-deck .item:nth-child(6) {
    transform: translate(-850px, -20px) rotate(-2deg) !important;
    opacity: 0.45;
}

/* Dealing Cards Back Out */
.thumbnail.dealing-out .item {
    animation: dealCardOut 0.65s cubic-bezier(0.34, 1.4, 0.64, 1) forwards !important;
}

.thumbnail.dealing-out .item:nth-child(1) { animation-delay: 0.04s !important; }
.thumbnail.dealing-out .item:nth-child(2) { animation-delay: 0.14s !important; }
.thumbnail.dealing-out .item:nth-child(3) { animation-delay: 0.24s !important; }
.thumbnail.dealing-out .item:nth-child(4) { animation-delay: 0.34s !important; }
.thumbnail.dealing-out .item:nth-child(5) { animation-delay: 0.44s !important; }
.thumbnail.dealing-out .item:nth-child(6) { animation-delay: 0.54s !important; }

@keyframes dealCardOut {
    0% {
        transform: translate(-170px, -6px) scale(0.95);
        opacity: 0.5;
    }
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
}

/* Solo Leveling Main Shrink and Expand Keyframes */
.carousel .list .item.solo-shrinking-down img {
    animation: soloShrinkDown 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards !important;
    z-index: 200;
}

.carousel .list .item.solo-shrinking-down .content {
    animation: contentOut 0.4s ease forwards !important;
}

@keyframes soloShrinkDown {
    0% {
        inset: 0 0 0 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
        bottom: 0;
        left: 0;
    }
    100% {
        width: 150px;
        height: 220px;
        bottom: 50px;
        left: 50%;
        border-radius: 28px;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 240, 255, 0.6);
    }
}

.carousel .list .item.solo-expanding-up img {
    animation: soloExpandUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards !important;
    z-index: 200;
}

@keyframes soloExpandUp {
    0% {
        width: 150px;
        height: 220px;
        bottom: 50px;
        left: 50%;
        border-radius: 28px;
    }
    100% {
        width: 100%;
        height: 100%;
        bottom: 0;
        left: 0;
        border-radius: 0;
    }
}

/* ─── RESPONSIVE MOBILE (IPHONE & ÉCRANS ÉTROITS) ─── */
@media screen and (max-width: 768px) {
    .carousel {
        height: 88vh;
        min-height: 560px;
    }
    .carousel .list .item .content {
        top: 14%;
        width: 100%;
        max-width: 92%;
        padding-right: 0;
        left: 4%;
        transform: none;
    }
    .content h1.anime-title {
        font-size: 2.1rem;
        line-height: 1.15;
    }
    .content .anime-synopsis {
        max-width: 100%;
        -webkit-line-clamp: 3;
        font-size: 0.88rem;
        margin: 12px 0;
    }
    .thumbnail {
        bottom: 25px;
        left: 40%;
        gap: 12px;
        border-top-left-radius: 25px;
        border-bottom-left-radius: 25px;
    }
    .thumbnail .item {
        width: 110px;
        height: 160px;
        border-radius: 20px;
    }
    .thumbnail .item img {
        border-radius: 20px;
    }
    .thumbnail .item .thum-glass-overlay {
        border-radius: 20px;
    }
    .arrows {
        top: auto;
        bottom: 30px;
        left: 16px;
        right: auto;
        width: auto;
    }
    .arrows button {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
    .carousel.next .list .item:nth-child(1) {
        z-index: 50;
    }
    .carousel.next .list .item:nth-child(1) img {
        width: 110px;
        height: 160px;
        bottom: 25px;
        left: 40%;
        border-radius: 100%;
        animation: showImageMobile 0.5s linear 1 forwards;
        z-index: 50;
    }
    @keyframes showImageMobile {
        to {
            bottom: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border-radius: 0;
        }
    }
    .carousel.next .thumbnail {
        animation: effectNextMobile 0.5s linear 1 forwards;
    }
    @keyframes effectNextMobile {
        from {
            transform: translateX(122px);
        }
        to {
            transform: translateX(0);
        }
    }
    .carousel.prev .list .item:nth-child(2) {
        z-index: 200;
    }
    .carousel.prev .list .item:nth-child(2) img {
        animation: outFrameMobile 0.5s linear 1 forwards;
        z-index: 200;
    }
    @keyframes outFrameMobile {
        to {
            width: 110px;
            height: 160px;
            bottom: 25px;
            left: 40%;
            border-radius: 100%;
        }
    }
    .carousel.prev .thumbnail .item:nth-child(1) {
        animation: showThumbnailMobile 0.5s linear 1 forwards;
    }
    @keyframes showThumbnailMobile {
        from {
            width: 0;
            opacity: 0;
        }
        to {
            width: 110px;
            opacity: 1;
        }
    }
}

@media screen and (max-width: 480px) {
    .carousel {
        height: 92vh;
        min-height: 560px;
    }
    .carousel .list .item .content {
        top: 13%;
    }
    .content h1.anime-title {
        font-size: 1.85rem;
    }
    .content .details {
        font-size: 0.8rem;
        flex-wrap: wrap;
        gap: 6px;
    }
    .content .details p {
        font-size: 0.82rem;
        padding: 0 6px;
    }
    .buttons .download-btn {
        padding: 11px 22px;
        font-size: 0.9rem;
    }
    .buttons .trailer-btn {
        padding: 11px 18px;
        font-size: 0.84rem;
    }
    .thumbnail {
        left: 36%;
    }
    .carousel.next .list .item:nth-child(1) img {
        left: 36%;
    }
    @keyframes outFrameMobile {
        to {
            width: 110px;
            height: 160px;
            bottom: 25px;
            left: 36%;
            border-radius: 100%;
        }
    }
}

/* ─── DETACHED MEDIA CARDS ARCHITECTURE (IDENTICAL TO FRYNZYFLIX) ─── */
.content-body {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 24px 80px;
}
.section-wrap {
    margin-bottom: 46px;
}
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.section-title {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-title i {
    color: var(--anime-pink);
    font-size: 1.25rem;
}

.section-scroll-outer {
    position: relative;
    width: 100%;
}
.media-cards-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 12px;
    scrollbar-width: none;
}
.media-cards-grid::-webkit-scrollbar {
    display: none;
}

/* INFINITE SCROLL CATALOG GRID (MULTI-ROW AUTO-FILL) */
.media-cards-grid.infinite-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 26px 18px !important;
    overflow-x: visible !important;
    padding-bottom: 30px;
}
.media-cards-grid.infinite-grid .media-unit {
    flex: auto !important;
    width: 100% !important;
}
@media (max-width: 768px) {
    .media-cards-grid.infinite-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
        gap: 16px 12px !important;
    }
}

.infinite-scroll-sentinel {
    width: 100%;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0 50px;
}
.infinite-scroll-loader {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 1.5px solid var(--border-medium);
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
    font-weight: 800;
    font-size: 0.92rem;
    color: var(--text-main);
}


.section-scroll-btn {
    position: absolute;
    top: 38%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--border-medium);
    box-shadow: var(--shadow-md);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.2s ease;
}
.section-scroll-btn:hover {
    background: var(--text-main);
    color: #ffffff;
    border-color: var(--text-main);
}
.section-scroll-btn.scroll-left { left: -14px; }
.section-scroll-btn.scroll-right { right: -14px; }

/* STANDALONE DETACHED MEDIA UNIT */
.media-unit {
    display: flex;
    flex-direction: column;
    gap: 10px;
    cursor: pointer;
    text-decoration: none;
    flex: 0 0 200px;
    width: 200px;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.media-unit:hover {
    transform: translateY(-6px);
}

@media (max-width: 768px) {
    .media-unit {
        flex: 0 0 155px;
        width: 155px;
    }
}

/* 1. FLOATING STANDALONE PROFILE FRAME (2:3 PORTRAIT) */
.media-profile-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 2/3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #e2e8f0;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    border: 1px solid var(--border-light);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.media-unit:hover .media-profile-frame {
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    border-color: rgba(255, 0, 127, 0.35);
}

/* SQUARE PROFILE FRAME (1:1 ASPECT RATIO) FOR HEROES & CHARACTERS */
.media-profile-frame.square {
    aspect-ratio: 1/1 !important;
    border-radius: var(--radius-xl);
}

.media-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, opacity 0.3s ease;
}
.media-unit:hover .media-profile-img {
    transform: scale(1.06);
}

/* FLOATING OVERLAY TAGS ON POSTER */
.media-rating-floating {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 3;
}
.media-rating-floating i {
    color: var(--anime-gold);
}

.media-quality-floating {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    color: #0f172a;
    font-size: 0.7rem;
    font-weight: 900;
    padding: 2px 7px;
    border-radius: 6px;
    z-index: 3;
}

.media-hover-glass {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.38);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 4;
}
.media-unit:hover .media-hover-glass {
    opacity: 1;
}
.media-play-ring {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffffff;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    transform: scale(0.85);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.media-unit:hover .media-play-ring {
    transform: scale(1);
}

/* 2. ENCAPSULATED METADATA CARD (FRAME ENCLOSURE BELOW POSTER) */
.media-meta-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: all 0.25s ease;
}
.media-unit:hover .media-meta-card {
    border-color: var(--border-medium);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    background: #ffffff;
}
.media-card-title {
    font-size: 0.94rem;
    font-weight: 800;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}
.media-card-chips {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    color: var(--text-muted);
    font-weight: 600;
}
.media-chip-pill {
    background: var(--bg-subtle);
    color: var(--text-secondary);
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 0.72rem;
    font-weight: 700;
}

/* ==========================================================================
   ONBOARDING / CONFIGURATION / VERIFY STYLES (/anizy/configuration/verify)
   ========================================================================== */

.verify-page-wrapper {
    min-height: 100vh;
    background: #ffffff;
    background-image: 
        radial-gradient(circle at 10% 15%, rgba(255, 0, 127, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 85%, rgba(139, 92, 246, 0.04) 0%, transparent 40%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
}

.verify-card-container {
    width: 100%;
    max-width: 820px;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-pop);
    overflow: hidden;
    position: relative;
}

.verify-header-strip {
    padding: 24px 32px 18px;
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.verify-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 5-Step Stepper Header */
.stepper-progress-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border-light);
}
.step-node {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
}
.step-node.active {
    color: var(--anime-pink);
}
.step-node.completed {
    color: var(--anime-green);
}
.step-number-circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid var(--border-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 800;
}
.step-node.active .step-number-circle {
    background: var(--anime-pink);
    border-color: var(--anime-pink);
    color: #ffffff;
}
.step-node.completed .step-number-circle {
    background: var(--anime-green);
    border-color: var(--anime-green);
    color: #ffffff;
}
.step-connector {
    flex: 1;
    height: 2px;
    background: var(--border-light);
    margin: 0 10px;
}
.step-connector.filled {
    background: var(--anime-green);
}

.step-content-pane {
    padding: 36px 32px;
    display: none;
    animation: fadeInStep 0.3s ease;
}
.step-content-pane.active {
    display: block;
}

@keyframes fadeInStep {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-heading-box {
    text-align: center;
    margin-bottom: 28px;
}
.step-badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    background: rgba(255, 0, 127, 0.08);
    color: var(--anime-pink);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.step-main-title {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: -0.5px;
}
.step-description-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 6px;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

/* Step 1: Welcome & Features Cards */
.features-grid-welcome {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 26px;
}
.feature-card-item {
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 18px 16px;
    text-align: center;
    transition: transform 0.2s;
}
.feature-card-item:hover {
    transform: translateY(-3px);
    border-color: var(--anime-purple);
}
.feature-icon-circle {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    color: var(--anime-pink);
}
.feature-item-title {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 4px;
}
.feature-item-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.tos-checkbox-wrapper {
    background: #ffffff;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: border-color 0.2s;
}
.tos-checkbox-wrapper:hover {
    border-color: var(--border-medium);
}
.tos-checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--anime-pink);
    cursor: pointer;
}
.tos-label-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Step 2: User Account Card */
.user-identity-card {
    background: var(--bg-subtle);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}
.user-identity-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #ffffff;
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
}
.user-identity-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.user-identity-meta {
    flex: 1;
}
.user-identity-name {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--text-main);
}
.user-identity-email {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 2px;
}
.user-identity-frynzy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid var(--border-light);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--anime-purple);
    margin-top: 8px;
}

/* Step 3: 12 Popular Languages Selection */
.languages-grid-12 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}
.lang-select-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border-light);
    background: #ffffff;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-main);
    transition: all 0.18s ease;
}
.lang-select-btn:hover {
    border-color: var(--border-medium);
    background: var(--bg-subtle);
}
.lang-select-btn.active {
    border-color: var(--anime-pink);
    background: rgba(255, 0, 127, 0.06);
    color: var(--anime-pink);
}
.lang-flag-emoji {
    font-size: 1.25rem;
}

/* Anime Character Avatar Picker Grid */
/* Avatar Search Bar Filter */
.avatar-search-filter-wrap {
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 12px;
    background: #ffffff;
    border: 1.5px solid var(--border-medium);
    border-radius: var(--radius-md, 12px);
    padding: 0 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.avatar-search-filter-wrap:focus-within {
    border-color: var(--anime-pink, #ff007f);
    box-shadow: 0 0 0 3px rgba(255, 0, 127, 0.12);
}
.avatar-search-icon {
    color: var(--text-muted, #64748b);
    font-size: 0.85rem;
    margin-right: 10px;
    flex-shrink: 0;
}
.avatar-search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-main, #0f172a);
    font-size: 0.88rem;
    font-weight: 600;
    height: 40px;
    outline: none;
}
.avatar-search-input::placeholder {
    color: var(--text-muted, #94a3b8);
    font-weight: 500;
}
.avatar-count-badge {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--anime-purple, #8b5cf6);
    background: rgba(139, 92, 246, 0.08);
    padding: 3px 8px;
    border-radius: 20px;
    white-space: nowrap;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

/* Anime Character Avatar Picker Grid & Scroll Container */
.anime-avatars-grid-wrap {
    max-height: 380px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 10px;
    border-radius: var(--radius-md, 14px);
    border: 1.5px solid var(--border-light);
    background: var(--bg-subtle, #f8fafc);
    margin-bottom: 24px;
    scrollbar-width: thin;
    scrollbar-color: var(--anime-purple, #8b5cf6) rgba(15, 23, 42, 0.06);
}
.anime-avatars-grid-wrap::-webkit-scrollbar {
    width: 6px;
}
.anime-avatars-grid-wrap::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.04);
    border-radius: 8px;
}
.anime-avatars-grid-wrap::-webkit-scrollbar-thumb {
    background: var(--anime-purple, #8b5cf6);
    border-radius: 8px;
}

.anime-avatars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
    gap: 10px;
}
.avatar-choice-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 8px 4px;
    border-radius: var(--radius-md, 12px);
    border: 2px solid transparent;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}
.avatar-choice-card:hover {
    background: #ffffff;
    border-color: var(--border-light);
    transform: translateY(-2px);
}
.avatar-choice-card.active {
    border-color: var(--anime-pink, #ff007f);
    background: rgba(255, 0, 127, 0.06);
    box-shadow: 0 4px 14px rgba(255, 0, 127, 0.15);
}

/* Avatar Circle Frame & Shimmer Loading State */
@keyframes avatarFrameShimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.avatar-thumb-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border-medium);
    position: relative;
    background: #e2e8f0;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.avatar-choice-card.active .avatar-thumb-circle {
    border-color: var(--anime-pink, #ff007f);
    box-shadow: 0 0 0 3px rgba(255, 0, 127, 0.3), 0 4px 14px rgba(255, 0, 127, 0.25);
}

.avatar-thumb-circle.shimmer {
    background: linear-gradient(90deg, #e2e8f0 0%, #f1f5f9 50%, #e2e8f0 100%);
    background-size: 200% 100%;
    animation: avatarFrameShimmer 1.4s ease-in-out infinite;
}

.avatar-thumb-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 1;
    transition: opacity 0.35s ease, transform 0.25s ease;
}

.avatar-thumb-circle img.loaded {
    opacity: 1;
}
.avatar-choice-card:hover .avatar-thumb-circle img {
    transform: scale(1.08);
}

.avatar-char-name {
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--text-main, #0f172a);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    margin-top: 2px;
}
.avatar-char-series {
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--text-muted, #64748b);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    line-height: 1;
}

/* Pseudo & Country Inputs */
.form-group-custom {
    margin-bottom: 20px;
}
.form-label-custom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 6px;
}
.form-input-custom {
    width: 100%;
    height: 46px;
    padding: 0 16px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border-light);
    background: #ffffff;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-main);
    outline: none;
    transition: all 0.2s;
}
.form-input-custom:focus {
    border-color: var(--anime-purple);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
}

.country-display-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-subtle);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 10px 16px;
}
.country-pill-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.92rem;
}

/* Step 4: Friend Suggestions & Search */
.friend-search-bar {
    position: relative;
    margin-bottom: 20px;
}
.friend-search-input {
    width: 100%;
    height: 48px;
    padding: 0 44px 0 44px;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--border-medium);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    outline: none;
    transition: all 0.2s;
}
.friend-search-input:focus {
    border-color: var(--anime-pink);
    box-shadow: 0 0 0 4px rgba(255, 0, 127, 0.12);
}

.friends-list-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 280px;
    overflow-y: auto;
    margin-bottom: 24px;
    padding-right: 4px;
}
.friend-card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    transition: background 0.18s;
}
.friend-card-row:hover {
    background: var(--bg-subtle);
}
.friend-row-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.friend-avatar-thumb {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: #e2e8f0;
}
.friend-avatar-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.friend-meta-name {
    font-weight: 800;
    font-size: 0.92rem;
    color: var(--text-main);
}
.friend-meta-number {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.btn-invite-friend {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--anime-gradient);
    color: #ffffff;
    border: none;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    font-family: inherit;
    font-weight: 800;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(255, 0, 127, 0.25);
}
.btn-invite-friend:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 0, 127, 0.35);
}
.btn-invite-friend.invited {
    background: #e2e8f0;
    color: var(--text-muted);
    box-shadow: none;
    cursor: default;
}
.configured-badge {
    background: rgba(16, 185, 129, 0.1);
    color: var(--anime-green);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Step 5: Discovery Survey */
.survey-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}
.survey-choice-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border-light);
    background: #ffffff;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-main);
    transition: all 0.18s;
}
.survey-choice-btn:hover {
    background: var(--bg-subtle);
    border-color: var(--border-medium);
}
.survey-choice-btn.active {
    border-color: var(--anime-purple);
    background: rgba(139, 92, 246, 0.08);
    color: var(--anime-purple);
}
.survey-choice-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--bg-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--anime-purple);
}

/* Stepper Bottom Actions */
.step-actions-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 32px;
    background: var(--bg-subtle);
    border-top: 1px solid var(--border-light);
}
.btn-step-prev {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1.5px solid var(--border-medium);
    padding: 11px 22px;
    border-radius: var(--radius-pill);
    font-family: inherit;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}
.btn-step-prev:hover {
    background: #ffffff;
    color: var(--text-main);
}
.btn-step-next {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--anime-gradient);
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    font-family: inherit;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(255, 0, 127, 0.3);
    transition: all 0.2s;
}
.btn-step-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(255, 0, 127, 0.4);
}
.btn-step-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ==========================================================================
   MODALS (DETAILS, CHAT, INVITATIONS, SETTINGS)
   ========================================================================== */

.anizy-modal-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-overlay);
    backdrop-filter: blur(8px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}
.anizy-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}
.anizy-modal-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-pop);
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.96) translateY(10px);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.anizy-modal-overlay.open .anizy-modal-card {
    transform: scale(1) translateY(0);
}

.modal-header-bar {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.modal-title-wrap {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}
.modal-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--bg-subtle);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.modal-close-btn:hover {
    background: #e2e8f0;
    color: var(--text-main);
}

/* Modal Navigation Tabs */
.modal-tabs-nav {
    display: flex;
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border-light);
    padding: 0 16px;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.modal-tab-btn {
    padding: 12px 14px;
    background: transparent;
    border: none;
    border-bottom: 2.5px solid transparent;
    font-family: inherit;
    font-weight: 800;
    font-size: 0.86rem;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: all 0.2s;
}
.modal-tab-btn:hover {
    color: var(--text-main);
}
.modal-tab-btn.active {
    color: var(--anime-purple);
    border-bottom-color: var(--anime-purple);
    background: rgba(255, 255, 255, 0.6);
}
.modal-tab-badge {
    background: var(--anime-gradient);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 1px 7px;
    border-radius: var(--radius-pill);
}

/* Personal Referral / Invite Share Box */
.invite-link-card {
    background: var(--bg-subtle);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 20px;
}
.invite-link-label {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--anime-purple);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.invite-link-input-group {
    display: flex;
    gap: 8px;
    align-items: center;
}
.invite-link-display {
    flex: 1;
    background: #ffffff;
    border: 1.5px solid var(--border-medium);
    border-radius: var(--radius-md);
    padding: 9px 12px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.btn-copy-invite {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--anime-gradient);
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: 0.82rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    flex-shrink: 0;
}
.btn-copy-invite:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(255, 0, 127, 0.3);
}

/* Social Quick Share Buttons */
.invite-social-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}
.btn-social-share {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: transform 0.18s, box-shadow 0.18s;
}
.btn-social-share:hover {
    transform: translateY(-1px);
}
.btn-social-share.whatsapp { background: #25D366; }
.btn-social-share.telegram { background: #0088cc; }
.btn-social-share.facebook { background: #1877f2; }
.btn-social-share.twitter { background: #0f172a; }
.btn-social-share.native { background: var(--anime-gradient); }

/* Friend / Invitation items */
.invitation-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--anime-gradient);
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.18s;
}
.invitation-action-btn:hover {
    transform: scale(1.04);
}
.invitation-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.74rem;
    font-weight: 800;
}
.invitation-status-badge.pending {
    background: #fef3c7;
    color: #d97706;
}
.invitation-status-badge.accepted {
    background: #dcfce7;
    color: #16a34a;
}

/* ═════════════════════════════════════════════════════════════ */
/* 🎌 ANIZY OTAKU CHAT LOUNGE (LUXURY ANIME COMMUNITY STYLING)   */
/* ═════════════════════════════════════════════════════════════ */
#chatDrawer {
    width: 440px !important;
    max-width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    background: #ffffff !important;
    border-left: 1px solid var(--border-light);
    box-shadow: -10px 0 35px rgba(15, 23, 42, 0.16);
    z-index: 2200;
}

/* Chat Header */
.chat-lounge-header {
    padding: 16px 20px;
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.chat-lounge-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
}
.chat-lounge-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--anime-gradient-soft);
    border: 1px solid rgba(255, 0, 127, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--anime-pink);
    box-shadow: 0 4px 10px rgba(255, 0, 127, 0.15);
}
.chat-lounge-name {
    font-family: var(--font-heading);
    font-size: 1.08rem;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1.2;
}
.chat-lounge-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 700;
}
.chat-online-pulse {
    width: 7px;
    height: 7px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: chatPulseGreen 2s infinite;
}
@keyframes chatPulseGreen {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.chat-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.chat-sound-toggle-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    background: var(--bg-subtle);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}
.chat-sound-toggle-btn:hover {
    background: #ffffff;
    color: var(--anime-pink);
    border-color: var(--anime-pink);
}

/* Channels Navigation Bar (Scrollable horizontally) */
.chat-channels-bar {
    display: flex;
    gap: 6px;
    padding: 10px 16px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border-light);
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-shrink: 0;
}
.chat-channels-bar::-webkit-scrollbar {
    display: none;
}
.chat-channel-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 800;
    border: 1px solid var(--border-light);
    background: #ffffff;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}
.chat-channel-btn:hover {
    border-color: var(--anime-pink);
    color: var(--anime-pink);
    transform: translateY(-1px);
}
.chat-channel-btn.active {
    background: var(--anime-gradient);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 3px 10px rgba(255, 0, 127, 0.28);
}
.chat-channel-btn.active i {
    color: #ffffff !important;
}
.chat-channel-tag-badge {
    font-size: 0.68rem;
    padding: 1px 6px;
    border-radius: var(--radius-pill);
    background: rgba(0, 0, 0, 0.08);
}
.chat-channel-btn.active .chat-channel-tag-badge {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* Channel Description Banner */
.chat-channel-banner {
    padding: 7px 18px;
    font-size: 0.74rem;
    color: #64748b;
    background: rgba(241, 245, 249, 0.7);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.chat-channel-banner-desc {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Chat Messages Container */
.chat-drawer-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: linear-gradient(180deg, #fafbfd 0%, #ffffff 100%);
    scroll-behavior: smooth;
}
.chat-drawer-messages::-webkit-scrollbar {
    width: 6px;
}
.chat-drawer-messages::-webkit-scrollbar-track {
    background: transparent;
}
.chat-drawer-messages::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

/* Empty State / Loading State */
.chat-empty-state {
    text-align: center;
    color: #94a3b8;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.chat-empty-icon {
    font-size: 2.2rem;
    color: var(--anime-pink);
    opacity: 0.7;
}

/* Chat Bubble Row */
.chat-bubble-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    position: relative;
    animation: chatMsgFadeIn 0.22s ease-out;
}
@keyframes chatMsgFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
.chat-bubble-row.is-me {
    flex-direction: row-reverse;
}

.chat-bubble-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    border: 1.5px solid #ffffff;
}
.chat-bubble-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-bubble-body {
    max-width: 82%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 10px 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    position: relative;
}
.chat-bubble-row.is-me .chat-bubble-body {
    background: linear-gradient(135deg, rgba(255, 0, 127, 0.04), rgba(121, 40, 202, 0.07));
    border-color: rgba(255, 0, 127, 0.22);
    box-shadow: 0 2px 10px rgba(255, 0, 127, 0.05);
}

/* Header inside bubble */
.chat-msg-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}
.chat-bubble-pseudo {
    font-weight: 800;
    font-size: 0.8rem;
    color: var(--text-main);
}
.chat-bubble-row.is-me .chat-bubble-pseudo {
    color: var(--anime-pink);
}

/* Otaku Rank Badge */
.otaku-rank-badge {
    font-size: 0.66rem;
    font-weight: 800;
    padding: 1px 7px;
    border-radius: var(--radius-pill);
    background: var(--bg-subtle);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.otaku-rank-badge.s-rank {
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
    color: #b45309;
    border-color: #fde68a;
}
.otaku-rank-badge.shadow-king {
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    color: #e0e7ff;
    border-color: #4338ca;
}

.chat-msg-time {
    font-size: 0.68rem;
    color: #94a3b8;
    margin-left: auto;
}

/* Tagged Anime Chip */
.chat-anime-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 0, 127, 0.08);
    border: 1px solid rgba(255, 0, 127, 0.25);
    color: #d6006a;
    border-radius: var(--radius-pill);
    padding: 2px 9px;
    font-size: 0.72rem;
    font-weight: 800;
    margin-bottom: 6px;
    cursor: pointer;
    transition: transform 0.15s;
}
.chat-anime-chip:hover {
    transform: scale(1.03);
}

/* Reply Reference Bubble inside message */
.chat-reply-quote {
    background: rgba(241, 245, 249, 0.85);
    border-left: 3px solid var(--anime-purple);
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 0.72rem;
    color: #475569;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Text Content & Spoiler Masking */
.chat-bubble-text {
    font-size: 0.88rem;
    color: var(--text-main);
    line-height: 1.48;
    word-break: break-word;
}
.chat-spoiler-text {
    background: #0f172a;
    color: transparent;
    border-radius: 4px;
    padding: 1px 6px;
    user-select: none;
    cursor: pointer;
    filter: blur(4px);
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: inline-block;
}
.chat-spoiler-text:hover {
    filter: blur(2px);
}
.chat-spoiler-text.revealed {
    background: #f1f5f9;
    color: #0f172a;
    filter: none;
    user-select: auto;
    border: 1px dashed #cbd5e1;
}

/* Message Reactions Row */
.chat-msg-reactions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 6px;
}
.chat-reaction-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: var(--radius-pill);
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    font-size: 0.74rem;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
}
.chat-reaction-pill:hover {
    transform: scale(1.06);
    background: #e2e8f0;
}
.chat-reaction-pill.reacted {
    background: rgba(255, 0, 127, 0.1);
    border-color: rgba(255, 0, 127, 0.35);
    color: var(--anime-pink);
    font-weight: 800;
}
.chat-reaction-add-btn {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px dashed #cbd5e1;
    background: transparent;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    cursor: pointer;
    transition: all 0.15s;
}
.chat-reaction-add-btn:hover {
    border-color: var(--anime-pink);
    color: var(--anime-pink);
    background: rgba(255, 0, 127, 0.05);
}

/* Hover/Touch actions */
.chat-msg-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.chat-bubble-row:hover .chat-msg-actions {
    opacity: 1;
}
.btn-chat-action-tiny {
    background: none;
    border: none;
    font-size: 0.7rem;
    color: #94a3b8;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
}
.btn-chat-action-tiny:hover {
    color: var(--anime-purple);
}

/* Quick Reaction Floating Tray */
.chat-quick-reactions-popover {
    position: absolute;
    bottom: calc(100% + 4px);
    background: #ffffff;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
    border-radius: var(--radius-pill);
    padding: 4px 8px;
    display: flex;
    gap: 6px;
    z-index: 30;
    animation: chatMsgFadeIn 0.15s;
}
.chat-quick-reaction-item {
    font-size: 1.1rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.15s;
}
.chat-quick-reaction-item:hover {
    transform: scale(1.3);
}

/* Active Reply & Active Anime Tag Bar (Above input) */
.chat-active-reply-bar {
    background: #f8fafc;
    border-top: 1px solid var(--border-light);
    padding: 6px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.76rem;
    color: #475569;
    flex-shrink: 0;
}
.chat-active-anime-bar {
    background: rgba(255, 0, 127, 0.06);
    border-top: 1px solid rgba(255, 0, 127, 0.18);
    padding: 5px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.76rem;
    color: #be123c;
    font-weight: 700;
    flex-shrink: 0;
}
.chat-bar-cancel-btn {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.85rem;
}
.chat-bar-cancel-btn:hover {
    color: #0f172a;
}

/* Typing indicator */
.chat-typing-row {
    padding: 3px 18px;
    font-size: 0.72rem;
    color: #94a3b8;
    font-style: italic;
    min-height: 22px;
    flex-shrink: 0;
}

/* Quick Tools Bar (Stickers, Kaomoji, Anime Tag, Spoiler) */
.chat-quick-tools {
    padding: 6px 14px;
    border-top: 1px solid var(--border-light);
    background: #fafbfd;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    flex-shrink: 0;
}
.chat-quick-tools::-webkit-scrollbar {
    display: none;
}
.chat-tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.74rem;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: all 0.18s;
}
.chat-tool-btn:hover {
    border-color: var(--anime-pink);
    color: var(--anime-pink);
    background: rgba(255, 0, 127, 0.04);
}

/* Stickers & Kaomoji Tray */
.chat-stickers-tray {
    max-height: 180px;
    overflow-y: auto;
    padding: 10px 14px;
    background: #ffffff;
    border-top: 1px solid var(--border-light);
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 6px;
    flex-shrink: 0;
}
.chat-sticker-chip {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px 8px;
    font-size: 0.76rem;
    font-weight: 700;
    color: #334155;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
}
.chat-sticker-chip:hover {
    background: var(--anime-gradient-soft);
    border-color: rgba(255, 0, 127, 0.3);
    color: var(--anime-pink);
    transform: translateY(-1px);
}

/* Chat Input Bar */
.chat-input-bar {
    padding: 12px 16px;
    background: #ffffff;
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.chat-input-field {
    flex: 1;
    height: 42px;
    padding: 0 16px;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--border-light);
    font-family: inherit;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #ffffff;
}
.chat-input-field:focus {
    border-color: var(--anime-pink);
    box-shadow: 0 0 0 3px rgba(255, 0, 127, 0.12);
}
.chat-send-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: var(--anime-gradient);
    color: #ffffff;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 0, 127, 0.3);
    transition: transform 0.18s, box-shadow 0.18s;
    flex-shrink: 0;
}
.chat-send-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(255, 0, 127, 0.45);
}
.chat-send-btn:active {
    transform: scale(0.96);
}

/* Mobile full width drawer tweak */
@media (max-width: 640px) {
    #chatDrawer {
        width: 100vw !important;
        max-width: 100vw !important;
    }
    .chat-bubble-body {
        max-width: 90%;
    }
    .chat-input-bar {
        padding: 10px 12px;
    }
}

/* ── Hero Info / Synopsis Trigger Button ── */
.btn-hero-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.18);
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 800;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s;
}
.btn-hero-info:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.32);
    border-color: #ffffff;
}

/* ── Hero Details Modal (Synopsis, Note, Image) ── */
.modal-hero-details-card {
    max-width: 580px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    padding: 0;
    background: #ffffff;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
}
.hero-modal-header-banner {
    display: flex;
    gap: 18px;
    padding: 24px 20px 20px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    position: relative;
}
.hero-modal-poster-wrap {
    width: 105px;
    min-width: 105px;
    aspect-ratio: 2 / 3;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.2);
}
.hero-modal-poster-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-modal-header-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hero-modal-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.hero-modal-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 900;
    margin: 4px 0 6px;
    color: #ffffff;
    line-height: 1.25;
}
.hero-modal-submeta {
    font-size: 0.82rem;
    color: #94a3b8;
    font-weight: 600;
}
.hero-modal-body {
    padding: 22px 20px 24px;
}
.hero-modal-synopsis-label {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--anime-purple);
    letter-spacing: 0.06em;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
}
.hero-modal-synopsis {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 0 0 22px;
    max-height: 220px;
    overflow-y: auto;
}
.btn-modal-watch-now {
    width: 100%;
    padding: 13px 20px;
    border-radius: var(--radius-pill);
    background: var(--anime-gradient);
    border: none;
    color: #ffffff;
    font-weight: 900;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(255, 0, 127, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.btn-modal-watch-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(255, 0, 127, 0.6);
}

/* ==========================================================================
   ANIZY VIDEO PLAYER SUBTITLES & QUALITY CONTROLS
   ========================================================================== */
video::cue {
    background-color: rgba(15, 23, 42, 0.88);
    color: #ffffff;
    font-family: 'Outfit', 'Inter', -apple-system, sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.95), 0 0 10px rgba(0, 0, 0, 0.9);
    border-radius: 6px;
    padding: 3px 10px;
    letter-spacing: 0.02em;
}

/* Subtitle & Quality interactive modal buttons */
.sub-select-btn,
.quality-select-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 13px 16px;
    border-radius: var(--radius-md, 14px);
    border: 1.5px solid var(--border-light, #e2e8f0);
    background: #ffffff;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-body, 'Inter', sans-serif);
}

.sub-select-btn:hover,
.quality-select-btn:hover {
    border-color: var(--anime-purple, #8b5cf6);
    background: rgba(139, 92, 246, 0.04);
    transform: translateY(-1px);
}

.sub-select-btn.active,
.quality-select-btn.active {
    border-color: var(--anime-pink, #ff007f);
    background: rgba(255, 0, 127, 0.05);
    box-shadow: 0 4px 14px rgba(255, 0, 127, 0.12);
}

.sub-select-btn .sub-title,
.quality-select-btn .quality-title {
    font-weight: 800;
    font-size: 0.92rem;
    color: var(--text-main, #0f172a);
    margin-bottom: 2px;
}

.sub-select-btn .sub-meta,
.quality-select-btn .quality-meta {
    font-size: 0.74rem;
    color: var(--text-muted, #64748b);
    display: flex;
    align-items: center;
    gap: 6px;
}

.badge-format-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}
.badge-format-pill.m3u8 {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
}
.badge-format-pill.vtt {
    background: rgba(14, 165, 233, 0.12);
    color: #0284c7;
}
.badge-format-pill.priority {
    background: linear-gradient(135deg, rgba(255,0,127,0.15), rgba(139,92,246,0.15));
    color: var(--anime-pink, #ff007f);
    border: 1px solid rgba(255,0,127,0.25);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE ≤ 768px & ≤ 480px)
   ========================================================================== */

@media (max-width: 768px) {
    /* Prevent mobile unwanted auto-zoom */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        -webkit-text-size-adjust: 100% !important;
        touch-action: manipulation;
    }
    input, select, textarea {
        font-size: 16px !important;
    }

    /* ── Mobile Header: Compact with icons & visible search ── */
    .anizy-header {
        padding: 6px 0 8px !important;
        height: auto !important;
        min-height: auto !important;
    }
    .anizy-header-inner {
        padding: 0 10px !important;
        gap: 6px 8px !important;
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    .brand-section {
        gap: 6px !important;
        flex-shrink: 0 !important;
        order: 1 !important;
        display: flex !important;
        align-items: center !important;
    }
    .btn-menu-trigger {
        width: 36px !important;
        height: 36px !important;
        font-size: 0.95rem !important;
        border-radius: 10px !important;
    }
    .anizy-logo-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.95rem !important;
        border-radius: 10px !important;
    }
    .anizy-logo-title {
        font-size: 1.18rem !important;
        letter-spacing: -0.3px !important;
    }
    .anizy-logo-badge {
        display: none !important;
    }
    .nav-text-label {
        display: none !important;
    }
    .btn-category-trigger {
        order: 2 !important;
        width: 36px !important;
        height: 36px !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
        flex-shrink: 0 !important;
    }
    .btn-category-trigger i.fa-shapes {
        font-size: 0.95rem !important;
    }
    .header-actions {
        order: 3 !important;
        flex-shrink: 0 !important;
        gap: 6px !important;
        display: flex !important;
        align-items: center !important;
    }
    .action-round-btn {
        width: 36px !important;
        height: 36px !important;
        font-size: 0.95rem !important;
    }
    .btn-profile-pill {
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
    }
    .profile-avatar-wrap {
        width: 34px !important;
        height: 34px !important;
        border: 2px solid var(--border-medium) !important;
    }

    /* Mobile Search: Full 100% width on second header row */
    .anizy-search-wrap {
        display: block !important;
        order: 10 !important;
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 4px !important;
        margin-bottom: 2px !important;
        position: relative !important;
    }
    .search-input-container {
        width: 100% !important;
        position: relative !important;
    }
    .search-input-container input,
    .search-input-container .anizy-search-input {
        width: 100% !important;
        height: 40px !important;
        font-size: 15px !important;
        border-radius: var(--radius-pill) !important;
        padding-left: 38px !important;
        padding-right: 36px !important;
        background: #f8fafc !important;
        border: 1.5px solid var(--border-medium) !important;
    }
    .search-icon-left {
        left: 12px !important;
        font-size: 0.9rem !important;
    }
    .search-clear-btn {
        right: 10px !important;
        font-size: 0.95rem !important;
    }
    .search-suggestions-dropdown {
        position: absolute !important;
        top: calc(100% + 6px) !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-height: 55vh !important;
        background: #ffffff !important;
        border: 1.5px solid var(--border-medium) !important;
        border-radius: var(--radius-lg) !important;
        box-shadow: 0 14px 40px rgba(15, 23, 42, 0.2) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        z-index: 9999 !important;
        padding: 6px !important;
    }
    .search-suggestions-dropdown .suggestion-item {
        padding: 8px 10px !important;
        gap: 10px !important;
        border-radius: 10px !important;
        border-bottom: 1px solid var(--border-light) !important;
    }
    .search-suggestions-dropdown .suggestion-item:last-child {
        border-bottom: none !important;
    }
    .search-suggestions-dropdown .suggestion-thumb {
        width: 40px !important;
        height: 56px !important;
        border-radius: 6px !important;
        flex-shrink: 0 !important;
    }
    .search-suggestions-dropdown .suggestion-title {
        font-size: 0.9rem !important;
        font-weight: 800 !important;
        color: var(--text-main) !important;
    }
    .search-suggestions-dropdown .suggestion-meta {
        font-size: 0.76rem !important;
        color: var(--text-muted) !important;
        margin-top: 3px !important;
    }

    /* ── Mobile Hero Card: Clean, shows only title, artwork 100% visible ── */
    .hero-wrapper {
        margin: 10px auto 20px;
        padding: 0 10px;
    }
    .hero-card {
        min-height: 250px;
        max-height: 360px;
        border-radius: var(--radius-lg);
    }
    .hero-body {
        padding: 16px 14px 18px;
    }
    .hero-meta-strip {
        margin-bottom: 6px;
        gap: 6px;
    }
    .hero-title-text {
        font-size: 1.35rem;
        line-height: 1.25;
        margin-bottom: 10px;
    }
    .hero-action-buttons {
        gap: 8px;
        flex-wrap: wrap;
    }
    .btn-hero-watch, .btn-hero-info, .btn-hero-alt {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    /* ── Mobile Modals: Clean Responsive Modal Cards ── */
    .anizy-modal-card {
        max-width: 95vw !important;
        max-height: 88vh !important;
        margin: 10px auto !important;
    }
    .modal-hero-details-card {
        max-width: 95vw !important;
        border-radius: var(--radius-lg) !important;
    }
    .hero-modal-header-banner {
        padding: 16px 14px !important;
        gap: 12px !important;
    }
    .hero-modal-poster-wrap {
        width: 74px !important;
        min-width: 74px !important;
    }
    .hero-modal-title {
        font-size: 1.15rem !important;
    }
    .hero-modal-body {
        padding: 16px 14px 20px !important;
    }
    .hero-modal-synopsis {
        font-size: 0.88rem !important;
        max-height: 200px !important;
        margin-bottom: 16px !important;
    }

    .content-body {
        padding: 0 10px 60px;
    }

    /* ── Mobile Verification / Configuration Page Styles ── */
    .verify-page-wrapper {
        padding: 8px 6px !important;
        min-height: 100vh !important;
        justify-content: flex-start !important;
    }
    .verify-card-container {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 16px !important;
        box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08) !important;
    }
    .verify-header-strip {
        padding: 12px 14px !important;
    }
    .verify-brand .anizy-logo-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.95rem !important;
    }
    .verify-brand div > div:first-child {
        font-size: 1.15rem !important;
    }

    /* 5-Step Stepper Progress Bar */
    .stepper-progress-bar {
        padding: 10px 8px !important;
    }
    .step-node span {
        display: none !important;
    }
    .step-number-circle {
        width: 24px !important;
        height: 24px !important;
        font-size: 0.72rem !important;
    }
    .step-connector {
        margin: 0 4px !important;
        height: 2px !important;
    }

    /* Step Heading & Typography */
    .step-content-pane {
        padding: 18px 12px !important;
    }
    .step-heading-box {
        margin-bottom: 16px !important;
    }
    .step-badge-tag {
        font-size: 0.72rem !important;
        padding: 3px 10px !important;
        margin-bottom: 6px !important;
    }
    .step-main-title {
        font-size: 1.25rem !important;
        line-height: 1.3 !important;
    }
    .step-description-text {
        font-size: 0.82rem !important;
        line-height: 1.45 !important;
        margin-top: 4px !important;
    }

    /* Step 1: Welcome */
    .features-grid-welcome {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        margin-bottom: 16px !important;
    }
    .feature-card-item {
        padding: 12px 12px !important;
        display: flex !important;
        align-items: center !important;
        text-align: left !important;
        gap: 12px !important;
    }
    .feature-icon-circle {
        width: 38px !important;
        height: 38px !important;
        font-size: 1rem !important;
        margin-bottom: 0 !important;
        flex-shrink: 0 !important;
    }
    .feature-item-title {
        font-size: 0.88rem !important;
        margin-bottom: 2px !important;
    }
    .feature-item-desc {
        font-size: 0.76rem !important;
        line-height: 1.35 !important;
    }
    .tos-checkbox-wrapper {
        padding: 10px 12px !important;
        gap: 10px !important;
    }
    .tos-label-text {
        font-size: 0.78rem !important;
        line-height: 1.4 !important;
    }

    /* Step 2: Account confirmation */
    .user-identity-card {
        padding: 14px 12px !important;
        gap: 12px !important;
        margin-bottom: 16px !important;
    }
    .user-identity-avatar {
        width: 52px !important;
        height: 52px !important;
    }
    .user-identity-name {
        font-size: 1.05rem !important;
    }
    .user-identity-email {
        font-size: 0.78rem !important;
    }
    .user-identity-frynzy {
        font-size: 0.72rem !important;
        padding: 2px 8px !important;
        margin-top: 4px !important;
    }

    /* Step 3: Preferences (Languages & 100 Avatars) */
    .languages-grid-12 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        margin-bottom: 16px !important;
    }
    .lang-select-btn {
        padding: 8px 10px !important;
        font-size: 0.82rem !important;
        gap: 6px !important;
        border-radius: 10px !important;
    }
    .lang-flag-emoji {
        font-size: 1.1rem !important;
    }
    .form-group-custom {
        margin-bottom: 16px !important;
    }
    .form-label-custom {
        font-size: 0.8rem !important;
        margin-bottom: 5px !important;
        flex-wrap: wrap !important;
        gap: 4px !important;
    }
    .form-input-custom {
        height: 42px !important;
        font-size: 0.88rem !important;
        padding: 0 12px !important;
    }
    .avatar-search-filter-wrap {
        padding: 0 10px !important;
        margin-bottom: 8px !important;
    }
    .avatar-search-input {
        height: 38px !important;
        font-size: 0.82rem !important;
    }
    .avatar-count-badge {
        font-size: 0.68rem !important;
        padding: 2px 6px !important;
    }
    .anime-avatars-grid-wrap {
        max-height: 280px !important;
        padding: 8px 4px !important;
        margin-bottom: 16px !important;
    }
    .anime-avatars-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 6px 2px !important;
    }
    .avatar-choice-card {
        padding: 5px 2px !important;
        border-radius: 8px !important;
    }
    .avatar-thumb-circle {
        width: 48px !important;
        height: 48px !important;
    }
    .avatar-char-name {
        font-size: 0.66rem !important;
        max-width: 66px !important;
    }
    .avatar-char-series {
        font-size: 0.56rem !important;
        max-width: 66px !important;
    }
    .country-display-pill {
        padding: 8px 12px !important;
    }
    .country-pill-left {
        gap: 8px !important;
        font-size: 0.85rem !important;
    }

    /* Step 4: Friends */
    .friend-search-input {
        height: 42px !important;
        font-size: 0.85rem !important;
        padding: 0 36px 0 38px !important;
    }
    .friends-list-container {
        max-height: 240px !important;
        margin-bottom: 16px !important;
    }
    .friend-card-row {
        padding: 8px 10px !important;
    }
    .friend-avatar-thumb {
        width: 36px !important;
        height: 36px !important;
    }
    .friend-meta-name {
        font-size: 0.85rem !important;
    }
    .friend-meta-number {
        font-size: 0.72rem !important;
    }
    .btn-invite-friend {
        padding: 6px 12px !important;
        font-size: 0.76rem !important;
    }

    /* Step 5: Survey */
    .survey-options-grid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        margin-bottom: 20px !important;
    }
    .survey-choice-btn {
        padding: 10px 12px !important;
        font-size: 0.84rem !important;
        gap: 10px !important;
    }
    .survey-choice-icon {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.95rem !important;
    }

    /* Stepper Footer Buttons: Calibrated for Mobile */
    .step-actions-footer {
        padding: 12px 14px !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    .step-actions-footer > div {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        align-items: center !important;
    }
    .btn-step-prev {
        padding: 9px 16px !important;
        font-size: 0.84rem !important;
        border-radius: var(--radius-pill) !important;
        white-space: nowrap !important;
    }
    .btn-step-next {
        padding: 10px 18px !important;
        font-size: 0.86rem !important;
        border-radius: var(--radius-pill) !important;
        white-space: nowrap !important;
    }
    #btnContinueText {
        max-width: 170px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: inline-block;
        vertical-align: bottom;
    }
}

/* ==========================================================================
   ANIZY WATCH PAGE STYLES (/anizy/watch/:id)
   Ultra-Immersive Luxury White Anime Streaming Experience
   ========================================================================== */

/* ── Outer wrapper: full width with no artificial max-width cap ─────────── */
.watch-page-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 16px 20px 80px;
}

/* ── Inner container: centred content for lower sections ────────────────── */
.watch-inner-container {
    max-width: 1600px;
    margin: 0 auto;
}

/* 1. CINEMATIC HERO BANNER — full viewport-width on large screens */
.watch-hero-banner {
    position: relative;
    width: 100%;
    /* Height: 56.25% of viewport width = 16:9 ratio, capped */
    min-height: min(56.25vw, 80vh);
    max-height: 88vh;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: #0f172a;
    box-shadow: var(--shadow-pop);
    display: flex;
    align-items: flex-end;
    margin-bottom: 28px;
}
.watch-hero-screen-stage {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}
.watch-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 20%;
    filter: brightness(0.85);
    transition: transform 0.5s ease;
}
.watch-hero-banner:hover .watch-hero-bg {
    transform: scale(1.02);
}

/* ─── HERO BANNER SHIMMER LOADING STATE ─── */
@keyframes heroShimmerSweep {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
@keyframes heroShimmerPulse {
    0%, 100% { opacity: 0.9; }
    50%       { opacity: 0.65; }
}

/* Layer that sits on top of watchHeroBg when image is loading */
.hero-shimmer-layer {
    position: absolute;
    inset: 0;
    z-index: 5;
    background: linear-gradient(
        120deg,
        #0f172a 0%,
        #1e293b 20%,
        #0f172a 40%
    );
    background-size: 200% 100%;
    animation: heroShimmerPulse 1.8s ease-in-out infinite;
    pointer-events: none;
    transition: opacity 0.5s ease;
}
.hero-shimmer-layer::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.06) 40%,
        rgba(255,255,255,0.10) 50%,
        rgba(255,255,255,0.06) 60%,
        rgba(255,255,255,0) 100%
    );
    animation: heroShimmerSweep 1.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* When banner is fully loaded (JS removes hero-loading class), shimmer hides completely */
.watch-hero-banner:not(.hero-loading) .hero-shimmer-layer,
.hero-shimmer-layer.hidden {
    opacity: 0 !important;
    pointer-events: none !important;
    display: none !important;
    animation: none !important;
}
.watch-hero-banner:not(.hero-loading) .hero-shimmer-layer::after,
.hero-shimmer-layer.hidden::after {
    animation: none !important;
    display: none !important;
}


.watch-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(15, 23, 42, 0.98) 0%,
        rgba(15, 23, 42, 0.70) 45%,
        rgba(15, 23, 42, 0.15) 100%
    );
}
.watch-hero-content {
    position: relative;
    z-index: 10;
    padding: 30px 42px 36px;
    width: 100%;
    color: #ffffff;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.watch-hero-content button,
.watch-hero-content a,
.watch-hero-content input,
.watch-hero-content .badge-audio-current,
.watch-hero-content .btn-hero-watch-primary,
.watch-hero-content .btn-toggle-synopsis {
    pointer-events: auto;
}

/* CENTRAL GLOWING PLAY BUTTON — pure icon, no text label under it */
.hero-center-play-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 25;
    pointer-events: auto;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}
.btn-hero-central-play {
    position: relative;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: var(--anime-gradient);
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 35px rgba(255, 0, 127, 0.6);
    color: #ffffff;
    font-size: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}
.btn-hero-central-play i {
    margin-left: 6px;
}
.btn-hero-central-play:hover {
    transform: scale(1.16);
    box-shadow: 0 18px 45px rgba(255, 0, 127, 0.85);
}
.play-glow-ring {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 0, 127, 0.7);
    animation: animePulseRing 2.2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}
@keyframes animePulseRing {
    0% { transform: scale(0.9); opacity: 0.9; }
    60% { transform: scale(1.35); opacity: 0.2; }
    100% { transform: scale(1.55); opacity: 0; }
}

/* Audio track badge in hero synopsis area */
.badge-audio-current {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    background: rgba(255, 0, 127, 0.22);
    border: 1.5px solid rgba(255, 0, 127, 0.55);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
}
.badge-audio-current:hover {
    background: rgba(255, 0, 127, 0.40);
    border-color: rgba(255, 0, 127, 0.85);
    transform: scale(1.04);
}

/* CTA Watch Button inside hero content */
.watch-hero-actions-cta {
    margin: 14px 0 12px;
}
.btn-hero-watch-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 28px;
    border-radius: var(--radius-pill);
    background: var(--anime-gradient);
    border: none;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(255, 0, 127, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-hero-watch-primary i {
    font-size: 0.85rem;
}
.btn-hero-watch-primary:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 10px 30px rgba(255, 0, 127, 0.65);
}

/* EMBEDDED VIDEO PLAYER LAYER INSIDE HERO */
.hero-player-screen-wrap {
    position: absolute;
    inset: 0;
    z-index: 30;
    background: #000000;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.anizy-video-player {
    /* Fill entire hero container */
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    outline: none;
    background: #000;
    display: block;
}
.player-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Floating top bar in player — auto-hide with CSS transition */
.player-top-floating-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 40;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(0,0,0,0.72) 0%, transparent 100%);
    /* Auto-hide: visible by default, hidden when .controls-hidden is on parent */
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.hero-player-screen-wrap.controls-hidden .player-top-floating-bar {
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
}
.player-floating-title {
    pointer-events: auto;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.92rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 65%;
}
.btn-close-player {
    pointer-events: auto;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.2s;
}
.btn-close-player:hover {
    background: #ff007f;
    border-color: #ff007f;
    transform: scale(1.1);
}

/* 2. WATCH CONTROLS BAR (BELOW HERO) */
.watch-controls-bar {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 16px 22px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.player-control-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.player-strip-left,
.player-strip-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.watch-action-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

/* Episode thumbnail cards */
.episodes-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}
.episode-card-item {
    display: flex;
    gap: 14px;
    padding: 12px;
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--border-light);
    background: var(--bg-card);
    cursor: pointer;
    transition: all 0.2s ease;
    align-items: flex-start;
}
.episode-card-item:hover {
    border-color: var(--anime-pink);
    box-shadow: 0 4px 18px rgba(255,0,127,0.1);
    transform: translateY(-2px);
}
.episode-card-item.active {
    border-color: var(--anime-pink);
    background: rgba(255, 0, 127, 0.05);
    box-shadow: 0 4px 18px rgba(255,0,127,0.15);
}
.episode-thumb-wrap {
    position: relative;
    flex-shrink: 0;
    width: 140px;
    height: 79px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #0f172a;
}
.episode-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.episode-num-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(15,23,42,0.85);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
}
.episode-duration-badge {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(15,23,42,0.85);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}
.episode-info-pane {
    flex: 1;
    overflow: hidden;
}
.episode-title-line {
    font-weight: 800;
    font-size: 0.92rem;
    color: var(--text-main);
    margin-bottom: 4px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.episode-desc-snip {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Cast grid */
.cast-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 14px;
}
.cast-actor-card {
    text-align: center;
}
.cast-photo-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 6px;
    background: var(--bg-subtle);
    border: 2px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}
.cast-photo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cast-actor-name {
    font-weight: 800;
    font-size: 0.82rem;
    color: var(--text-main);
    line-height: 1.2;
}
.cast-character-name {
    font-size: 0.72rem;
    color: var(--anime-purple);
    font-weight: 700;
    margin-top: 2px;
}

@media (max-width: 768px) {
    .watch-page-container {
        padding: 8px 10px 60px;
    }
    .watch-hero-banner {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        min-height: auto;
        max-height: none;
        background: transparent;
        box-shadow: none;
        margin-bottom: 16px;
        overflow: visible;
        border-radius: 0;
    }

    /* ─── PURE 16:9 WIDESCREEN MEDIA STAGE (Artwork is 100% visible & uncovered) ─── */
    .watch-hero-screen-stage {
        position: relative;
        width: 100%;
        aspect-ratio: 16 / 9;
        height: auto;
        min-height: 200px;
        border-radius: var(--radius-lg);
        overflow: hidden;
        background: #0f172a;
        box-shadow: var(--shadow-pop);
        z-index: 2;
    }

    .watch-hero-bg {
        position: absolute;
        inset: 0;
        background-size: cover;
        background-position: center center;
        filter: brightness(0.95);
    }

    /* Subtle gradient so artwork colors remain bright and clear */
    .watch-hero-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(
            to top,
            rgba(15, 23, 42, 0.40) 0%,
            transparent 60%
        );
    }

    /* Central play button floats unobstructed on the artwork */
    .hero-center-play-wrap {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 10;
    }
    .btn-hero-central-play {
        width: 64px;
        height: 64px;
        font-size: 1.6rem;
    }

    /* ─── YOUTUBE 16:9 VIDEO PLAYER FORMAT ON MOBILE ─── */
    .watch-hero-banner.is-playing .watch-hero-screen-stage {
        display: none !important;
    }
    .watch-hero-banner.is-playing .hero-center-play-wrap {
        display: none !important;
    }
    .watch-hero-banner .hero-player-screen-wrap {
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        aspect-ratio: 16 / 9 !important;
        height: auto !important;
        max-height: 56.25vw !important;
        min-height: 200px !important;
        border-radius: var(--radius-lg) !important;
        overflow: hidden !important;
        background: #000000 !important;
        box-shadow: var(--shadow-pop) !important;
        z-index: 30 !important;
    }
    .hero-player-screen-wrap .anizy-video-player,
    .hero-player-screen-wrap .player-iframe {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        background: #000000 !important;
    }

    /* ─── METADATA & DESCRIPTION DISPLAYED CLEANLY BELOW THE IMAGE ─── */
    .watch-hero-content {
        position: relative;
        z-index: 5;
        padding: 16px 14px 18px;
        margin-top: 10px;
        background: #ffffff;
        border-radius: var(--radius-lg);
        border: 1px solid var(--border-color);
        box-shadow: var(--shadow-sm);
        color: var(--text-main);
        width: 100%;
        box-sizing: border-box;
    }

    .watch-hero-title {
        color: var(--text-main) !important;
        font-size: 1.35rem;
        font-weight: 900;
        margin-bottom: 8px;
        line-height: 1.25;
        text-shadow: none;
    }

    .watch-hero-top-badges {
        margin-bottom: 10px;
        gap: 8px;
    }
    .watch-hero-top-badges .badge-audio-current {
        background: var(--anime-purple-light);
        border-color: rgba(139, 92, 246, 0.35);
        color: var(--anime-purple);
    }
    .watch-hero-top-badges .hero-star-rating {
        background: #fef3c7 !important;
        color: #d97706 !important;
    }

    .watch-hero-meta {
        color: var(--text-muted) !important;
        font-size: 0.8rem;
        margin-bottom: 12px;
        line-height: 1.45;
    }
    .watch-hero-meta span {
        color: var(--text-muted) !important;
    }

    .watch-hero-actions-cta {
        margin: 12px 0 14px;
    }
    .btn-hero-watch-primary {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .watch-hero-synopsis-wrap {
        margin-top: 8px;
        background: #f8fafc;
        border: 1px solid #f1f5f9;
        border-radius: 12px;
        padding: 12px;
    }
    .watch-synopsis-text {
        color: var(--text-secondary) !important;
        font-size: 0.85rem;
        line-height: 1.55;
    }
    .btn-toggle-synopsis {
        background: #e2e8f0;
        border-color: #cbd5e1;
        color: var(--text-main) !important;
        font-weight: 700;
        font-size: 0.8rem;
        margin-top: 8px;
    }
    .episodes-cards-grid {
        grid-template-columns: 1fr !important;
    }
    .episode-thumb-wrap {
        width: 105px !important;
        height: 60px !important;
    }
    .watch-details-section {
        padding: 16px 14px !important;
    }
}

@media (min-width: 1600px) {
    .watch-hero-banner {
        min-height: 56.25vw;
        max-height: 75vh;
    }
}

/* Loading spinner animation */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ─── RESTORED WATCH PAGE CLASSES ──────────────────────────────────────── */

/* Hero top badge row */
.watch-hero-top-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.badge-quality-4k {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.hero-star-rating {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 800;
}

/* Hero title */
.watch-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3.5vw, 2.8rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 8px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

/* Hero metadata chips row */
.watch-hero-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 6px;
}
.watch-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Hero synopsis */
.watch-hero-synopsis-wrap {
    margin-top: 10px;
}
.watch-synopsis-text {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.82);
    line-height: 1.65;
    transition: max-height 0.4s ease;
}
.watch-synopsis-text.collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.btn-toggle-synopsis {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: background 0.2s;
}
.btn-toggle-synopsis:hover {
    background: rgba(255,255,255,0.22);
}

/* Seasons navigation tabs */
.seasons-nav-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.season-pill-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    background: var(--bg-subtle);
    border: 1.5px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}
.season-pill-tab:hover {
    border-color: var(--anime-pink);
    color: var(--anime-pink);
    background: rgba(255,0,127,0.06);
}
.season-pill-tab.active {
    background: var(--anime-gradient);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(255,0,127,0.3);
}

/* Like button */
.btn-like-anime {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    background: var(--bg-subtle);
    border: 1.5px solid var(--border-light);
    color: var(--text-main);
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-like-anime:hover {
    border-color: #ff007f;
    background: rgba(255,0,127,0.06);
}
.btn-like-anime.liked {
    background: rgba(255,0,127,0.1);
    border-color: #ff007f;
    color: #ff007f;
}

/* Generic player action button */
.btn-player-action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    background: var(--bg-subtle);
    border: 1.5px solid var(--border-light);
    color: var(--text-main);
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.btn-player-action:hover {
    border-color: var(--anime-purple);
    background: rgba(99,102,241,0.08);
    color: var(--anime-purple);
}
.btn-audio-select {
    border-color: var(--anime-pink);
    color: var(--anime-pink);
}
.btn-audio-select:hover {
    background: rgba(255,0,127,0.08);
}

/* Watch details section (cast / info card) */
.watch-details-section {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 26px 28px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   INVITATION DUAL SEARCH & PROFILE PREVIEW CARD (+01 FRYNZY / GMAIL)
   ═══════════════════════════════════════════════════════════════════════════ */
.invite-mode-toggle-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.invite-mode-pill {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    background: var(--bg-subtle);
    border: 1.5px solid var(--border-light);
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.invite-mode-pill:hover {
    color: var(--text-main);
    border-color: rgba(255, 0, 127, 0.4);
}
.invite-mode-pill.active {
    background: linear-gradient(135deg, rgba(255, 0, 127, 0.12), rgba(99, 102, 241, 0.12));
    border-color: var(--anime-pink);
    color: var(--anime-pink);
    box-shadow: 0 2px 10px rgba(255, 0, 127, 0.15);
}
.invite-input-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 8px;
}
.invite-input-prefix-box {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    background: linear-gradient(135deg, #ff007f, #8b5cf6);
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 800;
    border-radius: var(--radius-md);
    letter-spacing: 0.04em;
    user-select: none;
    box-shadow: 0 2px 8px rgba(255, 0, 127, 0.25);
    white-space: nowrap;
}
.invite-input-email-prefix {
    background: var(--bg-subtle);
    border: 1.5px solid var(--border-light);
    color: var(--anime-purple);
    box-shadow: none;
}
.invite-user-preview-card {
    background: linear-gradient(135deg, rgba(255, 0, 127, 0.04), rgba(99, 102, 241, 0.05));
    border: 1.5px solid rgba(255, 0, 127, 0.25);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    margin-top: 12px;
    animation: fadeInPreview 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 6px 20px rgba(255, 0, 127, 0.08);
}
@keyframes fadeInPreview {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
.preview-card-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.preview-user-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.preview-avatar-wrap {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    flex-shrink: 0;
}
.preview-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.preview-name-line {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.preview-found-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.preview-sub-line {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.btn-invite-found-user {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    background: linear-gradient(135deg, var(--anime-pink), var(--anime-purple));
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 800;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(255, 0, 127, 0.3);
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}
.btn-invite-found-user:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 6px 20px rgba(255, 0, 127, 0.45);
}
.btn-invite-found-user:active {
    transform: translateY(0);
}
.invite-clear-search-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.invite-clear-search-btn:hover {
    color: var(--anime-pink);
}

/* Settings Avatar Customizer & Two-View Profile Modal */
.settings-avatar-hero-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(255, 0, 127, 0.05), rgba(99, 102, 241, 0.06));
    border: 1.5px solid rgba(255, 0, 127, 0.2);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
}
.settings-avatar-preview-wrap {
    position: relative;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    overflow: visible;
    flex-shrink: 0;
}
.settings-avatar-preview-wrap img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 14px rgba(255, 0, 127, 0.25);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.settings-avatar-preview-wrap:hover img {
    transform: scale(1.06);
}
.avatar-edit-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #ff007f, #8b5cf6);
    border: 2px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.72rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Button "Changer mon avatar" inside profile modal */
.btn-change-avatar-main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(255, 0, 127, 0.12), rgba(139, 92, 246, 0.15));
    border: 1.5px solid rgba(255, 0, 127, 0.35);
    color: var(--anime-pink, #ff007f);
    font-weight: 800;
    font-size: 0.88rem;
    padding: 10px 18px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    margin-top: 14px;
    box-shadow: 0 2px 8px rgba(255, 0, 127, 0.08);
}
.btn-change-avatar-main:hover {
    background: linear-gradient(135deg, #ff007f, #8b5cf6);
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 0, 127, 0.3);
}

/* Back button in avatar selector view */
.btn-avatar-picker-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 23, 42, 0.05);
    border: 1px solid var(--border-medium);
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.82rem;
    padding: 6px 14px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.18s ease;
}
.btn-avatar-picker-back:hover {
    background: rgba(255, 0, 127, 0.1);
    color: var(--anime-pink);
    border-color: rgba(255, 0, 127, 0.3);
}

/* Profile Number Pill inside modal */
.profile-modal-num-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid var(--border-light, #e2e8f0);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════════
   MA LISTE & HISTORIQUE — WATCHLIST FEATURE STYLES
   ═══════════════════════════════════════════════════════════ */

/* Header bookmark button badge */
.watchlist-header-btn {
    position: relative;
}
.watchlist-header-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--anime-gold);
    color: #fff;
    border-radius: var(--radius-pill);
    font-size: 0.62rem;
    font-weight: 900;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
    animation: badgePop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes badgePop {
    from { transform: scale(0); }
    to   { transform: scale(1); }
}

/* Hero watchlist button active state */
.btn-hero-alt.wl-active {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.35), rgba(245, 158, 11, 0.15)) !important;
    border-color: var(--anime-gold) !important;
    color: var(--anime-gold) !important;
}
.btn-hero-alt.wl-active i {
    color: var(--anime-gold) !important;
}

/* Watchlist modal tab pane */
.watchlist-tab-pane {
    max-height: 450px;
    overflow-y: auto;
}

/* Watchlist item card */
.watchlist-item-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 14px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    transition: all 0.22s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.watchlist-item-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-medium);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}
.watchlist-item-thumb {
    width: 54px;
    height: 76px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-subtle);
}
.watchlist-item-info {
    flex: 1;
    min-width: 0;
}
.watchlist-item-title {
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}
.watchlist-item-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 6px;
}
/* Watchlist status chip */
.wl-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 9px;
    border-radius: var(--radius-pill);
    font-size: 0.68rem;
    font-weight: 800;
    font-family: var(--font-heading);
    margin-bottom: 6px;
}
.wl-status-chip.a_voir { background: #eff6ff; color: #3b82f6; }
.wl-status-chip.en_cours { background: #fef3c7; color: #d97706; }
.wl-status-chip.termine { background: #dcfce7; color: #16a34a; }

/* Watchlist status change selector */
.wl-status-select {
    appearance: none;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--text-main);
    padding: 3px 22px 3px 8px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2364748b'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    background-size: 14px;
}
.wl-status-select:focus { outline: none; border-color: var(--anime-gold); }

/* Watchlist remove button */
.wl-remove-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
    flex-shrink: 0;
}
.wl-remove-btn:hover {
    background: #fee2e2;
    color: #ef4444;
}

/* History item card */
.history-item-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    transition: all 0.2s ease;
}
.history-item-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-medium);
}
.history-item-thumb {
    width: 46px;
    height: 64px;
    border-radius: 7px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-subtle);
}
.history-item-info {
    flex: 1;
    min-width: 0;
}
.history-item-title {
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}
.history-item-ep {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 5px;
}
/* Progress bar inside history card */
.history-progress-bar-wrap {
    height: 4px;
    background: var(--border-light);
    border-radius: var(--radius-pill);
    overflow: hidden;
    margin-top: 4px;
}
.history-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--anime-pink), var(--anime-purple));
    border-radius: var(--radius-pill);
    transition: width 0.5s ease;
}
.history-resume-btn {
    background: linear-gradient(135deg, #ff007f, #8b5cf6);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    font-size: 0.72rem;
    font-weight: 800;
    font-family: var(--font-heading);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity 0.2s;
}
.history-resume-btn:hover { opacity: 0.88; }
.history-item-time {
    font-size: 0.66rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 2px;
}

/* Anime card watchlist quick-add button */
.card-watchlist-quick-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,0.92);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.78rem;
    color: var(--text-muted);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: all 0.2s ease;
    opacity: 0;
    transform: scale(0.8);
    z-index: 5;
}
.media-card:hover .card-watchlist-quick-btn,
.media-unit:hover .card-watchlist-quick-btn,
.media-profile-frame:hover .card-watchlist-quick-btn {
    opacity: 1;
    transform: scale(1);
}
.card-watchlist-quick-btn:hover {
    background: var(--anime-gold);
    color: #fff;
    transform: scale(1.1) !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}
.card-watchlist-quick-btn.in-list {
    opacity: 1;
    transform: scale(1);
    background: var(--anime-gold);
    color: #fff;
}

/* Watchlist empty state */
.watchlist-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
}
.watchlist-empty-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    opacity: 0.4;
}
.watchlist-empty-title {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 6px;
}
.watchlist-empty-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Mobile responsive for watchlist */
@media (max-width: 600px) {
    .watchlist-item-thumb { width: 44px; height: 62px; }
    .watchlist-item-title { font-size: 0.82rem; }
    .history-item-thumb { width: 38px; height: 54px; }
    .watchlist-tab-pane { max-height: 380px; }
    .card-watchlist-quick-btn { opacity: 1; transform: scale(1); }
}

/* ═══════════════════════════════════════════════════════════
   SIMULCAST PLANNING CALLOUT BANNER & NAV TRIGGERS
   ═══════════════════════════════════════════════════════════ */
.planning-nav-badge {
    background: linear-gradient(135deg, #ff007f, #8b5cf6);
    color: #ffffff;
    font-size: 0.6rem;
    font-weight: 900;
    padding: 1px 6px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.3px;
    margin-left: 2px;
}
.simulcast-home-callout {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 60%, #2e1065 100%);
    border-radius: var(--radius-xl);
    padding: 22px 28px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.simulcast-home-callout:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.2);
    border-color: rgba(255, 0, 127, 0.4);
}
.simulcast-callout-glow {
    position: absolute;
    top: -50px;
    right: 20%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 0, 127, 0.25) 0%, rgba(139, 92, 246, 0.1) 60%, transparent 80%);
    pointer-events: none;
}
.simulcast-callout-left {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 2;
}
.simulcast-callout-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    color: #f1f5f9;
}
.simulcast-callout-title {
    font-size: 1.25rem;
    font-weight: 900;
    font-family: var(--font-heading);
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
}
.simulcast-callout-desc {
    font-size: 0.85rem;
    color: #cbd5e1;
    margin: 0;
    line-height: 1.5;
    max-width: 700px;
}
.simulcast-callout-right {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}
.btn-simulcast-discover {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: #ffffff;
    color: #0f172a;
    border-radius: var(--radius-pill);
    font-weight: 800;
    font-size: 0.86rem;
    font-family: var(--font-heading);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}
.simulcast-home-callout:hover .btn-simulcast-discover {
    background: linear-gradient(135deg, #ff007f, #8b5cf6);
    color: #ffffff;
    transform: translateX(3px);
}

@media (max-width: 768px) {
    .simulcast-home-callout {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px 20px;
        gap: 14px;
    }
    .simulcast-callout-title { font-size: 1.05rem; }
    .simulcast-callout-desc { font-size: 0.8rem; }
    .btn-simulcast-discover { width: 100%; justify-content: center; }
}

/* ═══════════════════════════════════════════════════════════
   ULTRA-RESPONSIVE HEADER FOR TABLET & MOBILE DEVICES
   ═══════════════════════════════════════════════════════════ */

/* Tablet & Intermediate Screens (769px to 1180px) */
@media (max-width: 1180px) {
    .anizy-header-inner {
        gap: 12px;
        padding: 0 16px;
    }
    .nav-text-label {
        display: none !important;
    }
    .anizy-logo-badge {
        display: none !important;
    }
    .planning-nav-badge {
        display: none !important;
    }
    .btn-category-trigger {
        padding: 0 12px;
        height: 38px;
        gap: 0;
        justify-content: center;
    }
    .btn-category-trigger .fa-chevron-down {
        display: none !important;
    }
    .btn-profile-pill {
        padding: 0;
        border: none;
        background: transparent;
    }
    .profile-avatar-wrap {
        width: 36px;
        height: 36px;
    }
    .profile-pseudo-text {
        display: none !important;
    }
    .anizy-search-wrap {
        max-width: 340px;
    }
}

/* Mobile & Narrow Windows (<= 768px) — 2-Row Optimized Header */
@media (max-width: 768px) {
    .anizy-header {
        height: auto !important;
        min-height: 60px;
        padding: 8px 12px 10px !important;
        box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
    }
    .anizy-header-inner {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px 6px !important;
        padding: 0 !important;
    }

    /* ── Row 1 Left: Brand & Menu ── */
    .brand-section {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
    }
    .btn-menu-trigger {
        width: 38px !important;
        height: 38px !important;
        font-size: 0.95rem !important;
        border-radius: 10px !important;
        flex-shrink: 0;
    }
    .anizy-logo-link {
        gap: 7px !important;
    }
    .anizy-logo-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 1rem !important;
        border-radius: 10px !important;
        flex-shrink: 0;
    }
    .anizy-logo-title {
        font-size: 1.25rem !important;
        letter-spacing: -0.4px !important;
    }
    .anizy-logo-badge {
        display: none !important;
    }

    /* ── Row 1 Center: Quick Triggers ── */
    .nav-text-label {
        display: none !important;
    }
    .planning-nav-badge {
        display: none !important;
    }
    .header-genre-btn {
        display: none !important; /* Prominently available in hamburger drawer */
    }
    .header-planning-btn {
        width: 36px !important;
        height: 36px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border: 1.5px solid var(--border-light) !important;
        background: var(--bg-subtle) !important;
        flex-shrink: 0;
    }
    .header-planning-btn i {
        font-size: 0.95rem !important;
        margin: 0 !important;
    }

    /* ── Row 1 Right: Action Buttons & Profile ── */
    .header-actions {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        margin-left: auto !important;
        flex-shrink: 0;
    }
    .action-round-btn {
        width: 36px !important;
        height: 36px !important;
        font-size: 0.92rem !important;
        flex-shrink: 0;
        border: 1.5px solid var(--border-light) !important;
    }
    .action-round-btn i {
        font-size: 0.95rem !important;
    }
    .btn-profile-pill {
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
        flex-shrink: 0;
    }
    .profile-avatar-wrap {
        width: 36px !important;
        height: 36px !important;
        border: 1.5px solid #ffffff !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    }
    .profile-pseudo-text {
        display: none !important;
    }
    .watchlist-header-badge {
        top: -3px !important;
        right: -3px !important;
        min-width: 16px !important;
        height: 16px !important;
        font-size: 0.58rem !important;
        padding: 0 4px !important;
    }

    /* ── Row 2: 100% Full-Width Search Input ── */
    .anizy-search-wrap {
        order: 10 !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        margin-top: 4px !important;
    }
    .anizy-search-input {
        height: 40px !important;
        font-size: 0.85rem !important;
        padding: 0 36px 0 38px !important;
        background: #f8fafc !important;
        border: 1.5px solid var(--border-light) !important;
    }
    .search-icon-left {
        left: 13px !important;
        font-size: 0.88rem !important;
    }
    .search-clear-btn {
        right: 12px !important;
    }
    .search-suggestions-dropdown {
        top: calc(100% + 4px) !important;
        border-radius: 16px !important;
    }
}

/* Compact Mobile (<= 400px) */
@media (max-width: 400px) {
    .anizy-header {
        padding: 7px 8px 9px !important;
    }
    .anizy-logo-title {
        font-size: 1.15rem !important;
    }
    .btn-menu-trigger {
        width: 34px !important;
        height: 34px !important;
    }
    .anizy-logo-icon {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.9rem !important;
    }
    .action-round-btn {
        width: 33px !important;
        height: 33px !important;
        font-size: 0.84rem !important;
    }
    .header-planning-btn {
        width: 33px !important;
        height: 33px !important;
    }
    .profile-avatar-wrap {
        width: 33px !important;
        height: 33px !important;
    }
    .header-actions {
        gap: 4px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════ */
/* 22. REAL COMMUNITY REVIEWS, STAR RATING & ANIME TAGGING STYLES       */
/* ═══════════════════════════════════════════════════════════════════ */

.community-reviews-section {
    position: relative;
}

.reviews-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

/* Live Community Score & Count Pill */
.community-score-hero-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.6), rgba(253, 230, 138, 0.4));
    border: 1.5px solid rgba(245, 158, 11, 0.4);
    border-radius: var(--radius-lg);
    padding: 10px 18px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.12);
}

.dark-theme .community-score-hero-badge {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(124, 58, 237, 0.12));
    border-color: rgba(245, 158, 11, 0.3);
}

.score-stars-num {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.45rem;
    font-weight: 900;
    color: #b45309;
    font-family: var(--font-heading);
}

.dark-theme .score-stars-num {
    color: #f59e0b;
}

.score-max {
    font-size: 0.85rem;
    opacity: 0.75;
    font-weight: 700;
}

.score-reviews-count {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Review & Comment Posting Card */
.community-review-post-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    margin-bottom: 24px;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.community-review-post-card:focus-within {
    border-color: rgba(255, 0, 127, 0.4);
    box-shadow: 0 10px 35px rgba(255, 0, 127, 0.08);
}

.review-user-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.review-author-preview {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-user-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--anime-pink);
    box-shadow: 0 2px 10px rgba(255, 0, 127, 0.2);
}

.review-author-name {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--text-main);
}

.review-author-status {
    font-size: 0.74rem;
    color: #10b981;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Star Rating Picker */
.star-rating-picker-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    background: var(--bg-subtle);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-color);
}

.rating-picker-title {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--text-muted);
}

.star-rating-stars {
    display: flex;
    align-items: center;
    gap: 2px;
}

.star-btn {
    background: transparent;
    border: none;
    padding: 4px 2px;
    font-size: 1.15rem;
    color: #cbd5e1;
    cursor: pointer;
    transition: transform 0.15s, color 0.15s;
    line-height: 1;
}

.star-btn:hover {
    transform: scale(1.25);
}

.star-btn.active {
    color: #f59e0b;
}

.star-rating-label {
    font-size: 0.84rem;
    font-weight: 800;
    color: #f59e0b;
    min-width: 140px;
}

/* Review Textarea */
.review-textarea {
    width: 100%;
    resize: vertical;
    min-height: 85px;
    font-family: inherit;
    font-size: 0.92rem;
    line-height: 1.5;
    padding: 12px 16px;
    border-radius: var(--radius-md);
}

/* Tag Toolbar */
.review-tag-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
}

.review-tag-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-tag-anime-action {
    background: var(--bg-subtle);
    border: 1.5px dashed var(--border-color);
    color: var(--text-main);
    padding: 7px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: all 0.2s;
}

.btn-tag-anime-action:hover {
    background: rgba(255, 0, 127, 0.08);
    border-color: var(--anime-pink);
    color: var(--anime-pink);
}

.active-tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(255, 0, 127, 0.1), rgba(124, 58, 237, 0.1));
    border: 1.5px solid var(--anime-pink);
    color: var(--anime-pink);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 800;
    box-shadow: 0 2px 10px rgba(255, 0, 127, 0.15);
}

.btn-remove-tag {
    background: transparent;
    border: none;
    cursor: pointer;
    color: inherit;
    padding: 0 2px;
    font-size: 0.85rem;
    opacity: 0.7;
    transition: opacity 0.15s;
}

.btn-remove-tag:hover {
    opacity: 1;
}

.btn-submit-review {
    padding: 10px 22px;
    font-weight: 800;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 18px rgba(255, 0, 127, 0.25);
}

/* Tag Picker Drawer */
.anime-tag-picker-drawer {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-top: 14px;
    animation: fadeInTagPicker 0.2s ease-out;
}

@keyframes fadeInTagPicker {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.tag-picker-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 10px;
}

.btn-close-tag-picker {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-muted);
}

.tag-quick-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    padding: 6px 14px;
    margin-bottom: 12px;
}

.tag-quick-search-box input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 0.85rem;
    color: var(--text-main);
    font-family: inherit;
}

.tag-chips-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 180px;
    overflow-y: auto;
}

.tag-chip-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    padding: 6px 13px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.tag-chip-btn:hover {
    border-color: var(--anime-pink);
    color: var(--anime-pink);
    background: rgba(255, 0, 127, 0.06);
}

.tag-chip-btn.selected {
    background: var(--anime-pink);
    color: #fff;
    border-color: var(--anime-pink);
}

/* Reviews Filter Bar */
.reviews-filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.btn-review-filter {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    padding: 8px 16px;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-review-filter:hover {
    color: var(--text-main);
    border-color: var(--text-muted);
}

.btn-review-filter.active {
    background: var(--text-main);
    color: var(--bg-main);
    border-color: var(--text-main);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

/* Review Cards Grid & Items */
.community-comments-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.community-review-item-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s, box-shadow 0.2s;
}

.community-review-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.review-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.review-item-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-item-avatar-wrap {
    position: relative;
}

.review-item-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--border-color);
}

.review-item-pseudo-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.review-item-pseudo {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--text-main);
}

.badge-verified-otaku {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.review-item-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.review-item-rating-badge {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #b45309;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.dark-theme .review-item-rating-badge {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

.review-tagged-wrapper {
    margin-bottom: 10px;
}

.review-anime-tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 0, 127, 0.08);
    border: 1px solid rgba(255, 0, 127, 0.3);
    color: var(--anime-pink);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.2s;
}

.review-anime-tag-badge:hover {
    background: var(--anime-pink);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 0, 127, 0.25);
}

.review-item-message {
    font-size: 0.94rem;
    line-height: 1.6;
    color: var(--text-main);
    margin-bottom: 14px;
    word-break: break-word;
}

.inline-anime-mention {
    color: var(--anime-pink);
    font-weight: 800;
    background: rgba(255, 0, 127, 0.08);
    padding: 1px 7px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.review-item-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
}

.btn-helpful-vote, .btn-share-review {
    background: transparent;
    border: none;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
    padding: 4px 8px;
    border-radius: 6px;
}

.btn-helpful-vote:hover, .btn-share-review:hover {
    color: var(--anime-pink);
    background: rgba(255, 0, 127, 0.05);
}

.helpful-badge {
    background: var(--bg-subtle);
    padding: 1px 6px;
    border-radius: var(--radius-pill);
    font-size: 0.74rem;
}

/* Empty State */
.community-empty-state {
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-card);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
}

.empty-state-icon {
    font-size: 2.2rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.empty-state-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 6px;
}

.empty-state-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0;
}

/* Live Feedback Toast */
.anizy-live-feedback-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(40px);
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(12px);
    color: #fff;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 20px rgba(255, 0, 127, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.anizy-live-feedback-toast.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
    .review-user-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    .star-rating-picker-wrap {
        width: 100%;
        justify-content: space-between;
    }
    .review-tag-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-submit-review {
        width: 100%;
        justify-content: center;
    }
    .reviews-section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .community-score-hero-badge {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
    }
}


