/* ===== Anifinity - Global Styles ===== */
/* Google Fonts loaded via <link> in HTML head for non-blocking render */

:root {
    /* Colors - Default Theme: Tokyo Gecesi */
    --bg-primary: #0d0d18;
    --bg-secondary: #12121a;
    --bg-card: #16161f;
    --bg-sidebar: rgba(14, 14, 20, 0.92);
    --bg-hover: rgba(255, 255, 255, 0.06);
    --bg-active: rgba(138, 92, 246, 0.15);

    --text-primary: #f0f0f5;
    --text-secondary: #8e8ea0;
    --text-muted: #5a5a6e;

    --accent-primary: #8a5cf6;
    --accent-secondary: #06b6d4;
    --accent-gradient: linear-gradient(135deg, #8a5cf6 0%, #06b6d4 100%);
    --accent-glow: rgba(138, 92, 246, 0.3);

    --border-color: rgba(255, 255, 255, 0.06);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.6);
    --bg-topbar: rgba(10, 10, 15, 0.8);

    /* Play Button Overlays */
    --play-btn-bg: rgba(13, 13, 24, 0.9);
    --play-btn-icon: #ffffff;


    /* Logo */
    --logo-moon: #ffffff;
    --logo-glow: rgba(138, 92, 246, 0.5);
    --logo-stars: #ffffff;
    --logo-text-color: var(--accent-gradient);

    /* Badge & button */
    --badge-bg: var(--accent-primary);
    --badge-text: #ffffff;
    --btn-primary-text: #ffffff;
    --btn-secondary-bg: rgba(255, 255, 255, 0.08);
    --btn-secondary-border: rgba(255, 255, 255, 0.12);
    --btn-secondary-text: var(--text-primary);

    /* Sizes */
    --sidebar-width: 72px;
    --sidebar-expanded: 200px;
    --topbar-height: 56px;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== THEME: Siyah (Dark Black) ===== */
[data-theme="siyah"] {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #161616;
    --bg-sidebar: rgba(10, 10, 10, 0.95);
    --bg-hover: rgba(255, 255, 255, 0.05);
    --bg-active: rgba(255, 255, 255, 0.1);

    --text-primary: #f5f5f5;
    --text-secondary: #999999;
    --text-muted: #555555;

    --accent-primary: #e0e0e0;
    --accent-secondary: #b0b0b0;
    --accent-gradient: linear-gradient(135deg, #f0f0f0 0%, #c0c0c0 100%);
    --accent-glow: rgba(255, 255, 255, 0.15);

    --border-color: rgba(255, 255, 255, 0.07);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.8);

    --bg-topbar: rgba(10, 10, 10, 0.85);

    /* Play Button Overlays */
    --play-btn-bg: #000000;
    --play-btn-icon: #ffffff;


    --logo-moon: #ffffff;
    --logo-glow: rgba(200, 200, 255, 0.3);
    --logo-stars: #ffffff;
    --logo-text-color: linear-gradient(135deg, #ffffff 0%, #d0d0d0 100%);

    /* Badge & button contrast */
    --badge-bg: #ffffff;
    --badge-text: #0a0a0a;
    --btn-primary-text: #0a0a0a;
    --btn-secondary-bg: rgba(255, 255, 255, 0.1);
    --btn-secondary-border: rgba(255, 255, 255, 0.15);
    --btn-secondary-text: #f5f5f5;
}

/* ===== THEME: Beyaz (Light White) ===== */
[data-theme="beyaz"] {
    --bg-primary: #f5f5f8;
    --bg-secondary: #ffffff;
    --bg-card: #eeeef2;
    --bg-sidebar: rgba(255, 255, 255, 0.92);
    --bg-hover: rgba(0, 0, 0, 0.04);
    --bg-active: rgba(0, 0, 0, 0.08);

    --text-primary: #1a1a2e;
    --text-secondary: #6b6b80;
    --text-muted: #9999aa;

    --accent-primary: #333344;
    --accent-secondary: #555566;
    --accent-gradient: linear-gradient(135deg, #1a1a2e 0%, #333355 100%);
    --accent-glow: rgba(0, 0, 0, 0.1);

    --border-color: rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);

    --bg-topbar: rgba(245, 245, 248, 0.85);

    /* Play Button Overlays */
    --play-btn-bg: rgba(26, 26, 46, 0.9);
    --play-btn-icon: #ffffff;


    --logo-moon: #1a1a2e;
    --logo-glow: rgba(100, 100, 200, 0.15);
    --logo-stars: #1a1a2e;
    --logo-text-color: linear-gradient(135deg, #1a1a2e 0%, #333355 100%);

    /* Badge & button contrast */
    --badge-bg: #1a1a2e;
    --badge-text: #ffffff;
    --btn-primary-text: #ffffff;
    --btn-secondary-bg: rgba(0, 0, 0, 0.06);
    --btn-secondary-border: rgba(0, 0, 0, 0.12);
    --btn-secondary-text: #1a1a2e;
}

/* ===== THEME: Güneş (Sun) ===== */
[data-theme="gunes"] {
    --bg-primary: #fdf8f0;
    --bg-secondary: #fff9f0;
    --bg-card: #f5efe4;
    --bg-sidebar: rgba(253, 248, 240, 0.95);
    --bg-hover: rgba(180, 120, 20, 0.06);
    --bg-active: rgba(245, 166, 35, 0.12);

    --text-primary: #2d2006;
    --text-secondary: #8a7040;
    --text-muted: #b8a070;

    --accent-primary: #e6a817;
    --accent-secondary: #f59e0b;
    --accent-gradient: linear-gradient(135deg, #f59e0b 0%, #ef6c00 100%);
    --accent-glow: rgba(245, 158, 11, 0.25);

    --border-color: rgba(180, 120, 20, 0.1);
    --shadow-sm: 0 2px 8px rgba(100, 60, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(100, 60, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(100, 60, 0, 0.12);

    --bg-topbar: rgba(253, 248, 240, 0.88);

    /* Play Button Overlays */
    --play-btn-bg: rgba(45, 32, 6, 0.9);
    --play-btn-icon: #ffffff;


    --logo-moon: #2d2006;
    --logo-glow: rgba(245, 158, 11, 0.3);
    --logo-stars: #e6a817;
    --logo-text-color: linear-gradient(135deg, #e6a817 0%, #ef6c00 100%);

    /* Badge & button contrast */
    --badge-bg: #2d2006;
    --badge-text: #ffffff;
    --btn-primary-text: #ffffff;
    --btn-secondary-bg: rgba(180, 120, 20, 0.08);
    --btn-secondary-border: rgba(180, 120, 20, 0.15);
    --btn-secondary-text: #2d2006;
}

/* ===== THEME: OLED (True Black) ===== */
[data-theme="oled"] {
    --bg-primary: #000000;
    --bg-secondary: #050505;
    --bg-card: #080808;
    --bg-sidebar: rgba(0, 0, 0, 0.98);
    --bg-hover: rgba(255, 255, 255, 0.04);
    --bg-active: rgba(138, 92, 246, 0.12);

    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --text-muted: #555555;

    --accent-primary: #8a5cf6;
    --accent-secondary: #06b6d4;
    --accent-gradient: linear-gradient(135deg, #8a5cf6 0%, #06b6d4 100%);
    --accent-glow: rgba(138, 92, 246, 0.25);

    --border-color: rgba(255, 255, 255, 0.05);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.8);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.9);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 1);

    --bg-topbar: rgba(0, 0, 0, 0.92);
    --play-btn-bg: #000000;
    --play-btn-icon: #ffffff;

    --logo-moon: #ffffff;
    --logo-glow: rgba(138, 92, 246, 0.4);
    --logo-stars: #ffffff;
    --logo-text-color: linear-gradient(135deg, #8a5cf6 0%, #06b6d4 100%);

    --badge-bg: #8a5cf6;
    --badge-text: #ffffff;
    --btn-primary-text: #ffffff;
    --btn-secondary-bg: rgba(255, 255, 255, 0.06);
    --btn-secondary-border: rgba(255, 255, 255, 0.1);
    --btn-secondary-text: #ffffff;
}

/* ===== THEME: Yüksek Kontrast (WCAG AAA) ===== */
[data-theme="kontrast"] {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-card: #111111;
    --bg-sidebar: rgba(0, 0, 0, 0.99);
    --bg-hover: rgba(255, 255, 0, 0.1);
    --bg-active: rgba(255, 255, 0, 0.2);

    --text-primary: #ffffff;
    --text-secondary: #dddddd;
    --text-muted: #aaaaaa;

    --accent-primary: #ffff00;
    --accent-secondary: #00ffff;
    --accent-gradient: linear-gradient(135deg, #ffff00 0%, #00ffff 100%);
    --accent-glow: rgba(255, 255, 0, 0.35);

    --border-color: rgba(255, 255, 255, 0.4);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.9);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.95);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 1);

    --bg-topbar: rgba(0, 0, 0, 0.95);
    --play-btn-bg: #000000;
    --play-btn-icon: #ffff00;

    --logo-moon: #ffff00;
    --logo-glow: rgba(255, 255, 0, 0.4);
    --logo-stars: #ffff00;
    --logo-text-color: linear-gradient(135deg, #ffff00 0%, #00ffff 100%);

    --badge-bg: #ffff00;
    --badge-text: #000000;
    --btn-primary-text: #000000;
    --btn-secondary-bg: rgba(255, 255, 255, 0.1);
    --btn-secondary-border: rgba(255, 255, 255, 0.5);
    --btn-secondary-text: #ffffff;
}

/* ===== THEME: Dracula ===== */
[data-theme="dracula"] {
    --bg-primary: #282a36;
    --bg-secondary: #21222c;
    --bg-card: #2d2f3f;
    --bg-sidebar: rgba(33, 34, 44, 0.95);
    --bg-hover: rgba(255, 255, 255, 0.05);
    --bg-active: rgba(189, 147, 249, 0.15);

    --text-primary: #f8f8f2;
    --text-secondary: #6272a4;
    --text-muted: #44475a;

    --accent-primary: #bd93f9;
    --accent-secondary: #ff79c6;
    --accent-gradient: linear-gradient(135deg, #bd93f9 0%, #ff79c6 100%);
    --accent-glow: rgba(189, 147, 249, 0.3);

    --border-color: rgba(255, 255, 255, 0.08);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.7);

    --bg-topbar: rgba(33, 34, 44, 0.88);
    --play-btn-bg: rgba(33, 34, 44, 0.92);
    --play-btn-icon: #f8f8f2;

    --logo-moon: #f8f8f2;
    --logo-glow: rgba(189, 147, 249, 0.4);
    --logo-stars: #f8f8f2;
    --logo-text-color: linear-gradient(135deg, #bd93f9 0%, #ff79c6 100%);

    --badge-bg: #bd93f9;
    --badge-text: #282a36;
    --btn-primary-text: #282a36;
    --btn-secondary-bg: rgba(255, 255, 255, 0.07);
    --btn-secondary-border: rgba(255, 255, 255, 0.12);
    --btn-secondary-text: #f8f8f2;
}

/* ===== THEME: Catppuccin Mocha ===== */
[data-theme="catppuccin"] {
    --bg-primary: #1e1e2e;
    --bg-secondary: #181825;
    --bg-card: #313244;
    --bg-sidebar: rgba(24, 24, 37, 0.95);
    --bg-hover: rgba(205, 214, 244, 0.05);
    --bg-active: rgba(203, 166, 247, 0.15);

    --text-primary: #cdd6f4;
    --text-secondary: #a6adc8;
    --text-muted: #6c7086;

    --accent-primary: #cba6f7;
    --accent-secondary: #89b4fa;
    --accent-gradient: linear-gradient(135deg, #cba6f7 0%, #89b4fa 100%);
    --accent-glow: rgba(203, 166, 247, 0.3);

    --border-color: rgba(205, 214, 244, 0.07);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.65);

    --bg-topbar: rgba(24, 24, 37, 0.88);
    --play-btn-bg: rgba(30, 30, 46, 0.92);
    --play-btn-icon: #cdd6f4;

    --logo-moon: #cdd6f4;
    --logo-glow: rgba(203, 166, 247, 0.4);
    --logo-stars: #cdd6f4;
    --logo-text-color: linear-gradient(135deg, #cba6f7 0%, #89b4fa 100%);

    --badge-bg: #cba6f7;
    --badge-text: #1e1e2e;
    --btn-primary-text: #1e1e2e;
    --btn-secondary-bg: rgba(205, 214, 244, 0.07);
    --btn-secondary-border: rgba(205, 214, 244, 0.12);
    --btn-secondary-text: #cdd6f4;
}

/* ===== THEME: Nordic (Nord) ===== */
[data-theme="nordic"] {
    --bg-primary: #2e3440;
    --bg-secondary: #242933;
    --bg-card: #3b4252;
    --bg-sidebar: rgba(36, 41, 51, 0.95);
    --bg-hover: rgba(255, 255, 255, 0.05);
    --bg-active: rgba(129, 161, 193, 0.15);

    --text-primary: #eceff4;
    --text-secondary: #d8dee9;
    --text-muted: #4c566a;

    --accent-primary: #81a1c1;
    --accent-secondary: #88c0d0;
    --accent-gradient: linear-gradient(135deg, #81a1c1 0%, #88c0d0 100%);
    --accent-glow: rgba(129, 161, 193, 0.3);

    --border-color: rgba(255, 255, 255, 0.07);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.65);

    --bg-topbar: rgba(36, 41, 51, 0.88);
    --play-btn-bg: rgba(46, 52, 64, 0.92);
    --play-btn-icon: #eceff4;

    --logo-moon: #eceff4;
    --logo-glow: rgba(129, 161, 193, 0.4);
    --logo-stars: #eceff4;
    --logo-text-color: linear-gradient(135deg, #81a1c1 0%, #88c0d0 100%);

    --badge-bg: #81a1c1;
    --badge-text: #2e3440;
    --btn-primary-text: #2e3440;
    --btn-secondary-bg: rgba(255, 255, 255, 0.07);
    --btn-secondary-border: rgba(255, 255, 255, 0.12);
    --btn-secondary-text: #eceff4;
}

/* ===== Reset ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html.no-smooth-scroll {
    scroll-behavior: auto;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

ul,
ol {
    list-style: none;
}

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

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* ===== SIDEBAR ===== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-sidebar);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: width var(--transition-slow);
    overflow: hidden;
}

.sidebar:hover {
    width: var(--sidebar-expanded);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 18px;
    min-height: 64px;
    cursor: pointer;
    flex-shrink: 0;
}

.sidebar-logo img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    flex-shrink: 0;
}

.sidebar-logo .logo-svg {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.logo-svg .moon-shape {
    fill: var(--logo-moon);
    filter: drop-shadow(0 0 8px var(--logo-glow));
    transition: fill 0.4s ease, filter 0.4s ease;
}

.logo-svg .star-shape {
    fill: var(--logo-stars);
    transition: fill 0.4s ease;
}

.sidebar-logo .logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 1.5px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity var(--transition-normal), background 0.4s ease;
    background: var(--logo-text-color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar:hover .logo-text {
    opacity: 1;
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 8px 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.nav-section {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 10px;
}

.nav-section.bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
    margin-top: 12px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    position: relative;
}

.nav-item:hover {
    background: var(--bg-hover);
}

.nav-item.active {
    background: var(--bg-active);
    color: var(--accent-primary);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: var(--accent-primary);
    border-radius: 0 3px 3px 0;
}

.nav-item svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    stroke-width: 1.8;
}

.nav-item .nav-label {
    font-size: 13px;
    font-weight: 500;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.sidebar:hover .nav-label {
    opacity: 1;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: margin-left var(--transition-slow);
}

/* ===== TOP BAR ===== */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    height: var(--topbar-height);
    background: var(--bg-topbar);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.search-container {
    position: relative;
    flex: 1;
    max-width: 480px;
}

.search-container svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 10px 16px 10px 42px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    transition: all var(--transition-fast);
    outline: none;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: var(--bg-card);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.topbar-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    color: var(--text-secondary);
}

.topbar-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: var(--btn-primary-text, #ffffff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.avatar:hover {
    transform: scale(1.1);
}

/* ===== User Profile Dropdown ===== */
.user-profile-wrap {
    position: relative;
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 260px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.95);
    transition: all 0.2s ease;
    z-index: 200;
    overflow: hidden;
}

.profile-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.profile-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.profile-avatar-lg {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: var(--btn-primary-text, #fff);
    flex-shrink: 0;
}

.profile-info {
    min-width: 0;
}

.profile-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-email {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-dropdown-body {
    padding: 6px;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s ease;
    cursor: pointer;
    text-decoration: none;
    width: 100%;
    border: none;
    background: none;
    font-family: 'Inter', sans-serif;
}

.profile-menu-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.profile-menu-item.logout-btn {
    color: #ef4444;
}

.profile-menu-item.logout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* ===== THEME SELECTOR ===== */
.theme-selector {
    position: relative;
}

.theme-toggle-btn.active {
    background: var(--bg-active);
    color: var(--accent-primary);
}

.theme-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px;
    min-width: 180px;
    z-index: 200;
    box-shadow: var(--shadow-lg);
    animation: dropdownFade 0.2s ease;
}

.theme-dropdown.active {
    display: block;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.theme-dropdown-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    padding: 4px 10px 8px;
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 10px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
    background: none;
    font-family: 'Inter', sans-serif;
}

.theme-option:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.theme-option.active {
    color: var(--text-primary);
    background: var(--bg-active);
}

.theme-option .theme-check {
    margin-left: auto;
    display: none;
    color: var(--accent-primary);
}

.theme-option.active .theme-check {
    display: block;
}

.theme-color-preview {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(128, 128, 128, 0.3);
    flex-shrink: 0;
}

.tokyo-preview {
    background: linear-gradient(135deg, #8a5cf6 0%, #0d0d18 60%, #06b6d4 100%);
}

.siyah-preview {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 60%, #333 100%);
}

.beyaz-preview {
    background: linear-gradient(135deg, #f5f5f8 0%, #ffffff 60%, #dddde5 100%);
    border-color: rgba(0, 0, 0, 0.15);
}

.gunes-preview {
    background: linear-gradient(135deg, #f59e0b 0%, #fdf8f0 60%, #ef6c00 100%);
    border-color: rgba(180, 120, 0, 0.2);
}

/* Accent color swatches */
.accent-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 12px 12px;
}
.accent-swatch {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s, border-color 0.15s;
    padding: 0;
    outline: none;
}
.accent-swatch:hover { transform: scale(1.2); }
.accent-swatch.active { border-color: var(--text-primary); transform: scale(1.15); }

/* Smooth theme transition */
body,
.sidebar,
.topbar,
.main-content,
.content-area {
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

/* ===== TOKEN DISPLAY ===== */
.token-display {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(138, 92, 246, 0.1);
    border: 1px solid rgba(138, 92, 246, 0.2);
    border-radius: var(--radius-lg);
    padding: 4px 12px 4px 4px;
    transition: all var(--transition-normal);
}

.token-display:hover {
    border-color: rgba(138, 92, 246, 0.4);
    background: rgba(138, 92, 246, 0.15);
}

.token-add-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 8px var(--accent-glow);
    flex-shrink: 0;
}

.token-add-btn:hover {
    transform: scale(1.15) rotate(90deg);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.token-info {
    display: flex;
    align-items: center;
    gap: 5px;
}

.token-icon {
    color: var(--accent-primary);
    flex-shrink: 0;
    animation: tokenGlow 2s ease-in-out infinite alternate;
}

@keyframes tokenGlow {
    0% {
        filter: drop-shadow(0 0 2px rgba(138, 92, 246, 0.3));
    }

    100% {
        filter: drop-shadow(0 0 6px rgba(138, 92, 246, 0.6));
    }
}

.token-amount {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
    min-width: 30px;
}

/* Token earned animation */
.token-amount.earned {
    animation: tokenEarned 0.6s ease;
}

@keyframes tokenEarned {
    0% {
        transform: scale(1);
        color: var(--text-primary);
    }

    50% {
        transform: scale(1.4);
        color: #06b6d4;
    }

    100% {
        transform: scale(1);
        color: var(--text-primary);
    }
}

/* ===== AD MODAL ===== */
.ad-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.ad-modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.ad-modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 440px;
    padding: 32px;
    position: relative;
    box-shadow: var(--shadow-lg), 0 0 60px rgba(138, 92, 246, 0.1);
    animation: modalSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ad-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.ad-modal-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.ad-modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.ad-modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(138, 92, 246, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    color: var(--accent-primary);
}

.ad-modal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}

.ad-modal-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

.ad-modal-subtitle strong {
    color: var(--accent-secondary);
    font-weight: 700;
}

.ad-modal-balance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.ad-balance-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.ad-balance-value {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ad-player {
    position: relative;
    width: 100%;
    height: 180px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.ad-player-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 10px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.ad-player-content:hover {
    color: var(--text-secondary);
}

.ad-player-content.playing {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.ad-player-content.playing .ad-play-icon {
    display: none;
}

.ad-player-content.playing p {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.ad-play-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    transition: all var(--transition-normal);
}

.ad-player-content:hover .ad-play-icon {
    background: var(--accent-primary);
    color: var(--btn-primary-text);
    transform: scale(1.05);
}

.ad-player-content p {
    font-size: 13px;
}

.ad-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    display: none;
}

.ad-progress-bar.active {
    display: block;
}

.ad-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--accent-gradient);
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
}

.ad-timer {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 3px 10px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    display: none;
}

.ad-timer.active {
    display: block;
}

.ad-watch-btn {
    width: 100%;
    padding: 14px 24px;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 15px var(--accent-glow);
    color: white;
}

.ad-watch-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--accent-glow);
}

.ad-watch-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.ad-watch-btn.completed {
    background: linear-gradient(135deg, #059669 0%, #06b6d4 100%);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

/* Token earned popup */
.token-popup {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    padding: 14px 28px;
    background: var(--bg-secondary);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: var(--radius-lg);
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-secondary);
    z-index: 1100;
    box-shadow: var(--shadow-lg), 0 0 30px rgba(6, 182, 212, 0.2);
    animation: popupFloat 2s ease forwards;
    pointer-events: none;
}

@keyframes popupFloat {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px) scale(0.8);
    }

    20% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }

    80% {
        opacity: 1;
        transform: translateX(-50%) translateY(-10px) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-30px) scale(0.9);
    }
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right,
            var(--bg-primary) 0%,
            rgba(10, 10, 15, 0.7) 40%,
            rgba(10, 10, 15, 0.3) 70%,
            rgba(10, 10, 15, 0.1) 100%);
}

/* Override hero overlay for light themes */
[data-theme="beyaz"] .hero-overlay {
    background: linear-gradient(to right,
            var(--bg-primary) 0%,
            rgba(245, 245, 248, 0.75) 40%,
            rgba(245, 245, 248, 0.35) 70%,
            rgba(245, 245, 248, 0.1) 100%);
}

[data-theme="gunes"] .hero-overlay {
    background: linear-gradient(to right,
            var(--bg-primary) 0%,
            rgba(253, 248, 240, 0.75) 40%,
            rgba(253, 248, 240, 0.35) 70%,
            rgba(253, 248, 240, 0.1) 100%);
}

.hero-overlay::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to top, var(--bg-primary), transparent);
}

.hero-content {
    position: absolute;
    bottom: 80px;
    left: 40px;
    max-width: 550px;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: var(--badge-bg);
    color: var(--badge-text);
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 38px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 10px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 13px;
    color: var(--text-secondary);
}

.hero-meta .rating {
    color: var(--accent-secondary);
    font-weight: 600;
}

.hero-meta .dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-muted);
}

.hero-description {
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 22px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--accent-gradient);
    color: var(--btn-primary-text);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--accent-glow);
}

.btn-primary svg {
    width: 18px;
    height: 18px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--btn-secondary-bg);
    border: 1px solid var(--btn-secondary-border);
    color: var(--btn-secondary-text);
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 14px;
    transition: all var(--transition-normal);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
}

.btn-secondary svg {
    width: 18px;
    height: 18px;
}

/* Hero Thumbnails */
.hero-thumbnails {
    position: absolute;
    bottom: 30px;
    right: 40px;
    display: flex;
    gap: 10px;
    z-index: 3;
}

.hero-thumb {
    width: 110px;
    height: 65px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-normal);
    opacity: 0.5;
}

.hero-thumb.active {
    border-color: var(--accent-secondary);
    opacity: 1;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}

.hero-thumb:hover {
    opacity: 0.85;
    transform: translateY(-3px);
}

.hero-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== CONTENT SECTIONS ===== */
.content-area {
    padding: 24px 40px 60px;
}

.section {
    margin-bottom: 40px;
}

/* Performance: skip rendering offscreen sections */
.section,
.category-section,
.ad-section,
.episode-list-view {
    content-visibility: auto;
    contain-intrinsic-size: 600px 400px;
}

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

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 22px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.section-more {
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 4px;
}

.section-more:hover {
    color: var(--accent-primary);
}

.section-more svg {
    width: 16px;
    height: 16px;
}

/* ===== CAROUSEL ===== */
.carousel-wrapper {
    position: relative;
}

.carousel {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.carousel::-webkit-scrollbar {
    display: none;
}

html.no-smooth-scroll .carousel {
    scroll-behavior: auto;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(20, 20, 30, 0.9);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: all var(--transition-fast);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
}

.carousel-wrapper:hover .carousel-btn {
    opacity: 1;
    pointer-events: all;
}

.carousel-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: translateY(-60%) scale(1.1);
}

.carousel-btn svg {
    width: 18px;
    height: 18px;
}

.carousel-btn.prev {
    left: -14px;
}

.carousel-btn.next {
    right: -14px;
}

/* ===== ANIME CARD ===== */
.anime-card {
    flex-shrink: 0;
    width: 175px;
    cursor: pointer;
    transition: transform var(--transition-normal);
    contain: content;
}

.anime-card:hover {
    transform: translateY(-8px);
}

.card-poster {
    position: relative;
    width: 175px;
    height: 248px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 10px;
    background: var(--bg-card);
}

.card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.anime-card:hover .card-poster img {
    transform: scale(1.08);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    display: flex;
    align-items: flex-end;
    padding: 12px;
}

.anime-card:hover .card-overlay {
    opacity: 1;
}

.card-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--play-btn-bg);
    color: var(--play-btn-icon);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.anime-card:hover .card-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.card-play-btn svg {
    width: 20px;
    height: 20px;
    margin-left: 2px;
}

.watchlist-add-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(0,0,0,0.65);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s, background 0.15s;
    z-index: 3;
}
.anime-card:hover .watchlist-add-btn {
    opacity: 1;
}
.watchlist-add-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    background: var(--badge-bg);
    color: var(--badge-text);
    border-radius: var(--radius-sm);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.card-rating {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 7px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-secondary);
    display: flex;
    align-items: center;
    gap: 3px;
}

.card-rating svg {
    width: 11px;
    height: 11px;
    fill: var(--accent-secondary);
}

/* Progress bar for "continue watching" */
.card-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
}

.card-progress-bar {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 0 2px 0 0;
}

.card-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-info {
    font-size: 11.5px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-info .dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--text-muted);
}

/* Continue watching specific */
.continue-card .card-episode {
    position: absolute;
    bottom: 8px;
    left: 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero {
        height: 420px;
    }

    .hero-title {
        font-size: 30px;
    }

    .hero-thumbnails {
        display: none;
    }

    .content-area {
        padding: 20px 24px 40px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 0;
        border-right: none;
    }

    .sidebar.mobile-open {
        width: var(--sidebar-expanded);
    }

    .main-content {
        margin-left: 0;
    }

    .hero {
        height: 360px;
    }

    .hero-content {
        left: 20px;
        bottom: 60px;
        max-width: 100%;
        padding-right: 20px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-description {
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .content-area {
        padding: 16px 16px 40px;
    }

    .topbar {
        padding: 0 16px;
    }

    .mobile-menu-btn {
        display: flex !important;
    }

    .anime-card {
        width: 140px;
    }

    .card-poster {
        width: 140px;
        height: 198px;
    }
}

.mobile-menu-btn {
    display: none;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.mobile-menu-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* Mobile overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99;
}

.sidebar-overlay.active {
    display: block;
}

/* ===== SETTINGS PAGE ===== */
.settings-page {
    padding: 32px 40px 60px;
    max-width: 820px;
}

.settings-header {
    margin-bottom: 36px;
}

.settings-page-title {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.settings-page-title svg {
    color: var(--accent-primary);
}

.settings-page-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-left: 40px;
}

/* Settings Section */
.settings-section {
    margin-bottom: 40px;
}

.settings-section-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
}

.settings-section-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(138, 92, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.settings-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.settings-section-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ===== SYNC CARDS ===== */
.sync-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 16px;
    transition: all var(--transition-normal);
}

.sync-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.sync-card.connected {
    border-color: rgba(138, 92, 246, 0.25);
}

.sync-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sync-logo {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.anilist-logo {
    background: rgba(2, 169, 255, 0.12);
    color: #02A9FF;
}

.mal-logo {
    background: rgba(46, 81, 162, 0.15);
    color: #2E51A2;
}

.sync-info {
    flex: 1;
    min-width: 0;
}

.sync-name {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 3px;
}

.sync-desc {
    font-size: 12.5px;
    color: var(--text-muted);
}

/* Status Badge */
.sync-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.sync-status-badge.disconnected {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.sync-status-badge.connected {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.sync-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.sync-status-badge.connected .sync-status-dot {
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* Connected Info */
.sync-connected-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.sync-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.sync-user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.anilist-avatar {
    background: rgba(2, 169, 255, 0.15);
    color: #02A9FF;
}

.mal-avatar {
    background: rgba(46, 81, 162, 0.15);
    color: #2E51A2;
}

.sync-username {
    font-weight: 700;
    font-size: 15px;
    display: block;
    margin-bottom: 2px;
}

.sync-user-meta {
    font-size: 12px;
    color: var(--text-muted);
}

/* Stats */
.sync-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}

.sync-stat {
    flex: 1;
    text-align: center;
    padding: 12px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.sync-stat-value {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2px;
}

.sync-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Toggle Switches */
.sync-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sync-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.sync-toggle:hover {
    background: var(--bg-hover);
}

.sync-toggle-label {
    font-size: 13px;
    font-weight: 500;
}

.sync-toggle input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background: var(--text-muted);
    border-radius: 12px;
    transition: background var(--transition-fast);
    flex-shrink: 0;
}

.toggle-slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    transition: transform var(--transition-fast);
}

.sync-toggle input[type="checkbox"]:checked+.toggle-slider {
    background: var(--accent-primary);
}

.sync-toggle input[type="checkbox"]:checked+.toggle-slider::after {
    transform: translateX(20px);
}

/* Sync Actions */
.sync-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.sync-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 13px;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
    font-family: 'Inter', sans-serif;
    color: white;
}

.sync-btn.connect {
    background: var(--accent-gradient);
    box-shadow: 0 3px 12px var(--accent-glow);
}

.sync-btn.connect:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px var(--accent-glow);
}

.sync-btn.anilist-btn {
    background: linear-gradient(135deg, #02A9FF 0%, #0284C7 100%);
    box-shadow: 0 3px 12px rgba(2, 169, 255, 0.25);
}

.sync-btn.anilist-btn:hover {
    box-shadow: 0 5px 20px rgba(2, 169, 255, 0.35);
}

.sync-btn.mal-btn {
    background: linear-gradient(135deg, #2E51A2 0%, #1e3a7a 100%);
    box-shadow: 0 3px 12px rgba(46, 81, 162, 0.25);
}

.sync-btn.mal-btn:hover {
    box-shadow: 0 5px 20px rgba(46, 81, 162, 0.35);
}

.sync-btn.sync-now {
    background: rgba(138, 92, 246, 0.12);
    color: var(--accent-primary);
    border: 1px solid rgba(138, 92, 246, 0.25);
}

.sync-btn.sync-now:hover {
    background: rgba(138, 92, 246, 0.2);
    transform: translateY(-1px);
}

.sync-btn.disconnect {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.sync-btn.disconnect:hover {
    background: rgba(239, 68, 68, 0.18);
    transform: translateY(-1px);
}

.sync-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.sync-btn.full-width {
    width: 100%;
    justify-content: center;
    padding: 13px 24px;
    font-size: 14px;
}

/* Info Box */
.sync-info-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(6, 182, 212, 0.06);
    border: 1px solid rgba(6, 182, 212, 0.15);
    border-radius: var(--radius-md);
    margin-top: 20px;
}

.sync-info-box svg {
    flex-shrink: 0;
    color: var(--accent-secondary);
    margin-top: 1px;
}

.sync-info-box p {
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ===== CONNECT MODAL ===== */
.connect-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.connect-modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.connect-modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 420px;
    padding: 32px;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: modalSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.connect-modal-header {
    text-align: center;
    margin-bottom: 28px;
}

.connect-modal-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.connect-modal-logo .sync-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

/* Form */
.connect-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: all var(--transition-fast);
    outline: none;
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Loading & Success */
.connect-loading,
.connect-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 30px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner-small {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #22c55e;
}

.connect-success p {
    color: #22c55e;
    font-weight: 600;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-8px);
    }

    75% {
        transform: translateX(8px);
    }
}

/* Settings responsive */
@media (max-width: 768px) {
    .settings-page {
        padding: 20px 16px 40px;
    }

    .sync-card-header {
        flex-wrap: wrap;
        gap: 12px;
    }

    .sync-stats {
        flex-direction: column;
    }

    .sync-actions {
        flex-direction: column;
    }

    .sync-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== SKELETON LOADING ===== */
.skeleton-shimmer {
    background: var(--bg-card);
    background-image: linear-gradient(90deg,
            var(--bg-card) 0%,
            var(--bg-hover) 50%,
            var(--bg-card) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-card {
    pointer-events: none;
}

.skeleton-hero {
    min-height: 400px;
}

/* ===== 3-TIER SCORE BADGES ===== */
.card-scores {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    z-index: 2;
}

.score-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: var(--radius-sm);
    font-size: 10.5px;
    font-weight: 700;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    line-height: 1.4;
    white-space: nowrap;
}

.score-badge.mal {
    background: rgba(46, 81, 162, 0.85);
    color: #ffd700;
}

.score-badge.anilist {
    background: rgba(2, 120, 190, 0.85);
    color: #d8b4fe;
}

.score-badge.anifinity {
    background: rgba(138, 92, 246, 0.85);
    color: #c4f0fc;
}

.score-badge.anifinity.inactive {
    background: rgba(60, 60, 80, 0.75);
    color: var(--text-muted);
    font-size: 9px;
    font-weight: 500;
}

.score-badge .score-icon {
    font-size: 10px;
    line-height: 1;
}

.score-badge .score-val {
    font-size: 11px;
}

/* Hero Score Badges */
.hero-scores {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.hero-score-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-score-badge.mal {
    background: rgba(46, 81, 162, 0.6);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.hero-score-badge.anilist {
    background: rgba(2, 120, 190, 0.5);
    color: #d8b4fe;
    border: 1px solid rgba(216, 180, 254, 0.2);
}

.hero-score-badge.anifinity {
    background: rgba(138, 92, 246, 0.5);
    color: #c4f0fc;
    border: 1px solid rgba(196, 240, 252, 0.2);
}

.hero-score-badge .score-icon {
    font-size: 14px;
}

/* ===== ANIME DETAIL MODAL ===== */
.anime-detail-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1100;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.anime-detail-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.anime-detail-modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    animation: modalSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.anime-detail-modal::-webkit-scrollbar {
    width: 6px;
}

.anime-detail-modal::-webkit-scrollbar-track {
    background: transparent;
}

.anime-detail-modal::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 3px;
}

.detail-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    z-index: 10;
    cursor: pointer;
    border: none;
}

.detail-close-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    color: var(--text-primary);
}

/* Detail Banner */
.detail-banner {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.detail-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--bg-secondary) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
}

/* Detail Content */
.detail-content {
    padding: 0 28px 28px;
    margin-top: -60px;
    position: relative;
    z-index: 2;
}

.detail-top {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.detail-poster {
    width: 130px;
    height: 185px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    border: 2px solid var(--border-color);
}

.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-info {
    flex: 1;
    min-width: 0;
    padding-top: 65px;
}

.detail-title {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 6px;
}

.detail-title-jp {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.detail-meta-tag {
    padding: 3px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 11px;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* Detail Scores */
.detail-scores {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.detail-score-card {
    flex: 1;
    min-width: 120px;
    padding: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: center;
    transition: all var(--transition-fast);
}

.detail-score-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.detail-score-source {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-score-source .score-icon {
    font-size: 13px;
}

.detail-score-value {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.detail-score-card.mal .detail-score-value {
    color: #ffd700;
}

.detail-score-card.anilist .detail-score-value {
    color: #02A9FF;
}

.detail-score-card.anifinity .detail-score-value {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.detail-score-sub {
    font-size: 10.5px;
    color: var(--text-muted);
    margin-top: 4px;
}

.detail-score-card.inactive .detail-score-value {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Detail Synopsis */
.detail-synopsis {
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.detail-synopsis-toggle {
    color: var(--accent-primary);
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    border: none;
    background: none;
    padding: 0;
    margin-top: 6px;
    display: inline-block;
}

.detail-synopsis-toggle:hover {
    text-decoration: underline;
}

/* Detail Genres */
.detail-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.detail-genre-tag {
    padding: 4px 12px;
    background: var(--bg-active);
    border-radius: 20px;
    font-size: 11.5px;
    color: var(--accent-primary);
    font-weight: 600;
}

/* ===== REVIEW SECTION (inside detail modal) ===== */
.review-section {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.review-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.review-section-title .review-count {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

/* Star Rating Input */
.star-rating-input {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
}

.star-rating-input .star {
    width: 32px;
    height: 32px;
    cursor: pointer;
    color: var(--text-muted);
    transition: all var(--transition-fast);
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.star-rating-input .star svg {
    width: 24px;
    height: 24px;
    transition: transform var(--transition-fast);
}

.star-rating-input .star:hover svg {
    transform: scale(1.2);
}

.star-rating-input .star.active {
    color: #ffd700;
}

.star-rating-input .star.active svg {
    fill: #ffd700;
}

.star-rating-input .star.hover {
    color: #ffd700;
    opacity: 0.7;
}

.rating-display {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-primary);
    margin-left: 8px;
    align-self: center;
}

/* Comment Form */
.comment-form {
    margin-top: 12px;
    padding: 12px;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.comment-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }

/* Review Form */
.review-form {
    margin-bottom: 24px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.review-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.review-form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.review-textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    resize: vertical;
    outline: none;
    transition: border-color var(--transition-fast);
    margin-bottom: 10px;
}

.review-textarea::placeholder {
    color: var(--text-muted);
}

.review-textarea:focus {
    border-color: var(--accent-primary);
}

.review-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: var(--accent-gradient);
    color: var(--btn-primary-text);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 13px;
    transition: all var(--transition-normal);
    box-shadow: 0 3px 12px var(--accent-glow);
    border: none;
    cursor: pointer;
}

.review-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px var(--accent-glow);
}

.review-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.review-login-prompt {
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: center;
    margin-bottom: 24px;
}

.review-login-prompt p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.review-login-prompt a {
    color: var(--accent-primary);
    font-weight: 600;
    text-decoration: underline;
}

/* Review Cards */
.review-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 4px;
}

.review-list::-webkit-scrollbar {
    width: 4px;
}

.review-list::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 2px;
}

.review-card {
    padding: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.review-card:hover {
    border-color: rgba(138, 92, 246, 0.2);
}

.review-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.review-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.review-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--btn-primary-text);
    flex-shrink: 0;
}

.review-user-name {
    font-size: 13px;
    font-weight: 600;
}

.review-stars {
    display: flex;
    gap: 2px;
    color: #ffd700;
}

.review-stars svg {
    width: 14px;
    height: 14px;
}

.review-stars .empty {
    color: var(--text-muted);
    opacity: 0.3;
}

.review-text {
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.review-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
}

.review-empty {
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
    font-size: 13px;
}

.review-empty .empty-icon {
    font-size: 32px;
    margin-bottom: 8px;
    opacity: 0.5;
}

/* ===== SCHEDULE PAGE ===== */
.schedule-page {
    padding: 28px 40px 60px;
}

.schedule-header {
    margin-bottom: 28px;
}

.schedule-page-title {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.schedule-page-title svg {
    color: var(--accent-primary);
}

.schedule-page-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-left: 40px;
}

/* Day Tabs */
.day-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 28px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.day-tabs::-webkit-scrollbar {
    display: none;
}

.day-tab {
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    flex-shrink: 0;
}

.day-tab:hover {
    color: var(--text-primary);
    border-color: var(--accent-primary);
    background: var(--bg-hover);
}

.day-tab.active {
    background: var(--accent-gradient);
    color: var(--btn-primary-text, #ffffff);
    border-color: transparent;
    box-shadow: 0 3px 15px var(--accent-glow);
}

.day-tab .tab-day-short {
    display: none;
}

/* Schedule Grid */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.schedule-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-normal);
    contain: content;
}

.schedule-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-primary);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.schedule-card-poster {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.schedule-card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.schedule-card:hover .schedule-card-poster img {
    transform: scale(1.05);
}

.schedule-card-scores {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.schedule-card-info {
    padding: 12px 14px;
}

.schedule-card-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.schedule-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    color: var(--text-muted);
}

.schedule-card-meta .dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--text-muted);
}

.schedule-card-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--accent-secondary);
    font-weight: 600;
}

/* Schedule Loading */
.schedule-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 12px;
    color: var(--text-muted);
}

.schedule-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.schedule-empty .empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.4;
}

.schedule-empty p {
    font-size: 14px;
}

/* Schedule Responsive */
@media (max-width: 768px) {
    .schedule-page {
        padding: 20px 16px 40px;
    }

    .schedule-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }

    .day-tab {
        padding: 8px 14px;
        font-size: 12px;
    }

    .day-tab .tab-day-full {
        display: none;
    }

    .day-tab .tab-day-short {
        display: inline;
    }
}

/* Modal slide-up animation */
@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Detail modal responsive */
@media (max-width: 768px) {
    .anime-detail-modal {
        max-width: 100%;
        max-height: 95vh;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }

    .detail-content {
        padding: 0 16px 20px;
    }

    .detail-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .detail-poster {
        width: 110px;
        height: 156px;
    }

    .detail-info {
        padding-top: 10px;
    }

    .detail-title {
        font-size: 20px;
    }

    .detail-meta {
        justify-content: center;
    }

    .detail-scores {
        flex-direction: column;
    }

    .detail-score-card {
        min-width: auto;
    }
}

/* ===== CONTINUE WATCHING EMPTY STATE ===== */
.continue-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    min-height: 200px;
    width: 100%;
    text-align: center;
}

.continue-empty-emoji {
    font-size: 72px;
    margin-bottom: 16px;
    filter: grayscale(20%);
    animation: sadBounce 3s ease-in-out infinite;
}

@keyframes sadBounce {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-8px) scale(1.05);
    }
}

.continue-empty-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.continue-empty-sub {
    font-size: 14px;
    color: var(--accent-primary);
    font-weight: 500;
    opacity: 0.85;
}

/* Schedule empty state */
.schedule-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    text-align: center;
}

.schedule-empty .empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.schedule-empty p {
    font-size: 15px;
    color: var(--text-secondary);
}

.schedule-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    gap: 16px;
}

.schedule-loading p {
    font-size: 14px;
    color: var(--text-muted);
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== SCHEDULE PAGE ===== */
.schedule-page {
    padding: 24px;
    max-width: 1200px;
}

.schedule-header {
    margin-bottom: 28px;
}

.schedule-page-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.schedule-page-title svg {
    color: var(--accent-primary);
}

.schedule-page-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-left: 38px;
}

.day-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.day-tab {
    padding: 10px 20px;
    background: var(--card-bg);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.day-tab:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
    border-color: var(--accent-primary);
}

.day-tab.active {
    background: var(--accent-gradient);
    color: var(--btn-primary-text, #ffffff);
    border-color: transparent;
    box-shadow: 0 3px 15px var(--accent-glow);
}

.tab-day-short {
    display: none;
}

.tab-day-full {
    display: inline;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.schedule-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    contain: content;
}

.schedule-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    border-color: var(--accent-primary);
}

.schedule-card-poster {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.schedule-card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.schedule-card:hover .schedule-card-poster img {
    transform: scale(1.06);
}

.schedule-card-scores {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    z-index: 2;
}

.schedule-airing-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 10px;
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: var(--radius-sm);
    z-index: 2;
}

.schedule-card-info {
    padding: 14px 16px 18px;
}

.schedule-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.3;
}

.schedule-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.schedule-card-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
}

.schedule-genre-tag {
    padding: 2px 8px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary);
    font-size: 10px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.schedule-card-time {
    font-size: 11px;
    color: var(--accent-secondary);
    font-weight: 500;
}

.schedule-card-synopsis {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 4px;
}

@media (max-width: 768px) {
    .schedule-page {
        padding: 16px;
    }

    .schedule-page-title {
        font-size: 20px;
    }

    .schedule-page-subtitle {
        margin-left: 0;
    }

    .tab-day-short {
        display: inline;
    }

    .tab-day-full {
        display: none;
    }

    .day-tab {
        padding: 8px 14px;
        font-size: 12px;
    }

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

/* ===== SETTINGS PREFERENCES ===== */
.settings-pref-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 30px;
    margin-top: 20px;
}

.settings-pref-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.settings-pref-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.settings-pref-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

.title-lang-selector {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.title-lang-option {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.title-lang-option:hover {
    border-color: var(--accent-primary);
    background: var(--bg-hover);
}

/* Tokyo (default dark): mor buton + beyaz yazı */
.title-lang-option.active {
    background: #8a5cf6;
    border-color: #8a5cf6;
    color: #ffffff;
    font-weight: 700;
}

/* Siyah: açık gri buton + siyah yazı */
[data-theme="siyah"] .title-lang-option.active {
    background: #e0e0e0;
    border-color: #e0e0e0;
    color: #0a0a0a;
}

/* Beyaz: koyu lacivert buton + beyaz yazı */
[data-theme="beyaz"] .title-lang-option.active {
    background: #333344;
    border-color: #333344;
    color: #ffffff;
}

/* Güneş: altın sarı buton + koyu kahve yazı */
[data-theme="gunes"] .title-lang-option.active {
    background: #e6a817;
    border-color: #e6a817;
    color: #1a0f00;
}

.lang-flag {
    font-size: 16px;
    line-height: 1;
}

.title-lang-preview {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.preview-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.preview-value {
    font-size: 14px;
    color: var(--accent-primary);
    font-weight: 600;
}

@media (max-width: 600px) {
    .settings-pref-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .title-lang-selector {
        width: 100%;
    }

    .title-lang-option {
        flex: 1;
        justify-content: center;
    }
}

/* ===== ANIME DETAIL PAGE ===== */

/* Loading & Error */
.anime-detail-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 20px;
    gap: 16px;
    color: var(--text-muted);
}

.ad-error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 20px;
    text-align: center;
    color: var(--text-secondary);
}

.ad-error-icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.ad-error-state p {
    font-size: 16px;
    margin-bottom: 24px;
}

/* Hero Banner */
.ad-hero {
    position: relative;
    width: 100%;
    min-height: 520px;
    overflow: hidden;
}

.ad-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.ad-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(24px) brightness(0.35) saturate(1.3);
    transform: scale(1.15);
}

.ad-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(13, 13, 24, 0.3) 0%, var(--bg-primary) 100%);
    z-index: 1;
}

.ad-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 36px;
    padding: 60px 48px 48px;
    max-width: 1100px;
    margin: 0 auto;
}

.ad-hero-poster {
    flex-shrink: 0;
    width: 220px;
}

.ad-hero-poster img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.ad-hero-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 12px;
}

.ad-hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
}

.ad-hero-title-jp {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.ad-hero-meta-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.ad-hero-meta-line .dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--text-muted);
}

.ad-genre-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0;
}

.ad-genre-tag {
    padding: 4px 14px;
    background: rgba(138, 92, 246, 0.12);
    color: var(--accent-primary);
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    border: 1px solid rgba(138, 92, 246, 0.2);
}

/* Score Row */
.ad-score-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 10px 0 6px;
}

.ad-score-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
}

.ad-score-card.inactive {
    opacity: 0.55;
}

.ad-score-card.inactive .ad-score-val {
    font-size: 13px;
}

.ad-score-icon {
    font-size: 18px;
}

.ad-score-info {
    display: flex;
    flex-direction: column;
}

.ad-score-val {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
}

.ad-score-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.ad-rating-badge {
    padding: 6px 14px;
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.ad-follow-count {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--text-secondary);
}

.ad-follow-count svg {
    color: var(--accent-secondary);
}

/* Synopsis */
.ad-synopsis {
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--text-secondary);
    max-height: 120px;
    overflow-y: auto;
    padding-right: 8px;
    margin: 6px 0 12px;
}

.ad-synopsis::-webkit-scrollbar {
    width: 4px;
}

.ad-synopsis::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 4px;
}

/* Actions */
.ad-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.ad-watch-btn,
.ad-list-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.25s ease;
}

.ad-watch-btn svg,
.ad-list-btn svg {
    width: 16px;
    height: 16px;
}

/* Content Wrapper */
.ad-content-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 48px 60px;
}

/* Section */
.ad-section {
    margin-bottom: 40px;
}

.ad-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

/* Seasons Grid */
.ad-season-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.ad-season-grid::-webkit-scrollbar {
    display: none;
}

.ad-season-card {
    flex-shrink: 0;
    width: 160px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.ad-season-card:hover {
    transform: translateY(-4px);
}

.ad-season-poster {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-card);
}

.ad-season-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ad-season-card:hover .ad-season-poster img {
    transform: scale(1.05);
}

.ad-season-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 8px 8px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.ad-season-type {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ad-season-name {
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Additional Info Grid */
.ad-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.ad-info-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.ad-info-icon {
    font-size: 18px;
    margin-top: 2px;
}

.ad-info-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 2px;
}

.ad-info-value {
    font-size: 13px;
    color: var(--accent-primary);
    font-weight: 600;
}

.ad-info-value a {
    color: var(--accent-primary);
    text-decoration: none;
}

.ad-info-value a:hover {
    text-decoration: underline;
}

/* Ratings Section */
.ad-ratings-wrap {
    display: flex;
    gap: 32px;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    margin-bottom: 24px;
}

.ad-ratings-summary {
    flex-shrink: 0;
    text-align: center;
    min-width: 100px;
}

.ad-avg-score {
    font-size: 48px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    font-family: 'Outfit', sans-serif;
}

.ad-avg-label {
    font-size: 11px;
    color: var(--accent-primary);
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-top: 6px;
}

.ad-ratings-dist {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ad-dist-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ad-dist-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 32px;
    text-align: right;
}

.ad-dist-star {
    font-size: 12px;
}

.ad-dist-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
}

.ad-dist-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Similar Anime Grid */
.ad-similar-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.ad-similar-grid::-webkit-scrollbar {
    display: none;
}

.ad-similar-card {
    flex-shrink: 0;
    width: 155px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.ad-similar-card:hover {
    transform: translateY(-4px);
}

.ad-similar-poster {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-card);
}

.ad-similar-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ad-similar-card:hover .ad-similar-poster img {
    transform: scale(1.05);
}

.ad-similar-title {
    font-size: 12.5px;
    font-weight: 600;
    margin-top: 8px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== ANIME DETAIL RESPONSIVE ===== */
@media (max-width: 768px) {
    .ad-hero {
        min-height: auto;
    }

    .ad-hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 40px 20px 32px;
        gap: 20px;
    }

    .ad-hero-poster {
        width: 150px;
    }

    .ad-hero-title {
        font-size: 22px;
    }

    .ad-hero-meta-line {
        justify-content: center;
    }

    .ad-genre-list {
        justify-content: center;
    }

    .ad-score-row {
        justify-content: center;
    }

    .ad-synopsis {
        max-height: 100px;
        text-align: left;
    }

    .ad-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .ad-content-wrap {
        padding: 0 16px 40px;
    }

    .ad-ratings-wrap {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }

    .ad-info-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 16px;
    }

    .ad-season-card {
        width: 130px;
    }

    .ad-similar-card {
        width: 130px;
    }
}

/* ===== VIDEO MODAL & BACK BUTTON ===== */
.nav-back-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all var(--transition-fast);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    margin-right: 16px;
    cursor: pointer;
}

.nav-back-btn:hover {
    background: var(--bg-hover);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

/* ===== EPISODE LIST VIEW ===== */
.episode-list-view {
    padding: 24px 0;
    background: transparent;
    min-height: 400px;
    animation: fadeIn 0.3s ease;
}

.episode-list-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.btn-back-episodes {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.btn-back-episodes:hover {
    background: var(--bg-hover);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.episode-list-view h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.episode-list-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ep-item {
    display: flex;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 16px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    align-items: center;
    gap: 16px;
}

.ep-item:hover {
    background: var(--bg-hover);
    border-color: var(--border-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ep-thumb-wrapper {
    position: relative;
    width: 160px;
    aspect-ratio: 16/9;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-secondary);
    flex-shrink: 0;
}

.ep-thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ep-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.ep-item:hover .ep-play-overlay {
    opacity: 1;
}

.ep-play-overlay svg {
    width: 32px;
    height: 32px;
    color: #fff;
}

.ep-info {
    flex: 1;
}

.ep-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.ep-desc {
    font-size: 13px;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ep-date {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ===== FANSUB SELECTION ===== */
.fansub-selection-view {
    position: absolute;
    inset: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.btn-back-fansub {
    position: absolute;
    top: 24px;
    left: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.btn-back-fansub:hover {
    background: rgba(255, 255, 255, 0.1);
}

.fansub-modal-content {
    text-align: center;
    max-width: 600px;
    padding: 40px;
    color: #fff;
}

.fansub-modal-content h3 {
    font-size: 28px;
    margin-bottom: 8px;
    font-weight: 700;
}

.fansub-modal-content p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
}

.fansub-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.fansub-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 500;
    transition: all var(--transition-fast);
    font-size: 15px;
}

.fansub-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.fansub-btn.premium {
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(138, 92, 246, 0.2);
    position: relative;
    overflow: hidden;
    color: var(--accent-primary);
}

.fansub-btn.premium::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(30deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(30deg);
    }

    100% {
        transform: translateX(100%) rotate(30deg);
    }
}

/* ===== VIDEO PLAYER VIEW (Cinema Layout v2) ===== */
.video-player-view {
    --vp-bg: #0a0a0f;
    --vp-card: #111118;
    --vp-card-hover: #161620;
    --vp-border: rgba(255, 255, 255, 0.08);
    --vp-border-strong: rgba(255, 255, 255, 0.14);
    --vp-accent: var(--accent-primary, #e85d04);
    --vp-accent-2: #a855f7;
    --vp-text: #f1f5f9;
    --vp-text-dim: rgba(241, 245, 249, 0.55);
    --vp-radius-card: 14px;
    --vp-radius-chip: 999px;
    --vp-rail-width: 340px;

    position: relative;
    width: 100%;
    background: var(--vp-bg);
    color: var(--vp-text);
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 18px 20px 28px;
    animation: fadeIn 0.4s ease;
    border-radius: var(--radius-lg);
    min-height: 60vh;
}

.vp-top-bar {
    position: relative;
    width: 100%;
    padding: 6px 4px;
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 1;
    background: transparent;
    transition: opacity 0.2s ease;
}

.vp-back-btn {
    background: var(--vp-card);
    color: var(--vp-text);
    border: 1px solid var(--vp-border);
    cursor: pointer;
    border-radius: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.vp-back-btn:hover {
    background: var(--vp-card-hover);
    border-color: var(--vp-border-strong);
    transform: translateX(-2px);
}

.vp-info {
    flex: 1;
    min-width: 0;
}

.vp-info h2 {
    color: var(--vp-text);
    font-size: 18px;
    margin: 0 0 2px 0;
    font-weight: 700;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vp-info span {
    color: var(--vp-text-dim);
    font-size: 13px;
}

.vp-theater-btn {
    background: var(--vp-card);
    color: var(--vp-text);
    border: 1px solid var(--vp-border);
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.vp-theater-btn:hover {
    background: var(--vp-card-hover);
    border-color: var(--vp-border-strong);
}

.vp-theater-btn[aria-pressed="true"] {
    background: var(--vp-accent);
    border-color: var(--vp-accent);
    color: #fff;
}

/* Stage: 2-col grid (player | episodes rail) */
.vp-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--vp-rail-width);
    gap: 18px;
    align-items: start;
}

.vp-player-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.vp-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--vp-radius-card);
    overflow: hidden;
    isolation: isolate;
    box-shadow:
        0 0 0 1px var(--vp-border),
        0 30px 80px -40px rgba(0, 0, 0, 0.85),
        var(--afp-ambient-glow, 0 0 0 transparent);
    transition: box-shadow 0.4s ease;
}

.vp-video-screen {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
    background: #000;
    cursor: pointer;
}

.vp-clip-btn {
    position: absolute;
    bottom: 70px;
    right: 12px;
    z-index: 20;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 7px 12px;
    color: #fbbf24;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.2s, transform 0.2s;
}

.vp-clip-btn:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: translateY(-1px);
}

/* Meta-bar (telemetry chips) */
/* ── Danmaku Bar ─────────────────────────────── */
.vp-danmaku-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: var(--vp-card, #1a1a2e);
    border: 1px solid var(--vp-border, rgba(255,255,255,0.08));
    border-radius: 8px;
    margin-bottom: 8px;
}

.vp-danmaku-colors {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.vp-danmaku-color {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.15s, transform 0.15s;
    padding: 0;
}

.vp-danmaku-color.active,
.vp-danmaku-color:hover {
    border-color: var(--accent-primary, #a78bfa);
    transform: scale(1.2);
}

.vp-danmaku-input {
    flex: 1;
    background: var(--surface-secondary, rgba(255,255,255,0.06));
    border: 1px solid var(--vp-border, rgba(255,255,255,0.1));
    border-radius: 6px;
    color: var(--text-primary, #e2e8f0);
    font-size: 13px;
    padding: 6px 10px;
    outline: none;
    transition: border-color 0.15s;
}

.vp-danmaku-input:focus {
    border-color: var(--accent-primary, #a78bfa);
}

.vp-danmaku-send {
    flex-shrink: 0;
    background: var(--accent-primary, #a78bfa);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
}

.vp-danmaku-send:hover { opacity: 0.85; }

/* Danmaku player button icon (text-based fallback) */
.afp-icon--danmaku::before { content: '弾'; font-size: 14px; font-family: sans-serif; }
.afp-btn--danmaku { opacity: 0.6; transition: opacity 0.2s; }
.afp-btn--danmaku.afp-btn--active,
.afp-btn--danmaku[aria-pressed="true"] { opacity: 1; color: var(--accent-primary, #a78bfa); }

/* ── End Danmaku Bar ─────────────────────────── */

.vp-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.vp-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--vp-card);
    border: 1px solid var(--vp-border);
    border-radius: var(--vp-radius-chip);
    padding: 5px 12px;
    font-size: 12px;
    color: var(--vp-text-dim);
    line-height: 1.4;
    transition: border-color 0.2s, background 0.2s;
}

.vp-chip strong {
    color: var(--vp-text);
    font-weight: 700;
    font-size: 12px;
}

.vp-chip-label {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 10px;
}

.vp-chip-tech {
    border-color: rgba(168, 85, 247, 0.35);
    background: rgba(168, 85, 247, 0.08);
}

.vp-chip-tech strong {
    color: #c4b5fd;
}

.vp-chip-tech.active {
    border-color: var(--vp-accent-2);
    background: rgba(168, 85, 247, 0.15);
}

.vp-chip-tech.active strong {
    color: #ddd6fe;
}

/* Action row */
.vp-action-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.vp-action-spacer {
    flex: 1;
}

.vp-action-btn {
    background: var(--vp-card);
    color: var(--vp-text);
    border: 1px solid var(--vp-border);
    border-radius: 10px;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.2s ease;
}

.vp-action-btn:hover:not(:disabled) {
    background: var(--vp-card-hover);
    border-color: var(--vp-border-strong);
    transform: translateY(-1px);
}

.vp-action-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.vp-action-btn.primary {
    background: var(--vp-accent);
    border-color: var(--vp-accent);
    color: #fff;
}

.vp-action-btn.primary:hover:not(:disabled) {
    background: var(--accent-hover, #f48c06);
    transform: translateY(-1px);
}

.vp-fansub-indicator {
    background: var(--vp-card);
    border: 1px solid var(--vp-border);
    color: var(--vp-text);
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.vp-fansub-indicator::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2"><circle cx="12" cy="12" r="10"></circle><path d="M8 14s1.5 2 4 2 4-2 4-2"></path><line x1="9" y1="9" x2="9.01" y2="9"></line><line x1="15" y1="9" x2="15.01" y2="9"></line></svg>') no-repeat center / contain;
    opacity: 0.75;
}

.vp-fansub-indicator:hover {
    background: var(--vp-card-hover);
    border-color: var(--vp-border-strong);
}

/* Info card */
.vp-info-card {
    background: var(--vp-card);
    border: 1px solid var(--vp-border);
    border-radius: var(--vp-radius-card);
    overflow: hidden;
}

.vp-info-tabs {
    display: flex;
    gap: 4px;
    padding: 8px;
    border-bottom: 1px solid var(--vp-border);
    background: rgba(255, 255, 255, 0.02);
}

.vp-info-tab {
    background: transparent;
    border: none;
    color: var(--vp-text-dim);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vp-info-tab:hover {
    color: var(--vp-text);
    background: rgba(255, 255, 255, 0.04);
}

.vp-info-tab.active {
    color: var(--vp-text);
    background: rgba(232, 93, 4, 0.12);
}

.vp-info-body {
    padding: 18px 20px;
}

.vp-info-pane {
    display: none;
    animation: fadeIn 0.25s ease;
}

.vp-info-pane.active {
    display: block;
}

.vp-info-pane h3 {
    margin: 0 0 8px 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--vp-text);
}

.vp-info-text {
    color: var(--vp-text-dim);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.vp-info-empty {
    text-align: center;
    padding: 14px 0;
}

.vp-overview-meta {
    margin-top: 14px;
}

.vp-genre-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.vp-genre-tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--vp-border);
    border-radius: 999px;
    font-size: 11px;
    color: var(--vp-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Episodes rail */
.vp-episodes-rail {
    background: var(--vp-card);
    border: 1px solid var(--vp-border);
    border-radius: var(--vp-radius-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 120px);
    position: sticky;
    top: 18px;
}

.vp-rail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--vp-border);
    background: rgba(255, 255, 255, 0.02);
    flex-shrink: 0;
}

.vp-rail-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--vp-text);
    letter-spacing: -0.01em;
}

.vp-rail-count {
    font-size: 12px;
    color: var(--vp-text-dim);
}

.vp-rail-list {
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.vp-rail-list::-webkit-scrollbar {
    width: 6px;
}
.vp-rail-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 3px;
}

.vp-rail-item {
    display: flex;
    gap: 10px;
    padding: 8px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
    background: transparent;
    border: 1px solid transparent;
    text-align: left;
    color: var(--vp-text);
    font-family: inherit;
}

.vp-rail-item:hover {
    background: var(--vp-card-hover);
}

.vp-rail-item.active {
    background: rgba(232, 93, 4, 0.12);
    border-color: rgba(232, 93, 4, 0.4);
}

.vp-rail-thumb {
    flex-shrink: 0;
    width: 96px;
    aspect-ratio: 16 / 9;
    background: #0a0a0f;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.vp-rail-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vp-rail-thumb-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--vp-accent);
    width: 0%;
    transition: width 0.3s;
}

.vp-rail-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.vp-rail-num {
    font-size: 11px;
    font-weight: 700;
    color: var(--vp-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.vp-rail-item.active .vp-rail-num {
    color: var(--vp-accent);
}

.vp-rail-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--vp-text);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.vp-rail-duration {
    font-size: 11px;
    color: var(--vp-text-dim);
}

/* Theater mode hides episode rail */
body.theater-mode .vp-stage {
    grid-template-columns: minmax(0, 1fr);
}

body.theater-mode .vp-episodes-rail {
    display: none;
}

body.theater-mode .vp-info-card {
    display: none;
}

/* Tablet */
@media (max-width: 1100px) {
    .video-player-view {
        --vp-rail-width: 280px;
    }
    .vp-rail-thumb {
        width: 80px;
    }
}

/* Mobile: stack vertically */
@media (max-width: 900px) {
    .video-player-view {
        padding: 12px 12px 24px;
        gap: 12px;
    }
    .vp-stage {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }
    .vp-episodes-rail {
        position: relative;
        top: 0;
        max-height: 360px;
    }
    .vp-info h2 {
        font-size: 15px;
    }
    .vp-theater-btn .vp-theater-label {
        display: none;
    }
    .vp-action-btn span,
    .vp-fansub-indicator {
        font-size: 12px;
    }
    .vp-action-btn {
        padding: 8px 12px;
    }
}

/* Hidden controls state (mouse-idle) — keeps cinema chrome visible, only fades player overlay */
.video-player-view.vp-controls-hidden .vp-skip-btn,
.video-player-view.vp-controls-hidden .vp-clip-btn {
    opacity: 0;
    pointer-events: none;
}

/* ===== AD OVERLAY ===== */
.ad-overlay-view {
    position: absolute;
    inset: 0;
    z-index: 105;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    border-radius: var(--radius-lg);
}

.ad-content {
    text-align: center;
    color: #fff;
}

.ad-badge {
    display: inline-block;
    background: #eab308;
    color: #000;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.ad-content h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.ad-content p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
}

.ad-timer {
    font-size: 48px;
    font-weight: 800;
    color: var(--accent-primary);
    margin-bottom: 24px;
    font-variant-numeric: tabular-nums;
}

.ad-buffer-msg {
    color: #10b981 !important;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ad-buffer-msg::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-top-color: #10b981;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.nav-back-btn.floating {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 20;
    margin: 0;
}

.ad-empty-state {
    padding: 30px;
    text-align: center;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px dashed var(--border-color);
    color: var(--text-muted);
    font-size: 14px;
}

.ad-hero {
    position: relative;
}

/* ===== PROFILE PAGE STYLES ===== */
.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    min-height: calc(100vh - var(--topbar-height));
}

.profile-banner-wrap {
    position: relative;
    width: 100%;
    height: 320px;
    background: var(--bg-hover);
    overflow: hidden;
}

/* Gradient overlay to ensure text contrast */
.profile-banner-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, var(--bg-primary) 0%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

.profile-banner,
.profile-banner-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.profile-banner-placeholder {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Edit button inside banner */
.btn-edit-profile {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    z-index: 10;
}

.btn-edit-profile:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: scale(1.05);
}

.profile-info-section {
    display: flex;
    flex-direction: column;
    padding: 0 40px;
    position: relative;
    margin-top: -60px;
    z-index: 5;
}

@media (min-width: 768px) {
    .profile-info-section {
        flex-direction: row;
        align-items: flex-end;
        gap: 32px;
        margin-top: -80px;
    }
}

.profile-avatar-container {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 6px solid var(--bg-primary);
    background: var(--bg-card);
    flex-shrink: 0;
}

/* === AVATAR ANIMATED FRAMES === */
.frame-neon-purple {
    border: 3px solid #a855f7;
    box-shadow: 0 0 10px #a855f7, inset 0 0 10px #a855f7;
    animation: neon-pulse 2s infinite alternate;
}
@keyframes neon-pulse {
    0% {
        box-shadow: 0 0 5px #a855f7, inset 0 0 5px #a855f7;
    }
    100% {
        box-shadow: 0 0 20px #a855f7, inset 0 0 15px #a855f7;
    }
}

.frame-rgb-gamer {
    border: 3px solid transparent;
    background-origin: border-box;
    background-clip: padding-box, border-box;
    /* Use pseudo element for RGB border animation effect */
    position: relative;
}
.frame-rgb-gamer::before {
    content: '';
    position: absolute;
    top: -4px; left: -4px; right: -4px; bottom: -4px;
    background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    z-index: -1;
    border-radius: 50%;
    background-size: 400%;
    animation: rgb-border 20s linear infinite;
}
@keyframes rgb-border {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
}

.frame-fire {
    border: 3px solid #f97316; /* orange-500 */
    box-shadow: 0 0 15px #ea580c;
    position: relative;
}
.frame-fire::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px dashed #fef08a; /* yellow-200 */
    animation: fire-spin 3s linear infinite;
    mix-blend-mode: overlay;
}
@keyframes fire-spin {
    0% { transform: rotate(0deg) scale(1.0); border-color: #fef08a; opacity: 1;}
    50% { transform: rotate(180deg) scale(1.05); border-color: #fca5a5; opacity: 0.6;}
    100% { transform: rotate(360deg) scale(1.0); border-color: #fef08a; opacity: 1;}
}
/* ============================== */

.profile-avatar,
.profile-avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.profile-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    font-weight: 800;
    color: var(--text-muted);
    background: var(--bg-secondary);
}

.profile-status-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: var(--bg-secondary);
    border: 3px solid var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-details {
    margin-top: 16px;
    flex: 1;
}

@media (min-width: 768px) {
    .profile-details {
        margin-top: 0;
        margin-bottom: 24px;
    }
}

.profile-page-name {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    line-height: 1.2;
    text-shadow: 0 2px 8px var(--bg-primary);
    /* Ensures readability over any image */
}

.profile-page-bio {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0 0 16px 0;
    max-width: 600px;
    text-shadow: 0 1px 4px var(--bg-primary);
}

.profile-page-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: var(--text-muted);
}

.profile-page-stats b {
    color: var(--text-primary);
    font-weight: 700;
}

/* Edit Modal - Modern Theme Aware */
.edit-profile-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.edit-profile-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modern-ep-modal {
    background: var(--bg-card);
    border: none;
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    padding: 36px;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}

.edit-profile-modal-overlay.active .modern-ep-modal {
    transform: translateY(0) scale(1);
}

.ep-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 50%;
}

.ep-close:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
    transform: rotate(90deg);
}

.modern-modal-title {
    margin: 0 0 28px 0;
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    text-align: left;
}

.modern-fg {
    margin-bottom: 20px;
}

.modern-fg label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.modern-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Base modern input defaults */
.modern-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid transparent;
    /* Borderless look by default */
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
    font-weight: 500;
}

/* Ensure strong contrast with inside vs outside based on theme */
/* Dark Themes: Solid White Inputs with Black Text */
[data-theme="tokyo"] .modern-input,
[data-theme="siyah"] .modern-input,
[data-theme="gunes"] .modern-input,
html:not([data-theme="beyaz"]) .modern-input,
[data-theme="tokyo"] .file-upload-wrapper,
[data-theme="siyah"] .file-upload-wrapper,
[data-theme="gunes"] .file-upload-wrapper,
html:not([data-theme="beyaz"]) .file-upload-wrapper {
    background: #ffffff;
    color: #111111;
    border: none;
}

[data-theme="tokyo"] .modern-input::placeholder,
[data-theme="siyah"] .modern-input::placeholder,
[data-theme="gunes"] .modern-input::placeholder,
html:not([data-theme="beyaz"]) .modern-input::placeholder {
    color: #777777;
}

/* Light Theme: Solid Black/Dark Inputs with White Text */
[data-theme="beyaz"] .modern-input,
[data-theme="beyaz"] .file-upload-wrapper {
    background: #111111;
    color: #ffffff;
    border: none;
}

[data-theme="beyaz"] .modern-input::placeholder {
    color: #999999;
}

.modern-input:focus {
    box-shadow: 0 0 0 3px var(--accent-glow);
}

/* File Upload modern UI */
.file-upload-group {
    position: relative;
}

.file-upload-wrapper {
    position: relative;
    width: 100%;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s;
}

.file-upload-wrapper:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.modern-file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    z-index: 10;
}

.file-upload-ui {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    z-index: 5;
    pointer-events: none;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-upload-ui svg {
    color: inherit;
    opacity: 0.7;
    flex-shrink: 0;
}

/* Modern Save Button */
.btn-modern-save {
    background: var(--text-primary);
    color: var(--bg-primary);
    /* Inverts! White bg, black text in dark mode. Black bg, white text in light mode. */
    border: none;
    padding: 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}

.btn-modern-save:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

/* ===== PLAYLIST MODAL ===== */
.list-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    box-shadow: inset 0 0 150px rgba(0, 0, 0, 0.9) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 99999 !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.list-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modern-ep-modal {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 30px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.list-modal-overlay.active .modern-ep-modal {
    transform: translateY(0) scale(1);
}

.modern-modal-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
    text-align: center;
}

.ep-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.ep-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* ===== CUSTOM USER ID SETTINGS ===== */
.custom-id-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

.custom-id-info {
    flex: 1 1 300px;
}

.custom-id-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.custom-id-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.custom-id-form-area {
    flex: 2 1 400px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.custom-id-inputs {
    display: flex;
    gap: 15px;
}

.custom-id-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.custom-id-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.custom-id-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    outline: none;
    transition: all var(--transition-fast);
    width: 100%;
}

.custom-id-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.custom-id-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.custom-tag-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.custom-tag-prefix {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    font-size: 18px;
    font-weight: 600;
    pointer-events: none;
}

.custom-id-input.tag-input {
    padding-left: 32px;
}

.custom-id-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.custom-id-save-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    cursor: not-allowed;
    transition: all var(--transition-fast);
}

.custom-id-save-btn.active {
    background: var(--text-primary);
    color: var(--bg-primary);
    cursor: pointer;
}

.custom-id-save-btn.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
}

.custom-id-save-btn.active:active {
    transform: translateY(0);
}

.custom-id-feedback {
    font-size: 13px;
    min-height: 20px;
    font-weight: 500;
}

.custom-id-feedback.error {
    color: #ef4444;
}

.custom-id-feedback.success {
    color: #10b981;
}

/* Light Theme Contrast Support */
[data-theme="beyaz"] .custom-id-input,
[data-theme="gunes"] .custom-id-input {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="beyaz"] .custom-id-input:focus,
[data-theme="gunes"] .custom-id-input:focus {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.15);
}

[data-theme="beyaz"] .custom-id-input::placeholder,
[data-theme="gunes"] .custom-id-input::placeholder {
    color: rgba(0, 0, 0, 0.2);
}

[data-theme="beyaz"] .custom-id-save-btn,
[data-theme="gunes"] .custom-id-save-btn {
    background: rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="beyaz"] .custom-id-save-btn.active,
[data-theme="gunes"] .custom-id-save-btn.active {
    background: var(--text-primary);
    color: var(--bg-secondary);
}

/* ===== NOTIFICATION DROPDOWN ===== */
.notification-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--bg-card);
}

.notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    width: 320px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-fast);
    z-index: 100;
    overflow: hidden;
}

.notification-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-card);
}

.notification-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 700;
    margin: 0;
}

.mark-read-btn {
    font-size: 12px;
    color: var(--accent-secondary);
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.mark-read-btn:hover {
    text-decoration: underline;
}

.notification-list {
    max-height: 300px;
    overflow-y: auto;
}

.notification-list::-webkit-scrollbar {
    width: 6px;
}
.notification-list::-webkit-scrollbar-track {
    background: transparent;
}
.notification-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition-fast);
    cursor: pointer;
}

.notification-item:hover {
    background: var(--bg-hover);
}

.notification-item.unread {
    background: rgba(138, 92, 246, 0.05);
}

.notification-item.unread .notification-title {
    font-weight: 700;
    color: var(--text-primary);
}

.notification-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
}

.notification-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 4px;
    line-height: 1.4;
}

.notification-time {
    font-size: 11px;
    color: var(--text-muted);
}

.notification-empty {
    padding: 30px 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

.notification-footer {
    padding: 12px 16px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background: var(--bg-card);
}

.notification-footer a {
    font-size: 13px;
    color: var(--accent-secondary);
    font-weight: 600;
}

.notification-footer a:hover {
    text-decoration: underline;
}

/* ===== PROFILE LEVEL BADGE ===== */
.profile-level-badge {
    margin-top: 12px;
    margin-bottom: 12px;
    background: rgba(138, 92, 246, 0.08); /* Subtle accent */
    border: 1px solid rgba(138, 92, 246, 0.3);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: fit-content;
    min-width: 240px;
}

.level-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.level-icon {
    font-size: 18px;
}

.level-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: var(--accent-primary);
}

.level-progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.level-progress-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.level-xp-text {
    font-size: 12px;
    color: var(--text-muted);
    text-align: right;
    font-weight: 600;
}

/* ===== CUSTOM SELECT DROPDOWNS (Theme Adaptive) ===== */
.theme-select {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
    
    /* Default 'Tokyo' / Dark Themes (Slightly bright translucent boxes to fit 'beyaz kutucuklar' vibe in dark mode) */
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.theme-select:hover, .theme-select:focus {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
}

.theme-select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

/* Light Themes (Beyaz, Güneş) - Solid white boxes */
[data-theme="beyaz"] .theme-select,
[data-theme="gunes"] .theme-select {
    background: #ffffff;
    color: #333333;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

[data-theme="beyaz"] .theme-select:hover,
[data-theme="gunes"] .theme-select:hover,
[data-theme="beyaz"] .theme-select:focus,
[data-theme="gunes"] .theme-select:focus {
    background: #fdfdfd;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(138, 92, 246, 0.2);
}

/* Solid Black (Siyah) Theme Override - Adjusted opacity for pure black background */
[data-theme="siyah"] .theme-select {
    background: rgba(255, 255, 255, 0.08); 
    border: 1px solid rgba(255, 255, 255, 0.15);
}

@media (prefers-reduced-motion: reduce) {
    html:focus-within {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== Clip Overlay UI ===== */
.clip-overlay-view {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.clip-modal-content {
    background: var(--bg-surface);
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.clip-time-selectors input::-webkit-outer-spin-button,
.clip-time-selectors input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}
.clip-time-selectors input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* ===== PLAYER SETTINGS MENU REFACTOR ===== */
.vp-settings-menu {
    position: absolute;
    bottom: 50px;
    right: 15px;
    background: rgba(15, 15, 20, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px 0;
    min-width: 240px !important;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(20px) scale(0.85);
    transform-origin: bottom right;
    transition: opacity 0.3s ease-out, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), visibility 0.4s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.vp-settings-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    transition: opacity 0.3s ease-out, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.vp-settings-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    color: #e5e7eb;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    user-select: none;
}

.vp-settings-item:hover {
    background: rgba(255,255,255,0.08);
}

.vp-settings-item-left {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex: 1 !important;
    color: rgba(255,255,255,0.8);
}

.settings-select {
    background: transparent !important;
    color: var(--accent-primary) !important;
    border: none !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    outline: none !important;
    text-align: right !important;
    padding: 0 !important;
    margin: 0 !important;
    appearance: auto !important;
    flex-shrink: 0 !important;
    min-width: 60px !important;
}

.settings-select option {
    background: #1a1a24 !important;
    color: #fff !important;
}

/* Make sure the bottom right wrapper treats the menu correctly */
.vp-right {
    position: relative !important;
}

/* Modern setting button */
.vp-ctrl-btn.settings-btn.active {
    transform: rotate(90deg);
}
.vp-ctrl-btn.settings-btn {
    transition: transform 0.3s ease;
}

/* ===== PLAYER ENHANCEMENTS ===== */

/* Ensure relative positioning for overlays */
.vp-video-screen {
    position: relative;
    overflow: hidden;
}

/* Isolate AnifinityPlayer's inner z-index stack so anime-specific
   buttons (.vp-skip-btn z:60, #vpClipBtn z:20) always paint above
   the player root without fighting inner .afp-* layers. */
#anifinity-player .afp-root {
    isolation: isolate;
}

/* vp-top-bar smooth transition */
.vp-top-bar {
    transition: opacity 0.3s ease;
}

/* Skip Intro Button */
.vp-skip-btn {
    position: absolute;
    bottom: 80px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    z-index: 60;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.vp-skip-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}
.vp-skip-btn:hover {
    background: #fff;
    transform: translateX(0) scale(1.05);
}

/* Theater Mode */
body.theater-mode {
    overflow-x: hidden;
}
body.theater-mode .main-content {
    padding-top: 0 !important;
}
body.theater-mode #videoPlayerView {
    width: 100vw !important;
    max-width: none !important;
    height: 85vh !important;
    border-radius: 0 !important;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    background: #000;
}
body.theater-mode aside, 
body.theater-mode .topbar {
    opacity: 0.1;
    pointer-events: none;
    transition: opacity 0.5s;
}

/* Theater mode smooth transition */
body.theater-mode #videoPlayerView {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* MiniFinity empty state pulse animation */
@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 20px 10px rgba(99, 102, 241, 0); }
}

/* ===== THEME: OLED (True Black) ===== */
[data-theme="oled"] {
    --bg-primary: #000000;
    --bg-secondary: #050505;
    --bg-card: #0d0d0d;
    --bg-sidebar: rgba(0, 0, 0, 0.98);
    --bg-hover: rgba(255, 255, 255, 0.05);
    --bg-active: rgba(138, 92, 246, 0.12);

    --text-primary: #f0f0f5;
    --text-secondary: #8e8ea0;
    --text-muted: #4a4a5e;

    --accent-primary: #a78bfa;
    --accent-secondary: #22d3ee;
    --accent-gradient: linear-gradient(135deg, #a78bfa 0%, #22d3ee 100%);
    --accent-glow: rgba(167, 139, 250, 0.25);

    --border-color: rgba(255, 255, 255, 0.05);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.8);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.9);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 1);
    --bg-topbar: rgba(0, 0, 0, 0.9);

    --play-btn-bg: #000000;
    --play-btn-icon: #ffffff;

    --logo-moon: #ffffff;
    --logo-glow: rgba(167, 139, 250, 0.4);
    --logo-stars: #ffffff;
    --logo-text-color: linear-gradient(135deg, #a78bfa 0%, #22d3ee 100%);

    --badge-bg: var(--accent-primary);
    --badge-text: #000000;
    --btn-primary-text: #000000;
    --btn-secondary-bg: rgba(255, 255, 255, 0.07);
    --btn-secondary-border: rgba(255, 255, 255, 0.1);
    --btn-secondary-text: #f0f0f5;
}

/* ===== THEME: Kontrast Yüksek (High Contrast, WCAG AAA) ===== */
[data-theme="kontrast"] {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-card: #111111;
    --bg-sidebar: #000000;
    --bg-hover: rgba(255, 255, 255, 0.12);
    --bg-active: rgba(255, 255, 0, 0.15);

    --text-primary: #ffffff;
    --text-secondary: #dddddd;
    --text-muted: #aaaaaa;

    --accent-primary: #ffff00;
    --accent-secondary: #00ffff;
    --accent-gradient: linear-gradient(135deg, #ffff00 0%, #00ffff 100%);
    --accent-glow: rgba(255, 255, 0, 0.3);

    --border-color: rgba(255, 255, 255, 0.3);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.9);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.95);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 1);
    --bg-topbar: #000000;

    --play-btn-bg: #000000;
    --play-btn-icon: #ffffff;

    --logo-moon: #ffffff;
    --logo-glow: rgba(255, 255, 0, 0.4);
    --logo-stars: #ffff00;
    --logo-text-color: linear-gradient(135deg, #ffffff 0%, #ffff00 100%);

    --badge-bg: #ffff00;
    --badge-text: #000000;
    --btn-primary-text: #000000;
    --btn-secondary-bg: rgba(255, 255, 255, 0.1);
    --btn-secondary-border: rgba(255, 255, 255, 0.4);
    --btn-secondary-text: #ffffff;
}

/* ===== THEME: Dracula ===== */
[data-theme="dracula"] {
    --bg-primary: #282a36;
    --bg-secondary: #21222c;
    --bg-card: #2d2f3e;
    --bg-sidebar: rgba(40, 42, 54, 0.95);
    --bg-hover: rgba(255, 255, 255, 0.06);
    --bg-active: rgba(189, 147, 249, 0.15);

    --text-primary: #f8f8f2;
    --text-secondary: #6272a4;
    --text-muted: #44475a;

    --accent-primary: #bd93f9;
    --accent-secondary: #ff79c6;
    --accent-gradient: linear-gradient(135deg, #bd93f9 0%, #ff79c6 100%);
    --accent-glow: rgba(189, 147, 249, 0.3);

    --border-color: rgba(68, 71, 90, 0.6);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.7);
    --bg-topbar: rgba(33, 34, 44, 0.9);

    --play-btn-bg: rgba(40, 42, 54, 0.9);
    --play-btn-icon: #f8f8f2;

    --logo-moon: #f8f8f2;
    --logo-glow: rgba(189, 147, 249, 0.4);
    --logo-stars: #ff79c6;
    --logo-text-color: linear-gradient(135deg, #bd93f9 0%, #ff79c6 100%);

    --badge-bg: #bd93f9;
    --badge-text: #282a36;
    --btn-primary-text: #282a36;
    --btn-secondary-bg: rgba(255, 255, 255, 0.08);
    --btn-secondary-border: rgba(189, 147, 249, 0.25);
    --btn-secondary-text: #f8f8f2;
}

/* ===== THEME: Catppuccin Mocha ===== */
[data-theme="catppuccin"] {
    --bg-primary: #1e1e2e;
    --bg-secondary: #181825;
    --bg-card: #313244;
    --bg-sidebar: rgba(30, 30, 46, 0.95);
    --bg-hover: rgba(255, 255, 255, 0.06);
    --bg-active: rgba(203, 166, 247, 0.15);

    --text-primary: #cdd6f4;
    --text-secondary: #a6adc8;
    --text-muted: #6c7086;

    --accent-primary: #cba6f7;
    --accent-secondary: #89b4fa;
    --accent-gradient: linear-gradient(135deg, #cba6f7 0%, #89b4fa 100%);
    --accent-glow: rgba(203, 166, 247, 0.3);

    --border-color: rgba(108, 112, 134, 0.3);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.7);
    --bg-topbar: rgba(24, 24, 37, 0.9);

    --play-btn-bg: rgba(30, 30, 46, 0.9);
    --play-btn-icon: #cdd6f4;

    --logo-moon: #cdd6f4;
    --logo-glow: rgba(203, 166, 247, 0.4);
    --logo-stars: #89b4fa;
    --logo-text-color: linear-gradient(135deg, #cba6f7 0%, #89b4fa 100%);

    --badge-bg: #cba6f7;
    --badge-text: #1e1e2e;
    --btn-primary-text: #1e1e2e;
    --btn-secondary-bg: rgba(255, 255, 255, 0.08);
    --btn-secondary-border: rgba(203, 166, 247, 0.25);
    --btn-secondary-text: #cdd6f4;
}

/* ===== THEME: Nordic ===== */
[data-theme="nordic"] {
    --bg-primary: #2e3440;
    --bg-secondary: #272c36;
    --bg-card: #3b4252;
    --bg-sidebar: rgba(46, 52, 64, 0.95);
    --bg-hover: rgba(255, 255, 255, 0.06);
    --bg-active: rgba(129, 161, 193, 0.15);

    --text-primary: #eceff4;
    --text-secondary: #d8dee9;
    --text-muted: #4c566a;

    --accent-primary: #81a1c1;
    --accent-secondary: #88c0d0;
    --accent-gradient: linear-gradient(135deg, #81a1c1 0%, #88c0d0 100%);
    --accent-glow: rgba(129, 161, 193, 0.3);

    --border-color: rgba(76, 86, 106, 0.5);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.65);
    --bg-topbar: rgba(39, 44, 54, 0.9);

    --play-btn-bg: rgba(46, 52, 64, 0.9);
    --play-btn-icon: #eceff4;

    --logo-moon: #eceff4;
    --logo-glow: rgba(129, 161, 193, 0.4);
    --logo-stars: #88c0d0;
    --logo-text-color: linear-gradient(135deg, #81a1c1 0%, #88c0d0 100%);

    --badge-bg: #81a1c1;
    --badge-text: #2e3440;
    --btn-primary-text: #2e3440;
    --btn-secondary-bg: rgba(255, 255, 255, 0.08);
    --btn-secondary-border: rgba(129, 161, 193, 0.25);
    --btn-secondary-text: #eceff4;
}

/* ===== THEME: Accent overrides ===== */
[data-accent="blue"]   { --accent-primary: #3b82f6; --accent-secondary: #60a5fa; --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%); --accent-glow: rgba(59,130,246,0.3); }
[data-accent="green"]  { --accent-primary: #22c55e; --accent-secondary: #4ade80; --accent-gradient: linear-gradient(135deg, #22c55e 0%, #4ade80 100%); --accent-glow: rgba(34,197,94,0.3); }
[data-accent="pink"]   { --accent-primary: #ec4899; --accent-secondary: #f472b6; --accent-gradient: linear-gradient(135deg, #ec4899 0%, #f472b6 100%); --accent-glow: rgba(236,72,153,0.3); }
[data-accent="red"]    { --accent-primary: #ef4444; --accent-secondary: #f87171; --accent-gradient: linear-gradient(135deg, #ef4444 0%, #f87171 100%); --accent-glow: rgba(239,68,68,0.3); }
[data-accent="orange"] { --accent-primary: #f97316; --accent-secondary: #fb923c; --accent-gradient: linear-gradient(135deg, #f97316 0%, #fb923c 100%); --accent-glow: rgba(249,115,22,0.3); }
[data-accent="cyan"]   { --accent-primary: #06b6d4; --accent-secondary: #22d3ee; --accent-gradient: linear-gradient(135deg, #06b6d4 0%, #22d3ee 100%); --accent-glow: rgba(6,182,212,0.3); }
[data-accent="yellow"] { --accent-primary: #eab308; --accent-secondary: #facc15; --accent-gradient: linear-gradient(135deg, #eab308 0%, #facc15 100%); --accent-glow: rgba(234,179,8,0.3); }

/* ===== ACCESSIBILITY: Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
}

.a11y-large-font { font-size: 115% !important; }

.a11y-large-subtitle .afp-captions,
.a11y-large-subtitle [class*="caption"],
.a11y-large-subtitle [class*="subtitle"] {
    font-size: 125% !important;
}

/* ===== FAQ Section (index.html) — 2-col accordion grid ===== */
.faq-section {
    margin: 4rem auto 0;
    max-width: 1200px;
    padding: 0 1.5rem 4rem;
}
.faq-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 0 0.4rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary, #a78bfa) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.faq-subtitle {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin: 0 0 1.5rem;
    line-height: 1.5;
}
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 0.85rem;
    align-items: start;
}
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 0;
    overflow: hidden;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.faq-item:hover {
    border-color: var(--accent-primary, #a78bfa);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -12px rgba(167, 139, 250, 0.25);
}
.faq-item[open] {
    border-color: var(--accent-primary, #a78bfa);
    background: color-mix(in srgb, var(--accent-primary, #a78bfa) 6%, var(--bg-card));
}
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.97rem;
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    user-select: none;
    transition: color 0.2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "";
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background:
        linear-gradient(currentColor, currentColor) center/12px 2px no-repeat,
        linear-gradient(currentColor, currentColor) center/2px 12px no-repeat,
        color-mix(in srgb, var(--accent-primary, #a78bfa) 18%, transparent);
    color: var(--accent-primary, #a78bfa);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s ease;
}
.faq-item[open] summary {
    color: var(--accent-primary, #a78bfa);
}
.faq-item[open] summary::after {
    transform: rotate(45deg);
    background:
        linear-gradient(currentColor, currentColor) center/12px 2px no-repeat,
        color-mix(in srgb, var(--accent-primary, #a78bfa) 28%, transparent);
}
.faq-item summary:hover { color: var(--accent-primary, #a78bfa); }
.faq-item summary:focus-visible {
    outline: 2px solid var(--accent-primary, #a78bfa);
    outline-offset: -2px;
}
.faq-answer {
    padding: 0 1.25rem 1.1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
    animation: faq-slide-in 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes faq-slide-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 640px) {
    .faq-section { padding: 0 1rem 3rem; margin-top: 2.5rem; }
    .faq-title { font-size: 1.35rem; }
    .faq-grid { grid-template-columns: 1fr; }
    .faq-item summary { padding: 0.9rem 1rem; font-size: 0.93rem; }
    .faq-answer { padding: 0 1rem 1rem; font-size: 0.88rem; }
}
@media (prefers-reduced-motion: reduce) {
    .faq-item, .faq-item summary::after, .faq-answer { transition: none; animation: none; }
}

/* ===== Push Follow Button ===== */
.schedule-follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.schedule-follow-btn:hover {
    background: var(--accent-primary);
    color: #fff;
    border-color: var(--accent-primary);
}
.schedule-follow-btn.following {
    background: var(--accent-primary);
    color: #fff;
    border-color: var(--accent-primary);
}
/* ===== WATCH PARTY (Faz 6.4) ===== */

/* Party bar — shown above player when ?room= in URL */
.wt-party-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 14px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, rgba(138, 92, 246, 0.15), rgba(56, 189, 248, 0.10));
    border: 1px solid rgba(138, 92, 246, 0.35);
    border-radius: var(--radius-sm, 8px);
    font-size: 0.85rem;
    flex-wrap: wrap;
}
.wt-party-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.wt-party-icon { font-size: 1.1rem; }
.wt-party-role-badge {
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(138, 92, 246, 0.25);
    color: var(--accent-primary, #8a5cf6);
}
.wt-party-members {
    color: var(--text-muted, #888);
    font-size: 0.8rem;
}
.wt-party-actions { display: flex; gap: 8px; }
.wt-party-btn {
    padding: 5px 11px;
    border-radius: var(--radius-sm, 8px);
    border: 1px solid var(--border-color, rgba(255,255,255,0.1));
    background: var(--bg-elevated, rgba(255,255,255,0.05));
    color: var(--text-primary, #fff);
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.15s, border-color 0.15s;
}
.wt-party-btn:hover { background: rgba(138, 92, 246, 0.2); border-color: var(--accent-primary, #8a5cf6); }
.wt-party-leave-btn { color: #f87171; border-color: rgba(248, 113, 113, 0.3); }
.wt-party-leave-btn:hover { background: rgba(248, 113, 113, 0.15); border-color: #f87171; }

/* Toast notification */
.wt-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-elevated, #1e1e2e);
    border: 1px solid var(--border-color, rgba(255,255,255,0.1));
    color: var(--text-primary, #fff);
    padding: 10px 18px;
    border-radius: var(--radius-sm, 8px);
    font-size: 0.85rem;
    z-index: 9999;
    pointer-events: none;
    animation: wtFadeInUp 0.2s ease, wtFadeOut 0.3s ease 2.7s forwards;
}
@keyframes wtFadeInUp {
    from { opacity: 0; transform: translateX(-50%) translateY(8px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes wtFadeOut {
    to { opacity: 0; transform: translateX(-50%) translateY(4px); }
}

/* Watch-together room cards host badge */
.wt-room-badge.active {
    background: rgba(138, 92, 246, 0.25);
    color: var(--accent-primary, #8a5cf6);
}

.schedule-follow-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== FAQ Section ===== */
.faq-section {
    padding: 3rem 1.5rem 4rem;
    max-width: 1100px;
    margin: 0 auto;
}
.faq-inner { width: 100%; }
.faq-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--text-primary, #f0f0f5);
    margin: 0 0 0.5rem;
}
.faq-subtitle {
    color: var(--text-muted, rgba(240,240,245,.55));
    font-size: 0.92rem;
    margin: 0 0 2rem;
}
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 0.75rem;
}
.faq-item {
    background: var(--bg-elevated, rgba(255,255,255,.04));
    border: 1px solid var(--border-color, rgba(255,255,255,.08));
    border-radius: var(--radius-md, 12px);
    overflow: hidden;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.faq-item:hover {
    border-color: var(--accent-primary, #a78bfa);
    box-shadow: 0 4px 20px rgba(167,139,250,.08);
}
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-primary, #f0f0f5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--accent-primary, #a78bfa);
    flex-shrink: 0;
    transition: transform .22s ease;
    line-height: 1;
}
.faq-item[open] summary::after {
    transform: rotate(45deg);
}
.faq-answer {
    padding: 0 1.25rem 1rem;
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--text-secondary, rgba(240,240,245,.75));
    border-top: 1px solid var(--border-color, rgba(255,255,255,.06));
    animation: faqOpen .2s ease;
}
@keyframes faqOpen {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 720px) {
    .faq-grid { grid-template-columns: 1fr; }
    .faq-section { padding: 2rem 1rem 3rem; }
}

/* ===== Prefers-reduced-motion ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =====================================================================
 * Faz 13 — A11y AAA pass
 * Skip-link, focus-visible sweep, prefers-contrast, prefers-color-scheme,
 * user-configurable animation levels.
 * ===================================================================== */

/* Skip link — first focusable, jumps to #main-content */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0.5rem;
    z-index: 10002;
    padding: 0.6rem 1rem;
    background: var(--accent-primary, #8a5cf6);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    border-radius: 6px;
    transition: top 0.15s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
    top: 0.5rem;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Focus-visible sweep — uniform ring across interactive elements */
*:focus-visible {
    outline: 2px solid var(--accent-primary, #8a5cf6);
    outline-offset: 2px;
}
button:focus-visible,
a:focus-visible,
[role="button"]:focus-visible,
[tabindex]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    box-shadow:
        0 0 0 3px rgba(138, 92, 246, 0.30),
        0 0 0 5px rgba(0, 0, 0, 0.25);
}
:focus:not(:focus-visible) { outline: none; }

/* prefers-contrast: more — WCAG AAA helper */
@media (prefers-contrast: more) {
    :root {
        --text-primary: #ffffff;
        --text-secondary: #f0f0f5;
        --text-muted: #d0d0d8;
        --bg-card: #000000;
        --border-color: rgba(255, 255, 255, 0.5);
        --accent-primary: #ffff00;
    }
    :root[data-theme="beyaz"],
    :root[data-theme="gunes"] {
        --text-primary: #000000;
        --text-secondary: #1a1a1a;
        --text-muted: #333333;
        --bg-card: #ffffff;
        --border-color: rgba(0, 0, 0, 0.5);
        --accent-primary: #0000ff;
    }
    button,
    a,
    [role="button"],
    [tabindex]:focus-visible {
        outline: 3px solid var(--accent-primary);
        outline-offset: 2px;
    }
}

/* prefers-color-scheme — boot-time hint (JS in app.js handles localStorage gate) */
@media (prefers-color-scheme: light) {
    :root:not([data-theme]) {
        color-scheme: light;
    }
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        color-scheme: dark;
    }
}

/* Animation level — user setting overrides OS prefers-reduced-motion.
 * Applied via body class set by js/app.js boot:
 *   body.animation-full     — default
 *   body.animation-reduced  — ~10ms durations
 *   body.animation-off      — disable all
 */
body.animation-reduced *,
body.animation-reduced *::before,
body.animation-reduced *::after {
    animation-duration: 0.01s !important;
    transition-duration: 0.01s !important;
}
body.animation-off *,
body.animation-off *::before,
body.animation-off *::after {
    animation: none !important;
    transition: none !important;
}
