:root {
    --bg-core: #0a0e27;
    --bg-secondary: #1a1f3a;
    --text-primary: #ffffff;
    --text-secondary: #b0b8cc;
    --accent: #ffc107;
    --accent-secondary: #ff6b35;
    --accent-tertiary: #1dd1a1;
    --ambient-color: #ffc107;
    --glass-bg: rgba(26, 31, 58, 0.7);
    --glass-border: rgba(255, 193, 7, 0.15);
    --nav-height: 70px;
    --font-main: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    box-sizing: border-box;
}

img {
    content-visibility: auto;
}

body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0a0e27 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overscroll-behavior: none;
}

/* --- AMBIENT LIGHTING (GPU Optimized) --- */
#ambient-glow {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, var(--ambient-color) 0%, transparent 60%);
    opacity: 0.08;
    z-index: -1;
    pointer-events: none;
    transition: opacity var(--transition-slow);
    will-change: opacity;
}

/* --- GLASS LAYOUT --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4%;
    box-sizing: border-box;
    z-index: 1000;
    transition: transform var(--transition-base);
    will-change: transform;
    box-shadow: 0 4px 20px rgba(255, 193, 7, 0.1);
}

.logo {
    font-size: 28px;
    font-weight: 900;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 0 15px rgba(255, 193, 7, 0.3);
    transition: all var(--transition-base);
}

.logo:hover {
    transform: scale(1.05);
    text-shadow: 0 0 25px rgba(255, 193, 7, 0.5);
}

.logo i {
    color: var(--accent);
    font-size: 32px;
}

/* Search Bar (Floating) */
.search-box {
    position: relative;
    background: rgba(255, 193, 7, 0.05);
    border: 2px solid rgba(255, 193, 7, 0.2);
    border-radius: 50px;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    width: 300px;
    transition: all var(--transition-base);
}

.search-box:focus-within {
    background: rgba(255, 193, 7, 0.15);
    border-color: var(--accent);
    box-shadow: 0 0 25px rgba(255, 193, 7, 0.4);
    width: 350px;
    transform: translateY(-2px);
}

.search-box input {
    background: transparent;
    border: none;
    color: #fff;
    width: 100%;
    outline: none;
    font-size: 14px;
    transition: text-shadow var(--transition-fast);
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-box input:focus {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.search-box button {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
}

/* --- MAIN CONTAINER --- */
.main-container {
    padding-top: calc(var(--nav-height) + 20px);
    padding-bottom: 80px;
    max-width: 1600px;
    margin: 0 auto;
    width: 92%;
    opacity: 0;
    /* For fade-in animation */
    animation: contentFadeIn 0.8s forwards;
}

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

/* --- FILTER CHIPS --- */
.filter-chips {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    overflow-x: auto;
    padding-bottom: 5px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 8px 20px;
    border-radius: 100px;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 14px;
    font-weight: 500;
    scroll-snap-align: start;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
    -webkit-user-select: none;
    user-select: none;
}

.chip:hover,
.chip.active {
    background: #fff;
    color: #000;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.chip:active {
    transform: scale(0.95);
}

/* --- GRID SYSTEM --- */

/* Home Layout with Sidebar */
.home-layout {
    display: flex;
    gap: 30px;
}

.home-main {
    flex: 1;
    min-width: 0;
}

.home-sidebar {
    width: 320px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-title i {
    color: var(--accent);
}

.sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    padding: 10px;
    border-radius: 10px;
    transition: all var(--transition-fast);
    background: rgba(255, 255, 255, 0.03);
    -webkit-user-select: none;
    user-select: none;
}

.sidebar-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.sidebar-item:active {
    transform: translateX(3px) scale(0.98);
}

.sidebar-rank {
    font-size: 20px;
    font-weight: 800;
    color: var(--accent);
    width: 28px;
    text-align: center;
}

.sidebar-item img {
    width: 50px;
    height: 75px;
    object-fit: cover;
    border-radius: 6px;
}

.sidebar-meta h4 {
    font-size: 14px;
    color: #fff;
    margin: 0 0 4px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-meta p {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
}

@media (max-width: 1024px) {
    .home-layout {
        flex-direction: column;
    }

    .home-sidebar {
        width: 100%;
        position: static;
    }

    .sidebar-list {
        flex-direction: row;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 10px;
    }

    .sidebar-item {
        min-width: 200px;
        flex-shrink: 0;
    }
}

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

.video-card {
    text-decoration: none;
    cursor: pointer;
    transition: transform var(--transition-base), box-shadow var(--transition-base), filter var(--transition-base);
    background: transparent;
    border-radius: 14px;
    padding: 0;
    border: 1px solid transparent;
    display: block;
    width: 100%;
    box-sizing: border-box;
    will-change: transform;
    -webkit-user-select: none;
    user-select: none;
}

/* Grid item wrapper - size controlled by parent context */
.grid-item-wrapper {
    position: relative;
}

/* In main grid context, wrapper fills cell */
.video-grid .grid-item-wrapper {
    width: 100%;
}

@media (hover: hover) and (pointer: fine) {
    .video-card:hover {
        transform: translateY(-12px) scale(1.05);
        border-color: var(--accent);
        background: rgba(255, 193, 7, 0.05);
        box-shadow: 0 20px 50px rgba(255, 193, 7, 0.25), 0 0 30px rgba(255, 193, 7, 0.1);
        filter: brightness(1.1);
    }

    .video-card:hover .thumbnail img {
        transform: scale(1.12);
    }

    .video-card:hover .card-meta-overlay {
        background: linear-gradient(to top, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.85) 40%, transparent 100%);
        padding: 24px 12px 12px 12px;
    }
}

.video-card:active {
    transform: translateY(-2px) scale(0.98);
}

.thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 2/3;
    background: #1a1f3a;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 193, 7, 0.1);
    display: flex;
    flex-direction: column;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
    will-change: transform;
    position: absolute;
    inset: 0;
}

.card-meta-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 40%, transparent 100%);
    padding: 20px 12px 12px 12px;
    z-index: 5;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Badges */
.badge-type {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.badge-series {
    background: rgba(229, 9, 20, 0.9);
}

/* Red */
.badge-movie {
    background: rgba(58, 123, 213, 0.9);
}

/* Blue */

.badge-quality {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--accent-tertiary);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    border: 1px solid rgba(251, 215, 29, 0.3);
}

.meta {
    margin-top: 12px;
}

.card-meta-overlay .video-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: auto;
    line-height: 1.3em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.card-meta-overlay .video-stats {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.video-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em;
    line-height: 1.4em;
}

.video-stats {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* --- WATCH PAGE --- */
.watch-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.player-column {
    flex: 1;
}

.sidebar-column {
    width: 340px;
    background: linear-gradient(135deg, rgba(26, 31, 58, 0.4), rgba(26, 31, 58, 0.2));
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgba(255, 193, 7, 0.1);
    backdrop-filter: blur(10px);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.player-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 193, 7, 0.15);
    border: 2px solid rgba(255, 193, 7, 0.1);
}

.player-wrapper iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border: none;
    border-radius: 16px;
}

/* Player Watermark */
.player-watermark {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 14px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.4);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    z-index: 100;
    letter-spacing: 2px;
    user-select: none;
}

/* Fullscreen watermark persistence */
.player-wrapper:fullscreen .player-watermark,
.player-wrapper:-webkit-full-screen .player-watermark {
    position: fixed;
    top: 20px;
    right: 30px;
    font-size: 18px;
}

/* Ensure watermark stays on top of iframe */
.player-watermark {
    z-index: 2147483647 !important;
    /* Max Z-Index */
}

.watch-info {
    margin-top: 30px;
    background: linear-gradient(135deg, rgba(26, 31, 58, 0.5), rgba(26, 31, 58, 0.3));
    padding: 28px;
    border-radius: 16px;
    border: 1px solid rgba(255, 193, 7, 0.1);
    backdrop-filter: blur(10px);
}

.tag-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 15px 0;
}

.tag {
    font-size: 13px;
    background: rgba(255, 193, 7, 0.08);
    padding: 8px 16px;
    border-radius: 50px;
    color: #eee;
    text-decoration: none;
    transition: all var(--transition-base);
    border: 1px solid rgba(255, 193, 7, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.tag:hover {
    background: var(--accent);
    color: #0a0e27;
    box-shadow: 0 6px 15px rgba(255, 193, 7, 0.3);
    border-color: var(--accent);
}

.year-tag {
    background: rgba(255, 193, 7, 0.1);
    color: var(--accent);
    border-color: rgba(255, 193, 7, 0.3);
}

.year-tag:hover {
    background: var(--accent);
    color: #0a0e27;
}

/* Episode Grid (Ambient Style) */
.episodes-container {
    margin-top: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.ep-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.ep-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: #ccc;
    text-align: center;
    padding: 8px 0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: 0.2s;
}

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

/* Season Row Layout V2 */
.ep-container-v2 {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding: 5px;
}

.season-row {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.season-label {
    min-width: 60px;
    font-size: 14px;
    font-weight: 900;
    color: var(--accent);
    text-transform: uppercase;
    background: rgba(255, 193, 7, 0.1);
    padding: 6px 10px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.ep-list {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ep-btn {
    min-width: 45px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 31, 58, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.ep-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent);
}

/* Responsive - Better Breakpoints */
@media (max-width: 1200px) {
    .watch-layout {
        gap: 30px;
    }

    .sidebar-column {
        width: 320px;
    }
}

@media (max-width: 1000px) {
    .watch-layout {
        flex-direction: column;
    }

    .sidebar-column {
        width: 100%;
        position: static;
        top: auto;
    }

    .search-box {
        display: none;
    }

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

    .card-meta-overlay {
        padding: 16px 10px 10px 10px;
    }

    .card-meta-overlay .video-title {
        font-size: 13px;
    }

    .card-meta-overlay .video-stats {
        font-size: 11px;
    }

    .search-box.active {
        display: flex;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: #1a1a1a;
        z-index: 999;
        border-radius: 0;
        padding: 15px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
        border-bottom: 1px solid var(--glass-border);
        animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

@media (max-width: 640px) {
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 12px;
    }

    .main-container {
        width: 96%;
    }

    .card-meta-overlay {
        padding: 14px 8px 8px 8px;
    }

    .card-meta-overlay .video-title {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .card-meta-overlay .video-stats {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .video-card {
        padding: 5px;
    }

    .card-meta-overlay {
        padding: 12px 7px 7px 7px;
    }

    .card-meta-overlay .video-title {
        font-size: 11px;
        margin-bottom: 3px;
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }

    .card-meta-overlay .video-stats {
        font-size: 9px;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

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

/* Optimized Loading Spinner */
.loader {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 40px auto;
    will-change: transform;
}

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

@keyframes spinLoader {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Related Videos (Sidebar) */
.related-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.related-card {
    display: flex;
    gap: 12px;
    text-decoration: none;
    padding: 12px;
    border-radius: 10px;
    transition: all var(--transition-base);
    background: rgba(255, 193, 7, 0.03);
    cursor: pointer;
    border: 1px solid transparent;
}

.related-card:hover {
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.2);
    transform: translateX(4px);
}

.related-card .thumbnail {
    width: 100px;
    aspect-ratio: 2/3;
    flex-shrink: 0;
    border-radius: 6px;
    box-shadow: none;
}

.related-card .meta {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 4px;
}

.related-card .video-title {
    font-size: 14px;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    font-weight: 500;
}

.related-card .video-stats {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 6px;
}

/* --- ADAVNCED FEATURES --- */

/* Optimized Skeleton Pulse */
.skeleton {
    background: linear-gradient(90deg, #1a1a1a 25%, #252525 50%, #1a1a1a 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.2s ease-in-out infinite;
    border-radius: 8px;
    will-change: background-position;
}

@keyframes skeleton-loading {

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

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

.skeleton-card {
    aspect-ratio: 2/3;
    width: 100%;
    margin-bottom: 10px;
}

.skeleton-text {
    height: 14px;
    width: 80%;
    margin-bottom: 8px;
    border-radius: 4px;
}

.skeleton-rect {
    width: 100%;
    height: 100%;
}

.skeleton-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.skeleton-grid-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skeleton-grid-item .skeleton-card {
    aspect-ratio: 16/9;
    margin-bottom: 0;
}

.skeleton-grid-item .skeleton-text {
    height: 16px;
    width: 100%;
}

.skeleton-grid-item .skeleton-text:last-child {
    width: 70%;
}

.skeleton-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skeleton-group h3 {
    height: 24px;
    width: 200px;
    background: linear-gradient(90deg, #1a1a1a 25%, #252525 50%, #1a1a1a 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.2s ease-in-out infinite;
    border-radius: 6px;
}

/* Watchlist Buttons */
.btn-outline {
    background: rgba(255, 193, 7, 0.05);
    border: 2px solid rgba(255, 193, 7, 0.3);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition-base);
    -webkit-user-select: none;
    user-select: none;
    font-weight: 600;
}

.btn-outline:hover {
    background: rgba(255, 193, 7, 0.15);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.2);
}

.btn-outline:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.btn-outline:active {
    transform: scale(0.95);
}

.btn-outline.active {
    color: #0a0e27;
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

.btn-outline:disabled,
.btn-outline.disabled {
    color: #666;
    border-color: #555;
    background: rgba(100, 100, 100, 0.2);
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-outline:disabled:hover,
.btn-outline.disabled:hover {
    background: rgba(100, 100, 100, 0.2);
    transform: none;
}

.btn-outline.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn-outline.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spinLoader 0.8s linear infinite;
}

.section-title {
    font-size: 24px;
    font-weight: 900;
    margin: 50px 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title i {
    color: var(--accent);
    margin-right: 12px;
    font-size: 28px;
}

/* Optimized Scrollable Row for History/Watchlist */
.horizontal-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 10px;
    scrollbar-width: none;
    align-items: flex-start;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

.horizontal-scroll::-webkit-scrollbar {
    display: none;
}

.scroll-nav {
    display: flex;
    gap: 10px;
}

.scroll-btn {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: var(--accent);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-btn:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.4);
}

.scroll-btn:active {
    transform: scale(0.9);
}

@media (max-width: 768px) {
    .scroll-nav {
        display: none;
        /* Hide buttons on mobile, use touch scroll */
    }
}

.horizontal-scroll .video-card {
    min-width: 160px;
    max-width: 160px;
    width: 160px;
    padding: 8px;
    flex-shrink: 0;
}

.horizontal-scroll .grid-item-wrapper {
    min-width: 160px;
    max-width: 160px;
    width: 160px;
    flex-shrink: 0;
}

.horizontal-scroll .video-card .card-meta-overlay {
    padding: 14px 8px 8px 8px;
}

.horizontal-scroll .video-card .card-meta-overlay .video-title {
    font-size: 12px;
    margin-bottom: 3px;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.horizontal-scroll .video-card .card-meta-overlay .video-stats {
    font-size: 10px;
}

.horizontal-scroll .video-card .thumbnail {
    border-radius: 8px;
}

/* --- SEARCH SUGGESTIONS --- */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-top: none;
    border-radius: 0 0 12px 12px;
    z-index: 1100;
    display: none;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-top: 5px;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
    color: #fff;
}

.suggestion-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.suggestion-item img {
    width: 35px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.suggestion-item .info {
    flex: 1;
}

.suggestion-item .title {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.suggestion-item .meta {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.horizontal-scroll .video-card .thumbnail {
    aspect-ratio: 2/3;
    width: 100%;
}

/* Resume Prompt */
.resume-prompt {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid var(--accent);
    padding: 15px;
    border-radius: 12px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

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

.resume-prompt p {
    margin: 0;
    font-size: 13px;
    color: #fff;
}

.resume-actions {
    display: flex;
    gap: 8px;
}

.btn-sm {
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}

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

.btn-secondary-sm {
    background: #333;
    color: #ccc;
}

/* Navigation Drawer (History/Watchlist) */
.nav-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-left: 1px solid var(--glass-border);
    z-index: 2000;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 24px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    will-change: transform;
    overscroll-behavior: contain;
}

.nav-drawer.open {
    transform: translateX(-400px);
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.8);
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 15px;
}

.drawer-header h3 {
    margin: 0;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.drawer-header button {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
}

.drawer-body::-webkit-scrollbar {
    width: 5px;
}

.drawer-body::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
}

/* In-drawer list styling */
.nav-drawer .video-card {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-direction: row !important;
    min-width: 0 !important;
    max-width: none !important;
}

.nav-drawer .thumbnail {
    width: 80px;
    flex-shrink: 0;
    aspect-ratio: 2/3;
}

.nav-drawer .video-title {
    font-size: 14px;
    white-space: normal;
}

/* Delete Button for Library Items */
.delete-lib-btn {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 24px;
    height: 24px;
    background: #E50914;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    opacity: 0.8;
    transition: 0.2s;
}

.delete-lib-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

@media (max-width: 500px) {
    .nav-drawer {
        width: 100%;
        right: -100%;
    }

    .nav-drawer.open {
        transform: translateX(-100%);
    }
}

/* Mobile Responsive - Navbar & Search (Optimized) */
@media (max-width: 768px) {
    .navbar {
        height: var(--nav-height);
        padding: 0 4%;
        gap: 8px;
    }

    .logo {
        font-size: 18px;
    }

    .search-box {
        width: 200px;
    }

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

    .nav-right {
        display: flex;
        gap: 8px;
    }

    .nav-right .chip {
        display: none;
    }

    #navPersistenceBtn {
        display: flex !important;
    }

    .filter-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .filter-chips::-webkit-scrollbar {
        display: none;
    }

    .filter-chips .chip {
        flex-shrink: 0;
    }

    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .video-card {
        padding: 6px;
    }

    .video-title {
        font-size: 13px;
        height: 2.4em;
    }

    .hero-banner {
        height: 280px;
        margin-bottom: 20px;
    }

    .hero-content {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }

    .hero-content h1 {
        font-size: 22px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 10px;
    }

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

/* ========================================
   1. HERO BANNER
======================================== */
.hero-banner {
    position: relative;
    width: 100%;
    height: 500px;
    margin-bottom: 50px;
    border-radius: 24px;
    overflow: hidden;
    will-change: transform;
    box-shadow: 0 20px 60px rgba(255, 193, 7, 0.2);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform var(--transition-slow), opacity var(--transition-base);
    will-change: transform, opacity;
}

@media (hover: hover) and (pointer: fine) {
    .hero-banner:hover .hero-bg {
        transform: scale(1.05);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.95) 0%, rgba(10, 14, 39, 0.6) 40%, transparent 100%);
}

.hero-content {
    position: absolute;
    bottom: 50px;
    left: 50px;
    max-width: 500px;
    z-index: 10;
}

.hero-badge {
    background: var(--accent);
    color: #0a0e27;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    display: inline-block;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.4);
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 900;
    margin: 0 0 15px 0;
    line-height: 1.1;
    color: var(--text-primary);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-content p {
    color: #ccc;
    font-size: 14px;
    margin: 0 0 20px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #ffb300 100%);
    color: #0a0e27;
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    will-change: transform;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ffb300 0%, var(--accent) 100%);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(255, 193, 7, 0.5);
}

.btn-primary:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.4);
}

.btn-primary:active {
    transform: scale(0.97);
}

.btn-primary:disabled,
.btn-primary.disabled {
    background: #666;
    color: #999;
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
    transform: none;
}

.btn-primary:disabled:hover,
.btn-primary.disabled:hover {
    background: #666;
    transform: none;
}

.btn-primary.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn-primary.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spinLoader 0.8s linear infinite;
}

/* ========================================
   2. FOOTER
======================================== */
.site-footer {
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
    border-top: 3px solid var(--accent);
    padding: 50px 4% 100px;
    margin-top: 80px;
}

/* Error States and Messages */
.error-message {
    background: rgba(255, 67, 54, 0.1);
    border-left: 3px solid #ff4336;
    color: #ff8a80;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.error-message i {
    color: #ff4336;
    font-size: 16px;
}

.form-group.error input,
.form-group.error textarea {
    border-color: #ff4336;
    background: rgba(255, 67, 54, 0.05);
}

.form-group.error .error-hint {
    color: #ff8a80;
    font-size: 13px;
    margin-top: 6px;
    display: block;
}

.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.2s ease-in;
}

.loader-overlay[style*="display: flex"] {
    display: flex;
}

.loader-content {
    background: rgba(20, 20, 20, 0.95);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--glass-border);
}

.loader-content .loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spinLoader 0.8s linear infinite;
    margin: 0 auto 16px;
}

.loader-content p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 14px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand .logo {
    font-size: 22px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 10px;
}

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}

.footer-social a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 13px;
}

/* ========================================
   3. TOAST NOTIFICATIONS (Optimized)
======================================== */
.toast-container {
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid var(--glass-border);
    border-left: 4px solid var(--accent);
    padding: 15px 20px;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInToast 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
    will-change: transform, opacity;
}

.toast i {
    color: var(--accent);
    font-size: 18px;
}

@keyframes slideInToast {
    from {
        transform: translateX(120%);
        opacity: 0;
    }

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

/* ========================================
   4. AUTO-HIDE NAVBAR
======================================== */
.navbar.hidden {
    transform: translateY(-100%);
}

/* ========================================
   5. HOVER PREVIEW (DESKTOP)
======================================== */
@media (min-width: 769px) {
    .video-card {
        position: relative;
    }

    .video-card .card-preview {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
        padding: 50px 15px 15px;
        opacity: 0;
        transform: translateY(10px);
        transition: 0.3s;
        pointer-events: none;
    }

    .video-card:hover .card-preview {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .card-preview .preview-actions {
        display: flex;
        gap: 8px;
        margin-top: 10px;
    }

    .card-preview .preview-btn {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.3);
        color: #fff;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: 0.2s;
    }

    .card-preview .preview-btn:hover {
        background: var(--accent);
        border-color: var(--accent);
    }

    .card-preview .preview-btn.play-btn {
        background: var(--accent);
        border-color: var(--accent);
    }
}

/* ========================================
   6. BOTTOM NAVIGATION (MOBILE) - Enhanced Touch
======================================== */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(15, 15, 15, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
    padding-bottom: max(env(safe-area-inset-bottom), 8px);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 11px;
    transition: all var(--transition-fast);
    padding: 8px 16px;
    border-radius: 8px;
    min-width: 60px;
    -webkit-user-select: none;
    user-select: none;
}

.bottom-nav-item i {
    font-size: 22px;
    transition: transform var(--transition-fast);
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
    color: var(--accent);
}

.bottom-nav-item:active {
    background: rgba(255, 255, 255, 0.05);
    transform: scale(0.95);
}

.bottom-nav-item.active i {
    transform: scale(1.15);
}

@media (max-width: 768px) {
    .bottom-nav {
        display: flex;
    }

    .site-footer {
        padding-bottom: calc(80px + env(safe-area-inset-bottom));
    }

    .toast-container {
        bottom: calc(70px + env(safe-area-inset-bottom));
        left: 20px;
        right: 20px;
    }

    .hero-content {
        left: 20px;
        right: 20px;
        bottom: 30px;
    }
}

/* ========================================
   7. AUTOCOMPLETE SEARCH
======================================== */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(20, 20, 20, 0.98);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin-top: 8px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 100;
}

.search-suggestions.active {
    display: block;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    text-decoration: none;
    color: #fff;
    transition: 0.2s;
}

.suggestion-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.suggestion-item img {
    width: 40px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.suggestion-item .suggest-info h4 {
    font-size: 14px;
    margin: 0;
}

.suggestion-item .suggest-info p {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 4px 0 0;
}

/* --- EPISODE GRID & UX --- */
.episodes-container {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
}

.ep-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ep-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ddd;
    min-width: 48px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all var(--transition-fast);
    -webkit-user-select: none;
    user-select: none;
    font-weight: 500;
}

.ep-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: translateY(-2px);
}

.ep-btn:active {
    transform: scale(0.95);
}

.ep-btn.active {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.4);
    font-weight: 600;
    transform: translateY(-2px);
}

/* Season Headers in Grid */
.ep-grid h4 {
    flex-basis: 100%;
    margin: 20px 0 10px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #888;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

.ep-grid h4:first-child {
    margin-top: 0;
}

/* --- CONTINUE WATCHING --- */
.section-block#section-continue {
    margin-bottom: 40px;
}

.continue-watching-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 15px;
    scrollbar-width: none;
}

.continue-watching-grid::-webkit-scrollbar {
    display: none;
}

.progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.progress-bar {
    height: 100%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    transition: width 0.3s ease;
}

.resume-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(229, 9, 20, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
    z-index: 8;
}

.video-card:hover .resume-overlay {
    opacity: 1;
}

.resume-overlay i {
    color: #fff;
    font-size: 20px;
    margin-left: 2px;
}

/* Resume Prompt Tooltip on Watch Page */
.resume-prompt {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid var(--accent);
    padding: 15px;
    border-radius: 12px;
    z-index: 1000;
    color: #fff;
    animation: slideUp 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    max-width: 300px;
}

.resume-prompt p {
    margin: 0 0 12px 0;
    font-size: 14px;
}

.resume-actions {
    display: flex;
    gap: 10px;
}

.btn-primary-sm {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    font-weight: 600;
}

.btn-secondary-sm {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

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