/* ==========================================================================
   MeteFLIX CSS Design System - Premium Streaming UI
   ========================================================================== */

/* Design Tokens & Reset */
:root {
    --bg-primary: #141414;
    --bg-secondary: #000000;
    --bg-tertiary: #181818;
    --bg-card: rgba(24, 24, 24, 0.6);
    
    --primary: #e50914;
    --primary-hover: #f40612;
    --primary-glow: rgba(229, 9, 20, 0.4);
    
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1a6;
    --text-muted: #6e6e73;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-focus: rgba(229, 9, 20, 0.5);
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-display: 'Outfit', sans-serif;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.85);
    
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    
    --border-radius-sm: 6px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
}

[data-theme="light"] {
    --bg-primary: #f5f5f7;
    --bg-secondary: #ffffff;
    --bg-tertiary: #ebebeb;
    --bg-card: rgba(255, 255, 255, 0.8);
    
    --primary: #e50914;
    --primary-hover: #ff1f2d;
    --primary-glow: rgba(229, 9, 20, 0.15);
    
    --text-primary: #1d1d1f;
    --text-secondary: #424245;
    --text-muted: #86868b;
    
    --border-color: rgba(0, 0, 0, 0.1);
    --border-color-focus: rgba(229, 9, 20, 0.5);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    color: var(--primary-hover);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: #fff;
    text-decoration: underline;
}

button, select, input {
    font-family: inherit;
    outline: none;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

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

/* Utility Classes */
.hidden {
    display: none !important;
}

/* ==========================================================================
   TOAST SYSTEM
   ========================================================================== */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    background: rgba(23, 23, 25, 0.95);
    border-left: 4px solid var(--primary);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-lg);
    color: var(--text-primary);
    padding: 16px 20px;
    min-width: 300px;
    max-width: 420px;
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(10px);
    pointer-events: auto;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
    opacity: 0;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.success {
    border-left-color: #10b981;
}

.toast.error {
    border-left-color: var(--primary);
}

.toast-message {
    font-size: 0.9rem;
    font-weight: 500;
}

/* ==========================================================================
   AUTH SCREEN (Login / Register)
   ========================================================================== */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(circle at center, #1c1012 0%, #080809 100%);
    padding: 24px;
    overflow: hidden;
}

.auth-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(229, 9, 20, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

.auth-card-wrapper {
    width: 100%;
    max-width: 440px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auth-logo {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 3rem;
    letter-spacing: -1.5px;
    margin-bottom: 32px;
    text-shadow: 0 4px 20px rgba(229, 9, 20, 0.4);
    user-select: none;
    cursor: default;
}

.auth-logo span:first-child {
    color: var(--text-primary);
}

.auth-logo span:last-child {
    color: var(--primary);
    background: linear-gradient(to right, #e50914, #ff333d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-form-card {
    width: 100%;
    background: rgba(23, 23, 25, 0.75);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
    display: none;
    transform: scale(0.96);
    opacity: 0;
    transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.auth-form-card.active {
    display: block;
    transform: scale(1);
    opacity: 1;
}

.auth-form-card h2 {
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 800;
    margin-bottom: 28px;
    letter-spacing: -0.5px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.ad-warning {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(229, 9, 20, 0.85);
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 5;
    pointer-events: none;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.ad-warning i {
    width: 16px;
    height: 16px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    width: 18px;
    height: 18px;
    pointer-events: none;
    transition: color var(--transition-fast);
}

.input-wrapper input {
    width: 100%;
    background: rgba(10, 10, 11, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 14px 16px 14px 48px;
    color: #fff;
    font-size: 0.95rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.pwd-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.pwd-toggle:hover {
    color: var(--primary);
}

.input-wrapper input:focus {
    border-color: var(--border-color-focus);
    box-shadow: 0 0 0 4px var(--primary-glow);
    background: rgba(10, 10, 11, 0.9);
}

.input-wrapper input:focus + i {
    color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--border-radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    user-select: none;
}

.btn-primary {
    background: linear-gradient(135deg, #e50914 0%, #b80710 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff1f2d 0%, #d40813 100%);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.45);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    backdrop-filter: blur(10px);
}

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

.btn-block {
    display: flex;
    width: 100%;
}

.auth-switch {
    margin-top: 24px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   APP SHELL LAYOUT & HEADER
   ========================================================================== */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: linear-gradient(to bottom, rgba(15, 15, 16, 0.95) 0%, rgba(15, 15, 16, 0.8) 70%, rgba(15, 15, 16, 0) 100%);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4%;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background var(--transition-fast);
}

.app-header.scrolled {
    background: rgba(15, 15, 16, 0.98);
    border-bottom: 1px solid var(--border-color);
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 32px;
}

.app-logo {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.8rem;
    letter-spacing: -1px;
    cursor: pointer;
    user-select: none;
}

.app-logo span:first-child {
    color: #fff;
}

.app-logo span:last-child {
    color: var(--primary);
}

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

.nav-item {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.nav-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
    color: #fff;
    font-weight: 700;
    background: rgba(229, 9, 20, 0.15);
    border: 1px solid rgba(229, 9, 20, 0.3);
}

/* Search Box Container */
.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2px;
    max-width: 280px;
    transition: all var(--transition-normal);
}

.search-box:focus-within {
    border-color: var(--border-color-focus);
    box-shadow: 0 0 0 3px var(--primary-glow);
    max-width: 320px;
    background: rgba(0, 0, 0, 0.6);
}

.search-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.search-btn:hover {
    color: #fff;
}

.search-box input {
    background: none;
    border: none;
    color: #fff;
    font-size: 0.85rem;
    padding: 6px 12px 6px 4px;
    width: 180px;
    transition: width var(--transition-normal);
}

.search-box:focus-within input {
    width: 220px;
}

.search-clear {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.search-clear:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* User Profile Menu */
.user-profile-menu {
    position: relative;
}

.profile-trigger {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 30px;
    transition: background var(--transition-fast);
}

.profile-trigger:hover {
    background: rgba(255, 255, 255, 0.06);
}

.avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary) 0%, #5c0408 100%);
    border-radius: 50%;
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    text-transform: uppercase;
}

.username-display {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-trigger .chevron {
    color: var(--text-secondary);
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
}

.profile-trigger:focus-within .chevron {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 50px;
    right: 0;
    width: 220px;
    background: rgba(23, 23, 25, 0.95);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
    padding: 8px;
    z-index: 110;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.dropdown-menu.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-header {
    padding: 12px 16px;
}

.dropdown-name {
    font-weight: 700;
    color: #fff;
    font-size: 0.95rem;
}

.dropdown-status {
    font-size: 0.75rem;
    color: var(--primary-hover);
    font-weight: 600;
    margin-top: 2px;
}

.dropdown-menu hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 6px 0;
}

.dropdown-item {
    width: 100%;
    background: none;
    border: none;
    padding: 10px 16px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    text-align: left;
    transition: all var(--transition-fast);
}

.dropdown-item i {
    width: 16px;
    height: 16px;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.dropdown-item.logout-item {
    color: #ff4d4d;
}

.dropdown-item.logout-item:hover {
    background: rgba(255, 77, 77, 0.1);
    color: #ff6666;
}

/* ==========================================================================
   APP CONTENT SECTIONS
   ========================================================================== */
.app-main-content {
    flex: 1;
    padding-top: 72px;
}

.tab-section {
    display: none;
    animation: fadeIn var(--transition-normal);
    padding: 0 4% 60px 4%;
}

.tab-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   HERO BANNER COMPONENT
   ========================================================================== */
.hero-banner {
    position: relative;
    height: 550px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    margin-top: 24px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-lg);
}

.hero-backdrop-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-backdrop-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(15, 15, 16, 0.95) 20%, rgba(15, 15, 16, 0.6) 50%, rgba(15, 15, 16, 0.1) 100%),
                linear-gradient(to top, rgba(15, 15, 16, 1) 0%, rgba(15, 15, 16, 0) 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 550px;
    padding: 48px;
}

.hero-badge {
    background: rgba(229, 9, 20, 0.25);
    border: 1px solid var(--primary);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin: 16px 0;
    letter-spacing: -1.5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.hero-overview {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 32px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-play {
    background: #fff;
    color: #000;
}

.btn-play:hover {
    background: rgba(255,255,255,0.85);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,255,255,0.15);
}

/* ==========================================================================
   CATALOG ROWS & CARDS
   ========================================================================== */
.row-container {
    margin-bottom: 40px;
}

.row-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 18px;
    letter-spacing: -0.3px;
    padding-left: 2px;
}

.row-cards-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.cards-row {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 8px 4px 16px 4px;
    width: 100%;
}

.cards-row::-webkit-scrollbar {
    display: none; /* Hide scrollbars inside rows for clean TV-like looks */
}

.row-scroll-btn {
    position: absolute;
    width: 44px;
    height: 44px;
    background: rgba(23, 23, 25, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transition: opacity var(--transition-fast), background var(--transition-fast);
    pointer-events: none;
}

.row-cards-wrapper:hover .row-scroll-btn {
    opacity: 1;
    pointer-events: auto;
}

.row-scroll-btn:hover {
    background: var(--bg-tertiary);
}

.row-scroll-btn.left {
    left: -20px;
}

.row-scroll-btn.right {
    right: -20px;
}

/* Media Cards */
.media-card {
    flex: 0 0 auto;
    width: 190px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    position: relative;
}

.media-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 255, 255, 0.2);
}

.card-poster {
    position: relative;
    width: 100%;
    height: 270px;
    background-color: var(--bg-tertiary);
    overflow: hidden;
}

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

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

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

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

.play-circle-btn {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
    transform: scale(0.8);
    transition: transform var(--transition-fast);
}

.media-card:hover .play-circle-btn {
    transform: scale(1);
}

.badge-item-type {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(15, 15, 16, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    color: var(--text-primary);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 5;
}

.card-details {
    padding: 12px;
}

.card-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Skeletons */
.card-skeleton {
    flex: 0 0 auto;
    width: 190px;
    height: 330px;
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-tertiary) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: loadingSkeleton 1.5s infinite;
    border-radius: var(--border-radius-md);
}

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

/* ==========================================================================
   GRID LAYOUTS
   ========================================================================== */
.section-header {
    margin-top: 40px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
}

.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
    padding: 8px 2px;
}

/* ==========================================================================
   EMPTY STATES
   ========================================================================== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    text-align: center;
}

.empty-icon {
    width: 64px;
    height: 64px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
    max-width: 320px;
}

.go-home-btn {
    padding: 10px 20px;
}

/* ==========================================================================
   HISTORY LIST
   ========================================================================== */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.history-item {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 16px;
    gap: 20px;
    cursor: pointer;
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.history-item:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
}

.history-poster {
    width: 60px;
    height: 90px;
    border-radius: var(--border-radius-sm);
    object-fit: cover;
    background-color: var(--bg-tertiary);
}

.history-info {
    flex: 1;
}

.history-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.history-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    gap: 12px;
    align-items: center;
}

.history-type {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 700;
}

.history-play-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.history-item:hover .history-play-icon {
    background: var(--primary);
    color: #fff;
}

/* ==========================================================================
   USER PROFILE SECTION
   ========================================================================== */
.profile-card {
    max-width: 600px;
    margin: 40px auto 0 auto;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.profile-header-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.3) 0%, rgba(92, 4, 8, 0.1) 100%);
    z-index: 1;
}

.profile-main-info {
    position: relative;
    z-index: 2;
    padding: 60px 32px 24px 32px;
    display: flex;
    align-items: flex-end;
    gap: 24px;
}

.avatar-large {
    width: 96px;
    height: 96px;
    background: linear-gradient(135deg, var(--primary) 0%, #5c0408 100%);
    border-radius: 50%;
    color: #fff;
    font-weight: 800;
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    border: 4px solid var(--bg-secondary);
    text-transform: uppercase;
}

.profile-meta h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

.profile-role {
    color: var(--primary-hover);
    font-size: 0.9rem;
    font-weight: 700;
    margin-top: 2px;
}

.profile-id {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.profile-divider {
    border: none;
    border-top: 1px solid var(--border-color);
}

.profile-stats {
    display: flex;
    padding: 24px 32px;
    gap: 48px;
}

.stat-box {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 2px;
}

.profile-actions-area {
    padding: 32px;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.15);
}

.profile-actions-area h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

.settings-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 16px 20px;
    border-radius: var(--border-radius-md);
    margin-bottom: 24px;
}

.settings-label {
    display: flex;
    gap: 16px;
    align-items: center;
}

.settings-label i {
    color: var(--text-muted);
    width: 20px;
    height: 20px;
}

.settings-label h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
}

.settings-label p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.logout-btn-full {
    width: 100%;
    background: rgba(255, 77, 77, 0.08);
    color: #ff6666;
    border: 1px solid rgba(255, 77, 77, 0.15);
}

.logout-btn-full:hover {
    background: rgba(255, 77, 77, 0.16);
    color: #ff8080;
    border-color: rgba(255, 77, 77, 0.3);
}

/* ==========================================================================
   MODALS (Player & Passwords)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 11, 0.9);
    backdrop-filter: blur(12px);
}

.modal-content-wrapper {
    position: relative;
    width: 100%;
    max-width: 960px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    z-index: 1005;
    animation: modalScaleUp var(--transition-normal);
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1010;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.modal-close-btn:hover {
    background: var(--primary);
    transform: scale(1.05);
}

@keyframes modalScaleUp {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.modal-body {
    max-height: 90vh;
    overflow-y: auto;
}

/* Player Container */
.player-iframe-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
}

.player-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.player-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    z-index: 2;
    transition: opacity var(--transition-normal);
}

.spinner {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(229, 9, 20, 0.15);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Details inside Modal */
.media-details-area {
    padding: 32px;
}

.header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

.theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

.details-main-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
}

.badge-type {
    background: rgba(229, 9, 20, 0.15);
    border: 1px solid rgba(229, 9, 20, 0.3);
    color: var(--primary-hover);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 10px;
}

.modal-item-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.btn-fav-icon {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.btn-fav-icon:hover {
    background: rgba(229, 9, 20, 0.1);
    border-color: rgba(229, 9, 20, 0.3);
    color: var(--primary-hover);
    transform: scale(1.05);
}

.btn-fav-icon.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-fav-icon.active i {
    fill: #fff;
}

.details-description h3, .series-selector-container h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}

.details-description p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Episode Selectors for Series/Animes */
.series-selector-container {
    background: rgba(0,0,0,0.15);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 24px;
    margin-bottom: 24px;
}

.selector-controls {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.select-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.select-wrapper label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.form-select {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.episodes-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}
.episodes-grid::-webkit-scrollbar {
    width: 6px;
}
.episodes-grid::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.episode-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    padding: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
}

.episode-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.episode-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 10px var(--primary-glow);
}

/* Netflix Episode Styles */
.netflix-episode-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: background var(--transition-fast);
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.netflix-episode-card:hover {
    background: rgba(255, 255, 255, 0.05);
}

.netflix-episode-card.active {
    background: rgba(255, 255, 255, 0.1);
}

.ep-thumbnail-container {
    position: relative;
    width: 160px;
    height: 90px;
    flex-shrink: 0;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

.ep-number {
    position: absolute;
    bottom: 4px;
    left: 8px;
    font-size: 2rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.8);
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    margin: 0;
}

.ep-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.netflix-episode-card:hover .ep-play-overlay,
.netflix-episode-card.active .ep-play-overlay {
    opacity: 1;
}

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

.ep-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ep-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ep-title {
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
}

.ep-duration {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.ep-overview {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.next-episode-container {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
}

.btn-next-ep {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 10px 16px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.btn-next-ep:hover {
    background: #fff;
    color: #000;
    transform: scale(1.05);
}

.btn-next-ep i {
    width: 20px;
    height: 20px;
}

/* Password Modal Custom */
.pwd-modal-content {
    position: relative;
    width: 100%;
    max-width: 400px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 36px;
    z-index: 1005;
    animation: modalScaleUp var(--transition-normal);
}

.pwd-modal-content h2 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 24px;
}

/* ==========================================================================
   APP FOOTER
   ========================================================================== */
.app-footer {
    border-top: 1px solid var(--border-color);
    background: #0a0a0b;
    padding: 40px 4%;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-content p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--text-secondary);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 900px) {
    .hero-banner {
        height: 450px;
    }
    .hero-title {
        font-size: 2.6rem;
    }
    .app-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(10, 10, 11, 0.95);
        backdrop-filter: blur(10px);
        border-top: 1px solid var(--border-color);
        display: flex;
        justify-content: space-around;
        padding: 10px 0;
        z-index: 1000;
        margin: 0;
    }
    .app-nav .nav-item {
        font-size: 0.8rem;
        padding: 8px;
        margin: 0;
    }
    .app-main-content {
        padding-bottom: 80px; /* Space for bottom nav */
    }
}

@media (max-width: 768px) {
    .header-left {
        gap: 16px;
    }
    .app-header {
        padding: 0 16px;
    }
    .search-box {
        max-width: 150px;
    }
    .search-box:focus-within {
        max-width: 180px;
    }
    .search-box input {
        width: 100px;
    }
    .search-box:focus-within input {
        width: 130px;
    }
    .username-display {
        display: none;
    }
    .hero-banner {
        height: auto;
        padding-top: 50%;
        margin-top: 12px;
    }
    .hero-content {
        padding: 24px;
        background: linear-gradient(to top, rgba(15,15,16,1) 0%, rgba(15,15,16,0.8) 70%, rgba(15,15,16,0.3) 100%);
        max-width: 100%;
        margin-top: -80px;
        z-index: 3;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-overview {
        font-size: 0.9rem;
    }
    .profile-main-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-top: 40px;
    }
    .profile-stats {
        justify-content: center;
    }
    .netflix-episode-card {
        flex-direction: column;
        align-items: stretch;
    }
    .ep-thumbnail-container {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }
    .next-episode-container {
        position: static;
        margin-top: 10px;
        width: 100%;
    }
    .btn-next-ep {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   NETFLIX STYLE REDESIGN (LOGIN & PLAYER)
   ========================================================================== */
.auth-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

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

.auth-bg .bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.8) 100%);
}

.auth-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 24px 3%;
    z-index: 10;
}

.auth-logo-netflix {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 2.8rem;
    letter-spacing: -1.5px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    user-select: none;
}

.auth-logo-netflix span:first-child {
    color: var(--primary);
}

.auth-logo-netflix span:last-child {
    color: var(--primary);
}

.auth-container.netflix-style {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: transparent;
}

.netflix-style .auth-form-card {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 4px;
    padding: 60px 68px 40px;
    width: 100%;
    max-width: 450px;
}

.netflix-style .auth-form-card h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 28px;
    color: #fff;
}

.netflix-input {
    position: relative;
    margin-bottom: 16px;
}

.netflix-input input {
    width: 100%;
    background: #333333;
    border: none;
    border-radius: 4px;
    padding: 22px 20px 6px;
    color: #fff;
    font-size: 1rem;
    height: 55px;
}

.netflix-input input:focus {
    background: #454545;
    outline: none;
}

.netflix-input label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.95rem;
    color: #8c8c8c;
    transition: all 0.2s ease;
    pointer-events: none;
    margin: 0;
}

.netflix-input input:focus ~ label,
.netflix-input input:not(:placeholder-shown) ~ label {
    top: 14px;
    font-size: 0.75rem;
}

.netflix-input .pwd-toggle {
    right: 20px;
}

.btn-netflix {
    background: #e50914;
    color: #fff;
    padding: 16px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    margin-top: 24px;
    margin-bottom: 12px;
    border: none;
}

.btn-netflix:hover {
    background: #c11119;
    transform: none;
    box-shadow: none;
}

.auth-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #b3b3b3;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #737373;
}

.forgot-pwd {
    color: #b3b3b3;
}

.forgot-pwd:hover {
    text-decoration: underline;
    color: #b3b3b3;
}

.netflix-style .auth-switch {
    text-align: left;
    margin-top: 60px;
    color: #737373;
    font-size: 1rem;
}

.netflix-style .auth-switch a {
    color: #fff;
    font-weight: 400;
}

/* Netflix Audio/Subtitle Selector */
.audio-subtitle-btn {
    background: transparent;
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.2s;
}

.audio-subtitle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.audio-subtitle-dropdown {
    position: absolute;
    bottom: 60px; /* Adjust based on player controls */
    right: 32px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid #333;
    border-radius: 4px;
    min-width: 250px;
    display: none;
    z-index: 1050;
    box-shadow: 0 8px 20px rgba(0,0,0,0.8);
}

.audio-subtitle-dropdown.active {
    display: flex;
}

.dropdown-col {
    flex: 1;
    padding: 20px 0;
}

.dropdown-col h4 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0 24px;
    margin-bottom: 16px;
}

.dropdown-list {
    list-style: none;
}

.dropdown-list li {
    padding: 8px 24px;
    color: #808080;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: color 0.2s;
}

.dropdown-list li:hover {
    color: #fff;
    text-decoration: underline;
}

.dropdown-list li.active {
    color: #fff;
    font-weight: 600;
}

.dropdown-list li.active::before {
    content: "✓";
    font-size: 1rem;
    margin-left: -20px;
    position: absolute;
}

.player-controls-top-right {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1020;
}

/* ==========================================================================
   REFINEMENTS & YOUTUBE STYLE MOBILE NAV
   ========================================================================== */

/* Login Refinements */
.netflix-style .auth-form-card {
    backdrop-filter: blur(15px);
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

.auth-bg .bg-overlay {
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0, rgba(0, 0, 0, 0.3) 60%, rgba(0, 0, 0, 0.9) 100%);
}

.netflix-input input {
    background: rgba(51, 51, 51, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.05);
}

.netflix-input input:focus {
    background: rgba(69, 69, 69, 0.9);
    border-color: rgba(255,255,255,0.2);
}

/* YouTube Style Bottom Nav */
@media (max-width: 900px) {
    .app-header .app-nav {
        display: none !important; /* Force hide old bottom nav */
    }
    
    .bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(15, 15, 15, 0.98);
        backdrop-filter: blur(10px);
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: 6px 0 10px;
        z-index: 1000;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding-bottom: env(safe-area-inset-bottom, 10px);
    }
    
    .bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        color: #aaaaaa;
        cursor: pointer;
        padding: 4px;
        transition: color 0.2s, transform 0.2s;
        gap: 3px;
        flex: 1;
    }
    
    .bottom-nav-item:active {
        transform: scale(0.95);
    }
    
    .bottom-nav-item:hover, .bottom-nav-item.active {
        color: #ffffff;
    }
    
    .bottom-nav-item i {
        width: 24px;
        height: 24px;
        stroke-width: 1.5px;
    }
    
    .bottom-nav-item.active i {
        stroke-width: 2.5px;
    }
    
    /* Specific overrides for YouTube style filled icons if possible, otherwise thicker stroke */
    
    .bottom-nav-item span {
        font-size: 0.65rem;
        font-weight: 400;
        font-family: Roboto, Arial, sans-serif; /* YouTube uses Roboto/Arial */
    }
    
    .bottom-nav-item .avatar-small {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: var(--primary);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.75rem;
        font-weight: 700;
        border: 2px solid transparent;
        transition: border-color 0.2s;
    }
    
    .bottom-nav-item.active .avatar-small {
        border-color: #fff;
    }
    
    .app-main-content {
        padding-bottom: 60px !important;
    }
}

/* Mobile Tweaks for Movie Cards */
@media (max-width: 600px) {
    .media-card {
        width: 130px;
    }
    
    .card-poster {
        height: 195px;
    }
    
    .card-skeleton {
        width: 130px;
        height: 240px;
    }
    
    .grid-layout {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 16px;
    }
    
    .cards-row {
        gap: 12px;
    }
    
    .row-title {
        font-size: 1.2rem;
    }
}
