/* Isekai Theme */
/* Importing Google Font */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

/* Base Colors */
:root {
    --pro-primary: #2563EB;
    --pro-secondary: #7C3AED;
    --pro-accent: #06B6D4;
    --pro-dark: #0F172A;
    --pro-light: #F8FAFC;
    --pro-surface: #FFFFFF;
    --pro-text: #1E293B;
    --pro-text-secondary: #64748B;
    --pro-border: #E2E8F0;
    --pro-shadow: rgba(37, 99, 235, 0.15);
    --pro-success: #10B981;
    --pro-warning: #F59E0B;
    --pro-error: #EF4444;
}

/* Dark Mode Colors */
.dark-mode {
    --pro-primary: #3B82F6;
    --pro-secondary: #8B5CF6;
    --pro-accent: #22D3EE;
    --pro-dark: #020617;
    --pro-light: #1E293B;
    --pro-surface: #0F172A;
    --pro-text: #F1F5F9;
    --pro-text-secondary: #94A3B8;
    --pro-border: #334155;
    --pro-shadow: rgba(59, 130, 246, 0.2);
    --pro-success: #34D399;
    --pro-warning: #FBBF24;
    --pro-error: #F87171;
}

/* Basic Elements */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    scrollbar-width: thin;
    scrollbar-color: var(--pro-primary) var(--pro-light);
}

/* Body Background */
body {
    background: linear-gradient(135deg, #F8FAFC 0%, #E0E7FF 50%, #DBEAFE 100%);
    background-attachment: fixed;
    color: var(--pro-text);
    font-weight: 400;
    line-height: 1.6;
}

i.uil {
    font-size: x-large;
}

/* Container */
.container {
    display: flex;
    overflow: hidden;
    max-height: 100vh;
    flex-direction: column;
}

/* Header Styles */
header, .sidebar .nav-left {
    position: sticky;
    top: 0;
    z-index: 10;
    background: linear-gradient(135deg, var(--pro-primary) 0%, var(--pro-secondary) 100%);
    box-shadow: 0 4px 24px var(--pro-shadow);
    border-bottom: 2px solid var(--pro-accent);
    backdrop-filter: blur(10px);
}

.navbar {
    display: flex;
    gap: 2rem;
    align-items: center;
    padding: 0.75rem 1.5rem;
    justify-content: space-between;
}

:where(.navbar, .sidebar) .nav-section {
    gap: 1rem;
}

:where(.navbar, .sidebar) :where(.nav-section, .nav-logo, .search-form) {
    display: flex;
    align-items: center;
}

:where(.navbar, .sidebar) :where(.user-image) {
    width: 36px;
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid var(--pro-accent);
    transition: all 0.3s ease;
}

:where(.navbar, .sidebar) :where(.user-image):hover {
    transform: scale(1.1);
    box-shadow: 0 0 12px var(--pro-accent);
}

:where(.navbar, .sidebar) .nav-section .nav-button {
    border: none;
    height: 42px;
    width: 42px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
    color: white;
}

:where(.navbar, .sidebar) .nav-section .nav-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.navbar .nav-logo {
    display: flex;
    gap: 0.75rem;
    text-decoration: none;
    align-items: center;
}

.logo-image {
    max-width: 200px;
    height: auto;
}

@media only screen and (max-width: 700px) {
    .logo-image {
        max-width: 150px;
    }
}

@media only screen and (max-width: 400px) {
    .logo-image {
        max-width: 120px;
    }
}

.navbar-brand {
    color: white !important;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--pro-accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.navbar .nav-center {
    gap: 0.75rem;
    width: 100%;
    display: flex;
    justify-content: center;
}

.navbar .search-form {
    flex: 1;
    height: 44px;
    max-width: 600px;
}

#search-results {
    position: absolute;
    top: 100%;
    margin: auto;
    width: 100%;
    max-width: 600px;
    max-height: 350px;
    overflow-y: auto;
    background: var(--pro-surface);
    border: 1px solid var(--pro-border);
    border-radius: 12px;
    border-top: none;
    z-index: 1000;
    display: none;
    box-shadow: 0 8px 24px var(--pro-shadow);
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid var(--pro-border);
    cursor: pointer;
    transition: all 0.2s ease;
}

a.search-result-item {
    text-decoration: none;
}

a.search-result-item img {
    width: 56px;
    height: 56px;
    border: 2px solid var(--pro-border);
    border-radius: 10px;
    margin-right: 12px;
    object-fit: cover;
}

.search-result-details h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--pro-text);
    font-weight: 600;
}

.search-result-details .alt-title {
    font-size: 0.875rem;
    color: var(--pro-text-secondary);
    margin-top: 2px;
}

.search-result-item:hover {
    background-color: var(--pro-light);
    transform: translateX(4px);
}

.navbar .search-form .search-input {
    position: relative;
    width: 100%;
    height: 100%;
    font-size: 1rem;
    padding: 0 1.25rem;
    outline: none;
    color: var(--pro-text);
    background: var(--pro-surface);
    border-radius: 12px 0 0 12px;
    border: 2px solid var(--pro-border);
    transition: all 0.3s ease;
}

.navbar .search-form .search-input:focus {
    border-color: var(--pro-accent);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.navbar .search-form .search-button {
    height: 44px;
    width: auto;
    padding: 0 1.5rem;
    border-radius: 0 12px 12px 0;
    border: 2px solid var(--pro-border);
    border-left: 0;
    background: var(--pro-surface);
    color: var(--pro-primary);
    transition: all 0.3s ease;
    font-weight: 600;
}

.navbar .search-form .search-button:hover {
    background: var(--pro-primary);
    color: white;
}

.navbar .nav-center .mic-button {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.navbar .nav-right .search-button {
    display: none;
}

/* Main Layout */
.main-layout {
    display: flex;
    overflow-y: auto;
    scrollbar-color: var(--pro-primary) var(--pro-light);
}

.main-layout .sidebar {
    width: 280px;
    overflow: hidden;
    padding: 0 0.5rem 0;
    background: var(--pro-surface);
    border-right: 1px solid var(--pro-border);
}

.main-layout .sidebar .nav-left {
    display: none;
    padding: 0.75rem 0.5rem;
}

body.sidebar-hidden .main-layout .sidebar {
    width: 0;
    padding: 0;
}

.sidebar .links-container {
    padding: 1.25rem 0 2rem;
    overflow-y: auto;
    height: calc(100vh - 70px);
    scrollbar-width: thin;
    scrollbar-color: var(--pro-primary) transparent;
}

.sidebar .links-container:hover {
    scrollbar-color: var(--pro-primary) var(--pro-light);
}

.sidebar .link-section .link-item {
    display: flex;
    color: var(--pro-text);
    white-space: nowrap;
    align-items: center;
    font-size: 0.938rem;
    padding: 0.625rem 1rem;
    margin-bottom: 0.375rem;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar .link-section .link-item:hover {
    background: linear-gradient(135deg, var(--pro-primary) 0%, var(--pro-secondary) 100%);
    color: white;
    transform: translateX(6px);
    box-shadow: 0 4px 12px var(--pro-shadow);
}

.sidebar .link-section a.link-item.active {
    background: linear-gradient(135deg, var(--pro-primary) 0%, var(--pro-secondary) 100%);
    color: white;
    box-shadow: 0 4px 16px var(--pro-shadow);
}

.sidebar .link-section .link-item i {
    font-size: 1.4rem;
    margin-right: 0.75rem;
}

.sidebar .link-section .section-title {
    color: var(--pro-text-secondary);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 1.5rem 0 0.75rem 1rem;
}

.sidebar .section-separator {
    height: 1px;
    margin: 1rem 0;
    background: var(--pro-border);
}

.main-layout .content-wrapper {
    padding: 0 1rem;
    overflow-x: hidden;
    width: 100%;
    background: var(--pro-light);
}

.content-wrapper .category-list {
    display: flex;
    overflow-x: auto;
    gap: 0.75rem;
    scrollbar-width: none;
}

.category-list .category-button {
    border: 2px solid var(--pro-border);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 10px;
    white-space: nowrap;
    color: var(--pro-text);
    padding: 0.5rem 1rem;
    background: var(--pro-surface);
    transition: all 0.3s ease;
}

.category-list .category-button.active {
    color: white;
    background: linear-gradient(135deg, var(--pro-primary) 0%, var(--pro-secondary) 100%);
    border-color: transparent;
    pointer-events: none;
    box-shadow: 0 4px 16px var(--pro-shadow);
}

.category-list .category-button:not(.active):hover {
    background: var(--pro-light);
    border-color: var(--pro-primary);
    transform: translateY(-2px);
}

/* Video Grid - Professional Card Design with Alternating Layout */
.content-wrapper .video-list {
    display: grid;
    gap: 1.5rem;
    padding: 1.5rem 0;
    grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 1124px) {
    .content-wrapper .video-list {
        grid-template-columns: repeat(2, 1fr);
    }

    body.sidebar-hidden .content-wrapper .video-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .video-list .video-card .title {
        text-wrap: wrap;
        white-space: normal;
        text-overflow: unset;
    }

    body.sidebar-hidden .content-wrapper .video-list .video-card .title {
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Alternate card layout for even columns (right column) */
    .video-list .video-card:nth-child(even) {
        flex-direction: row-reverse;
    }

    .video-list .video-card:nth-child(even) .thumbnail {
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
        border-top-right-radius: 12px;
        border-bottom-right-radius: 12px;
    }

    .video-list .video-card:nth-child(even) .card-info {
        text-align: right;
    }

    .video-list .video-card:nth-child(even) .meta-info {
        justify-content: flex-end;
    }

    .video-list .video-card:nth-child(even) .video-info {
        left: auto;
        right: 100%;
    }

    .video-list .video-card:nth-child(even) .sub,
    .video-list .video-card:nth-child(even) .dub {
        left: auto;
        right: 100%;
    }

    .video-list .video-card:nth-child(even):hover {
        transform: translateX(-10px);
    }

    .video-list .video-card:nth-child(even)::after {
        right: auto;
        left: 12px;
    }
}

.video-list .video-card {
    text-decoration: none;
    background: var(--pro-surface);
    height: 140px;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 2px solid var(--pro-border);
    display: flex;
    flex-direction: row;
    align-items: center;
    overflow: hidden;
}

.video-list .video-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--pro-primary) 0%, var(--pro-secondary) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-list .video-card::after {
    content: '▶';
    position: absolute;
    bottom: 50%;
    right: 12px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--pro-primary) 0%, var(--pro-secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
    opacity: 0.8;
    backdrop-filter: blur(8px);
}

.video-list .video-card:hover::after {
    transform: scale(1.2);
    opacity: 1;
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.4);
}

.video-list .video-card:hover {
    transform: translateX(10px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.15), 0 4px 12px rgba(37, 99, 235, 0.1);
    border-color: var(--pro-primary);
}

.video-list .video-card:hover::before {
    opacity: 1;
}

.video-list .video-card .thumbnail-container {
    position: relative;
    width: 180px;
    height: 100%;
    background: linear-gradient(135deg, #E0E7FF 0%, #DBEAFE 100%);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.video-list .video-card .thumbnail {
    width: 100%;
    height: 100%;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    object-fit: cover;
    display: block;
    transition: all 0.4s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.video-list .video-card:hover .thumbnail {
    transform: scale(1.05);
}

.video-list .video-card .duration {
    position: absolute;
    right: 5px;
    top: 5px;
    color: white;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.85);
    font-weight: 600;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0;
}

.video-list .video-card .current-episode {
    position: absolute;
    left: 10px;
    bottom: 10px;
    color: white;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--pro-error) 0%, var(--pro-warning) 100%);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.video-list .video-card .card-info {
    flex: 1;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.video-list .video-card .video-info {
    position: absolute;
    left: 160px;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    padding: 1rem;
}

.video-list .video-card .title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--pro-dark);
    margin-bottom: 0.5rem;
    padding-left:2rem;
    line-height: 1.3;
    display: inline-flex;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-wrap: nowrap;
}

@media (max-width: 768px) {
    .video-list .video-card .title {
        font-size: 0.95rem;
        font-weight: 600;
    }
}

@media (max-width: 550px) {
    .video-list .video-card .title {
        font-size: 0.85rem;
        font-weight: 500;
    }
}

.video-list .video-card .meta-info {
    display: flex;
    gap: 1.25rem;
    font-size: 0.813rem;
    color: var(--pro-text-secondary);
    font-weight: 600;
}

.video-list .video-card .sub {
    position: absolute;
    left: 100%;
    top: 8px;
    color: white;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--pro-accent) 0%, var(--pro-primary) 100%);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.video-list .video-card .dub {
    position: absolute;
    left: 100%;
    top: 8px;
    color: white;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--pro-secondary) 0%, var(--pro-primary) 100%);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Anime Details */
.anime-details {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    background: var(--pro-surface);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 2px solid var(--pro-border);
}

.poster {
    position: relative;
    flex: 0 0 auto;
}

img.anime-poster {
    width: 100%;
    position: relative;
    max-width: 280px;
    border-radius: 16px;
    box-shadow: 0 8px 24px var(--pro-shadow);
    border: 3px solid var(--pro-border);
    display: block;
    transition: all 0.3s ease;
}

img.anime-poster:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px var(--pro-shadow);
}

.bookmark-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, var(--pro-primary) 0%, var(--pro-secondary) 100%);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
    box-shadow: 0 4px 12px var(--pro-shadow);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.bookmark-btn:hover {
    background: linear-gradient(135deg, var(--pro-secondary) 0%, var(--pro-primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--pro-shadow);
}

.anime-info {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.anime-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--pro-text);
    letter-spacing: -0.5px;
    margin: 0;
    line-height: 1.2;
}

.sub-badge, .dub-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sub-badge {
    background: linear-gradient(135deg, var(--pro-accent) 0%, var(--pro-primary) 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dub-badge {
    background: linear-gradient(135deg, var(--pro-secondary) 0%, var(--pro-primary) 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.jp-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--pro-text-secondary);
    margin: 0;
    line-height: 1.5;
}

.anime-meta {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.anime-meta p {
    margin: 0;
    color: var(--pro-text);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 0.95rem;
}

.anime-meta i {
    color: var(--pro-primary);
    font-size: 1.125rem;
}

.anime-meta strong {
    font-weight: 700;
    color: var(--pro-text);
}

.genre-tags {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.3rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.genre-tags::-webkit-scrollbar {
    display: none;
}

.genre-tag {
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.875rem;
    background: var(--pro-light);
    border: 2px solid var(--pro-border);
    transition: all 0.3s ease;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.genre-tag a {
    text-decoration: none;
    color: var(--pro-primary);
}

.genre-tag:hover {
    border-color: var(--pro-primary);
    background: linear-gradient(135deg, var(--pro-primary) 0%, var(--pro-secondary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--pro-shadow);
}

.genre-tag:hover a {
    color: white;
}

.small-share-icon {
    display: none;
    font-weight: 700;
    color: var(--pro-text);
    font-size: 0.95rem;
    margin-top: 0.5rem;
    gap: 8px;
    align-items: center;
}

.small-share-icon i {
    color: var(--pro-primary);
    font-size: 1.125rem;
}

@media (max-width: 768px) {
    .small-share-icon {
        display: flex;
    }
}

.episodes-section {
    background: var(--pro-surface);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 5rem;
    border: 2px solid var(--pro-border);
}

.anime-synopsis {
    background: var(--pro-surface);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    border: 2px solid var(--pro-border);
}

.episode-list {
    height: 150px;
    max-height: 450px;
    overflow-y: auto;
    border-top: 2px solid var(--pro-border);
    padding-top: 1rem;
    gap: 0.5rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 0.5rem;
}

img.episode-poster{
    width: 60px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid var(--pro-border);
    transition: all 0.3s ease;
}

@media (min-width: 640px) {
    .episode-list {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 700px) {
    .episode-list {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 850px) {
    .episode-list {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 1124px) {
    .episode-list {
        grid-template-columns: repeat(5, 1fr);
    }
}

.btn-primary {
    background: linear-gradient(135deg, var(--pro-primary) 0%, var(--pro-secondary) 100%);
    color: white;
    padding: 0.625rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.938rem;
    transition: all 0.3s ease;
    border: none;
    font-weight: 600;
    box-shadow: 0 4px 12px var(--pro-shadow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--pro-secondary) 0%, var(--pro-primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--pro-shadow);
}

/* Episode Page */
.video-container {
    display: flex;
    gap: 24px;
    margin-top: 2rem;
}

.video-main {
    flex: 2;
}

.video-sidebar {
    flex: 1;
    min-width: 280px;
}

.video-sources {
    position: relative;
    width: 100%;
    padding-top: 56.50%;
    aspect-ratio: 19/6;
    margin-bottom: 20px;
}

.embed-responsive {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.embed-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 24px var(--pro-shadow);
}

.other-episodes {
    padding: 1.25rem;
    border-radius: 16px;
    max-height: 550px;
    overflow-y: auto;
    background: var(--pro-surface);
    border: 2px solid var(--pro-border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.other-episodes-list {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 0.625rem;
}

@media (min-width: 1024px) {
    .other-episodes-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 999px) {
    .other-episodes-list {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    .other-episodes-list {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

.other-episodes-list a {
    color: var(--pro-text);
    padding: 12px;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    background: var(--pro-light);
    border: 2px solid var(--pro-border);
    font-weight: 600;
}

.other-episodes-list a:hover {
    background: linear-gradient(135deg, var(--pro-primary) 0%, var(--pro-secondary) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--pro-shadow);
}

.current-episode {
    background: linear-gradient(135deg, var(--pro-primary) 0%, var(--pro-secondary) 100%) !important;
    color: white !important;
    border-color: transparent !important;
}

.episode-title {
    font-size: 0.875rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.episode-details {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    background: var(--pro-surface);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 2px solid var(--pro-border);
}

.episode-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

a.epi-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--pro-primary) 0%, var(--pro-secondary) 100%);
    padding: 0.625rem 1.25rem;
    border-radius: 10px;
    color: white;
    text-decoration: none;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 12px var(--pro-shadow);
}

a.epi-btn:hover {
    background: linear-gradient(135deg, var(--pro-secondary) 0%, var(--pro-primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--pro-shadow);
}

.server-selector {
    margin: 1.25rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#video-server {
    width: 220px;
    padding: 0.625rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--pro-border);
    border-radius: 10px;
    background: var(--pro-surface);
    color: var(--pro-text);
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

#video-server:hover {
    border-color: var(--pro-primary);
    background: var(--pro-light);
}

#video-server:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    border-color: var(--pro-primary);
}

.related-anime-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    width: 100%;
}

@media (max-width: 999px) {
    .related-anime-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 0.5rem;
    }
}

@media (max-width: 939px) {
    .related-anime-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.75rem;
    }
}

@media (max-width: 768px) {
    .related-anime-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.5rem;
    }
}

.related-anime-item {
    text-decoration: none;
    color: var(--pro-text);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    background: var(--pro-surface);
    border: 2px solid var(--pro-border);
    padding: 0.5rem;
}

.related-anime-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px var(--pro-shadow);
    border-color: var(--pro-primary);
}

.related-anime-grid .related-anime-item .related-anime-poster {
    width: 100%;
    height: 220px;
    border-radius: 10px;
    max-width: 100%;
    object-fit: cover;
}

.related-anime-title {
    margin-top: 10px;
    font-size: 0.875rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    max-width: 100%;
    font-weight: 600;
}

/* Bookmarks */
.bookmarks-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .bookmarks-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

.bookmark-card {
    border: 2px solid var(--pro-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    background: var(--pro-surface);
}

a.bookmark-card {
    text-decoration: none;
}

.bookmark-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px var(--pro-shadow);
    border-color: var(--pro-primary);
}

.bookmark-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.bookmark-actions {
    display: flex;
    margin-top: 12px;
    align-items: center;
    top: 0;
    left: 0.5rem;
    position: absolute;
}

.bookmark-btn {
    position: absolute;
    top: 0;
    background: linear-gradient(135deg, var(--pro-primary) 0%, var(--pro-secondary) 100%);
    color: white;
    border: none;
    padding: 8px 14px;
    margin-top: 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
    box-shadow: 0 4px 12px var(--pro-shadow);
}

.bookmark-btn:hover {
    background: linear-gradient(135deg, var(--pro-secondary) 0%, var(--pro-primary) 100%);
    transform: translateY(-2px);
}

.bookmark-btn.bookmarked {
    background: linear-gradient(135deg, var(--pro-success) 0%, var(--pro-accent) 100%);
}

.bookmarks-grid .bookmark-card .bookmark-episodes {
    position: absolute;
    right: 0.5rem;
    top: 0.5rem;
    color: white;
    font-size: 0.875rem;
    padding: 6px 12px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    font-weight: 700;
}

.bookmarks-grid .bookmark-card .bookmark-title {
    position: absolute;
    font-size: 0.938rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    cursor: pointer;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--pro-primary) 0%, var(--pro-secondary) 100%);
    color: white;
    text-align: center;
    border-radius: 0 0 14px 14px;
    white-space: nowrap;
    padding: 0.75rem;
}

/* Profile */
.profile-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--pro-surface);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    margin-top: 1.5rem;
    border: 2px solid var(--pro-border);
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--pro-border);
}

.profile-avatar img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--pro-primary);
    box-shadow: 0 8px 24px var(--pro-shadow);
}

.profile-info h2 {
    margin: 0 0 0.625rem 0;
    color: var(--pro-text);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.profile-info p {
    margin: 0;
    color: var(--pro-text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

.profile-details {
    background: var(--pro-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 2px solid var(--pro-border);
}

.profile-details h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--pro-text);
    font-size: 1.5rem;
    font-weight: 700;
    border-bottom: 2px solid var(--pro-border);
    padding-bottom: 0.625rem;
}

.detail-row {
    display: flex;
    margin-bottom: 0.875rem;
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--pro-border);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    flex: 0 0 140px;
    color: var(--pro-text-secondary);
    font-weight: 600;
    font-size: 0.938rem;
}

.detail-value {
    flex: 1;
    color: var(--pro-text);
    font-weight: 500;
}

/* Social Share */
.sbutton {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: var(--pro-surface);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    position: relative;
    border: 2px solid var(--pro-border);
    flex-wrap: wrap;
}

.share-icon {
    font-weight: 700;
    color: var(--pro-text);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-left: 1rem;
}

.share-icon i {
    color: var(--pro-primary);
    font-size: 1.125rem;
}

@media (max-width: 768px) {
    .sbutton {
        gap: 6px;
    }

    .share-icon {
        font-size: 0.875rem;
    }
}

.sbutton a {
    text-decoration: none;
    color: var(--pro-text);
    position: relative;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--pro-light);
    border: 2px solid var(--pro-border);
    font-size: 1.25rem;
}

.sbutton a:hover {
    transform: scale(1.15);
    background: linear-gradient(135deg, var(--pro-primary) 0%, var(--pro-secondary) 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px var(--pro-shadow);
}

.page-views {
    background: linear-gradient(135deg, var(--pro-primary) 0%, var(--pro-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: white;
    font-size: 0.875rem;
    border: 2px solid var(--pro-accent);
    border-radius: 10px;
    font-weight: 700;
    box-shadow: 0 4px 12px var(--pro-shadow);
    transition: all 0.3s ease;
    margin-top: 1rem;
    width: fit-content;
    margin-bottom: 1rem;
}

.page-views:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--pro-shadow);
}

#page-views {
    display: flex;
    align-items: center;
    gap: 6px;
}

.page-views i {
    font-size: 1.125rem;
}

/* Anime Likes */
.anime-interaction-container {
    border: 2px solid var(--pro-primary);
    background: var(--pro-surface);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    margin: 0.5rem 0;
}

.anime-interaction-container p {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--pro-text);
    letter-spacing: -0.3px;
}

.like-unlike-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.like-btn, .unlike-btn {
    display: flex;
    align-items: center;
    background: var(--pro-light);
    border: 2px solid var(--pro-border);
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    color: var(--pro-text);
    font-weight: 600;
}

.like-btn i, .unlike-btn i {
    margin-right: 6px;
}

.like-btn.active {
    background: linear-gradient(135deg, var(--pro-success) 0%, var(--pro-accent) 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.unlike-btn.active {
    background: linear-gradient(135deg, var(--pro-error) 0%, var(--pro-warning) 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Pagination */
.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    justify-content: center;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    gap: 0.5rem;
}

.page-item {
    margin: 0;
}

.page-item a {
    display: inline-block;
    padding: 10px 16px;
    font-size: 0.938rem;
    color: var(--pro-primary);
    text-decoration: none;
    border: 2px solid var(--pro-border);
    border-radius: 10px;
    background: var(--pro-surface);
    transition: all 0.3s ease;
    font-weight: 600;
}

.page-item a:hover {
    background: linear-gradient(135deg, var(--pro-primary) 0%, var(--pro-secondary) 100%);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--pro-shadow);
}

.page-item.active a {
    background: linear-gradient(135deg, var(--pro-primary) 0%, var(--pro-secondary) 100%);
    border-color: transparent;
    color: white;
    pointer-events: none;
    box-shadow: 0 4px 12px var(--pro-shadow);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--pro-dark) 0%, var(--pro-primary) 100%);
    color: white;
    border-top: 3px solid var(--pro-accent);
    text-align: center;
    padding: 2.5rem 0;
}

/* User Profile Dropdown */
.user-profile {
    position: relative;
    display: inline-block;
    z-index: 20;
}

.user-dropdown {
    display: none;
    position: absolute;
    right: 0;
    background: var(--pro-surface);
    box-shadow: 0 8px 24px var(--pro-shadow);
    list-style: none;
    padding: 12px;
    margin: 0;
    border-radius: 12px;
    z-index: 999;
    width: 220px;
    border: 2px solid var(--pro-border);
}

.user-dropdown li {
    margin: 6px 0;
    display: flex;
    justify-items: center;
    padding-bottom: 0.625rem;
}

.user-dropdown li a {
    text-decoration: none;
    color: var(--pro-text);
    transition: all 0.3s ease;
    font-weight: 600;
    display: block;
    padding: 8px;
    border-radius: 8px;
}

.user-dropdown li a:hover {
    color: var(--pro-primary);
    background: var(--pro-light);
}

/* Download Buttons */
.download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 1.25rem;
}

.download-btn {
    background: linear-gradient(135deg, var(--pro-primary) 0%, var(--pro-secondary) 100%);
    border: none;
    color: white;
    padding: 12px 28px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px var(--pro-shadow);
    font-weight: 700;
}

.download-btn:hover {
    background: linear-gradient(135deg, var(--pro-secondary) 0%, var(--pro-primary) 100%);
    box-shadow: 0 6px 20px var(--pro-shadow);
    transform: translateY(-2px);
}

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

/* Page Content */
.page-content-details {
    max-width: 1200px;
    width: 100%;
    margin: 2rem auto;
    padding: 2.5rem;
    background: var(--pro-surface);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--pro-border);
}

.page-content-details .featured-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 2rem;
    border: 2px solid var(--pro-border);
}

.page-content-details .page-metadata {
    display: flex;
    justify-content: space-between;
    color: var(--pro-text-secondary);
    font-size: 0.938rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--pro-border);
    padding-bottom: 1rem;
    font-weight: 600;
}

.page-content-details p {
    line-height: 1.7;
    color: var(--pro-text);
    margin-bottom: 1.25rem;
    font-size: 1.063rem;
}

.page-content-details h1,
.page-content-details h2,
.page-content-details h3,
.page-content-details h4 {
    margin-bottom: 1.25rem;
    color: var(--pro-text);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.page-content-details h1 {
    text-align: center;
    font-size: 2.5rem;
    border-bottom: 3px solid var(--pro-primary);
    padding-bottom: 1rem;
}

.page-content-details ul,
.page-content-details ol {
    padding-left: 2rem;
    margin-bottom: 1.25rem;
}

.page-content-details ul li {
    list-style: disc;
    margin-bottom: 0.625rem;
    line-height: 1.6;
}

.page-content-details ol li {
    list-style: decimal;
    margin-bottom: 0.625rem;
    line-height: 1.6;
}

/* Custom Comments Styling */
.custom-comments-container {
    background: var(--pro-surface);
    border-radius: 16px;
    border: 2px solid var(--pro-border);
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.comments-title {
    font-size: 1.75rem;
    margin-bottom: 1.75rem;
    color: var(--pro-text);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.comment-form-container {
    background: var(--pro-light);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 2px solid var(--pro-border);
}

.comment-form-container h3 {
    margin-bottom: 1.25rem;
    color: var(--pro-text);
    font-weight: 700;
    font-size: 1.25rem;
}

.comment-textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--pro-border) !important;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    resize: vertical;
    background: var(--pro-surface) !important;
    color: var(--pro-text) !important;
    transition: all 0.3s ease;
    min-height: 120px;
}

.comment-textarea:focus {
    outline: none;
    border-color: var(--pro-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.comment-submit-btn {
    background: linear-gradient(135deg, var(--pro-primary) 0%, var(--pro-secondary) 100%);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    margin-top: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px var(--pro-shadow);
    font-size: 1rem;
}

.comment-submit-btn:hover {
    background: linear-gradient(135deg, var(--pro-secondary) 0%, var(--pro-primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--pro-shadow);
}

.comment-login-prompt {
    background: var(--pro-light);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: center;
    border: 2px solid var(--pro-border);
    color: var(--pro-text);
    font-weight: 500;
}

.comment-login-prompt a {
    color: var(--pro-primary);
    text-decoration: none;
    font-weight: 700;
}

.comment-login-prompt a:hover {
    text-decoration: underline;
}

.comment-item {
    background: var(--pro-light) !important;
    border: 2px solid var(--pro-border) !important;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.comment-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--pro-primary);
    transform: translateY(-2px);
}

.reply-comment {
    margin-left: 2.5rem;
    margin-top: 0.75rem;
    background: var(--pro-surface);
    border: 2px solid rgba(37, 99, 235, 0.2);
}

.comment-avatar-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pro-primary) 0%, var(--pro-secondary) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 4px 12px var(--pro-shadow);
    font-size: 1.125rem;
}

.comment-author {
    font-weight: 700;
    color: var(--pro-primary);
    font-size: 1.063rem;
}

.comment-date {
    font-size: 0.875rem;
    color: var(--pro-text-secondary);
    font-weight: 500;
}

.comment-text {
    color: var(--pro-text);
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 1rem;
}

.pagination-btn {
    background: linear-gradient(135deg, var(--pro-primary) 0%, var(--pro-secondary) 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px var(--pro-shadow);
}

.pagination-btn:hover {
    background: linear-gradient(135deg, var(--pro-secondary) 0%, var(--pro-primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--pro-shadow);
}

.pagination-info {
    color: var(--pro-text);
    font-weight: 700;
    font-size: 1rem;
}

.loading-text, .no-comments-text {
    text-align: center;
    color: var(--pro-text-secondary);
    padding: 1.5rem;
    font-weight: 500;
}

.error-text {
    text-align: center;
    color: var(--pro-error);
    padding: 1.5rem;
    font-weight: 600;
}

/* Dark Mode Overrides */
.dark-mode body {
    background: linear-gradient(135deg, var(--pro-dark) 0%, var(--pro-light) 50%, #1E293B 100%);
}

.dark-mode header, .dark-mode .sidebar .nav-left {
    background: linear-gradient(135deg, var(--pro-surface) 0%, var(--pro-primary) 100%);
}

.dark-mode .main-layout .sidebar {
    background: var(--pro-surface);
    border-right-color: var(--pro-border);
}

.dark-mode .main-layout .content-wrapper {
    background: var(--pro-dark);
}

.dark-mode i.uil.uil-bars, 
.dark-mode i.uil.uil-search, 
.dark-mode i.uil.uil-microphone, 
.dark-mode i.uil.uil-user,
.dark-mode i.uil.uil-bookmark,
.dark-mode i.uil.uil-heart,
.dark-mode i.uil.uil-sun {
    color: white;
}

.dark-mode .video-list .video-card .current-episode, 
.dark-mode .video-list .video-card .sub, 
.dark-mode .video-list .video-card .dub {
    color: white !important;
}

.dark-mode .video-list .video-card .title{
    color: white;
}

.dark-mode .comment-form-container, 
.dark-mode .comment-item,
.dark-mode .comments-title,
.dark-mode .loading-text, 
.dark-mode .no-comments-text, 
.dark-mode .error-text, 
.dark-mode .comment-form-container h3,
.dark-mode .comment-author,
.dark-mode .comment-text{
    color: white !important;
}

.dark-mode .comment-date{
    color: var(--pro-secondary) !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--pro-light);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--pro-primary) 0%, var(--pro-secondary) 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--pro-secondary) 0%, var(--pro-primary) 100%);
}

/* Responsive Design */
@media (max-width: 940px) {
    .poster {
        display: block;
        margin: auto;
    }
}

@media (max-width: 768px) {
    .navbar .nav-center {
        display: none;
    }

    .navbar .nav-center.show {
        display: flex;
        position: absolute;
        max-width: 96%;
        right: 0.5rem;
        margin: auto;
        top: 4rem;
        background: var(--pro-surface);
        border-radius: 16px;
        box-shadow: 0 8px 32px var(--pro-shadow);
        border: 2px solid var(--pro-border);
        padding: 1rem;
    }

    .navbar .nav-right .search-button {
        display: block;
    }

    .main-layout .screen-overlay {
        position: absolute;
        left: 0;
        top: 0;
        z-index: 15;
        width: 100%;
        height: 100vh;
        background: rgba(37, 99, 235, 0.3);
        backdrop-filter: blur(4px);
        transition: 0.3s ease;
    }

    body.sidebar-hidden .main-layout .screen-overlay {
        opacity: 0;
        pointer-events: none;
    }

    .main-layout .sidebar {
        position: absolute;
        left: 0;
        top: 0;
        z-index: 20;
        height: 100vh;
        transition: 0.3s ease;
    }

    body.sidebar-hidden .main-layout .sidebar {
        left: -280px;
    }

    .main-layout .sidebar .nav-left {
        display: flex;
    }
}

@media (max-width: 999px) {
    .video-container {
        flex-direction: column;
        gap: 16px;
    }

    .video-main {
        flex: 1;
    }

    .video-sidebar {
        flex: 1;
        min-width: auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .video-container {
        flex-direction: column;
        gap: 16px;
    }

    .video-main {
        flex: 1;
    }

    .video-sidebar {
        flex: 1;
        min-width: auto;
    }

    .profile-container {
        padding: 1.5rem;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-avatar {
        margin-right: 0;
        margin-bottom: 1.25rem;
    }

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

    .detail-label {
        margin-bottom: 0.375rem;
    }

    .anime-details {
        padding: 1.5rem;
    }

    .episodes-section {
        padding: 1.5rem;
    }

    .page-content-details {
        padding: 1.5rem;
    }
}

@media (max-width: 550px) {
    .navbar {
        gap: 0.75rem;
        padding: 0.5rem 0.75rem;
    }

    .main-layout .content-wrapper {
        padding: 0 0.5rem;
    }

    .video-list .video-card .thumbnail-container {
        width: 140px;
    }

    .video-list .video-card .card-info {
        padding: 0.75rem;
    }
}

/* Popular Anime Slider - Isekai Theme */
.popular-anime-section {
    margin: 2rem 0;
    padding: 1rem 0;
}

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

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--isekai-text);
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.slider-controls {
    display: flex;
    gap: 0.5rem;
}

.slider-controls button {
    background: linear-gradient(135deg, var(--isekai-purple) 0%, var(--isekai-pink) 100%);
    color: var(--isekai-white);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px var(--pro-shadow);
}

.slider-controls button:hover {
    background: linear-gradient(135deg, var(--pro-primary) 0%, var(--pro-dark) 100%);
    transform: scale(1.1);
    box-shadow: 0 6px 15px var(--pro-shadow);
}

.slider-controls button:disabled {
    background: var(--pro-text-secondary);
    cursor: not-allowed;
    box-shadow: none;
}

.slider-container {
    overflow: hidden;
    position: relative;
}

.slider-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slider-item {
    flex: 0 0 20%;
    padding: 0 0.5rem;
    box-sizing: border-box;
}

.popular-card {
    text-decoration: none;
    color: inherit;
    display: block;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--pro-shadow);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    border: 2px solid transparent;
    background: linear-gradient(135deg, var(--pro-light) 0%, var(--pro-light) 100%);
}

.popular-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(147, 51, 234, 0.05) 0%,
        rgba(219, 39, 119, 0.03) 50%,
        rgba(168, 85, 247, 0.05) 100%);
    pointer-events: none;
    border-radius: 13px;
}

.popular-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px var(--pro-shadow);
    border-color: var(--pro-dark);
}

.popular-card:hover::before {
    background: linear-gradient(135deg,
        rgba(147, 51, 234, 0.08) 0%,
        rgba(219, 39, 119, 0.05) 50%,
        rgba(168, 85, 247, 0.08) 100%);
}

.popular-card .thumbnail-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 13px 13px 0 0;
}

.popular-card .thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
    filter: brightness(1.02) contrast(1.05) saturate(1.1);
}

.popular-card:hover .thumbnail {
    transform: scale(1.1);
    filter: brightness(1.08) contrast(1.1) saturate(1.2);
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.badge.sub {
    background: linear-gradient(135deg, var(--pro-primary) 0%, var(--pro-dark) 100%);
    color: var(--pro-light);
}

.badge.dub {
    background: linear-gradient(135deg, var(--pro-primary) 0%, var(--pro-dark) 100%);
    color: var(--pro-light);
}

.rating {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--pro-dark);
    color: var(--pro-light);
    padding: 6px 10px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    padding: 1.5rem;
    color: var(--pro-light);
    border-radius: 0 0 13px 13px;
}

.anime-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    color: var(--pro-light);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Dark mode adjustments for slider */
.dark-mode .popular-card {
    background: linear-gradient(135deg, var(--pro-text-secondary) 0%, var(--pro-light) 100%);
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.2);
}

.dark-mode .popular-card::before {
    background: linear-gradient(135deg,
        rgba(88, 28, 135, 0.08) 0%,
        rgba(139, 69, 193, 0.05) 50%,
        rgba(88, 28, 135, 0.08) 100%);
}

.dark-mode .popular-card:hover {
    box-shadow: 0 12px 30px rgba(147, 51, 234, 0.3);
}

.dark-mode .section-header h2,
.dark-mode .anime-title,
.dark-mode .badge.sub,
.dark-mode .badge.dub,
.dark-mode .rating {
    color: white;
}


/* Responsive design for slider */
@media (max-width: 1024px) {
    .slider-item {
        flex: 0 0 25%;
    }
}

@media (max-width: 768px) {
    .section-header {
        gap: 1rem;
    }
    .section-header h2{
        font-size: 1.25rem;
    }

    .slider-controls {
        align-self: flex-end;
    }

    .slider-item {
        flex: 0 0 33.333%;
    }
}

@media (max-width: 640px) {
    .slider-item {
        flex: 0 0 50%;
    }
}

@media (max-width: 480px) {
    .slider-item {
        flex: 0 0 100%;
        padding: 0 0.25rem;
    }
}