/* Seinen Theme - Mature, Muted Tones Aesthetic */
/* Importing Google Font */
@import url("https://fonts.googleapis.com/css2?family=Crimson+Pro:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap");

/* Base Colors - Muted, Sophisticated Palette */
:root {
    --charcoal: #2C2C2E;
    --slate-gray: #3A3A3C;
    --warm-gray: #48484A;
    --muted-burgundy: #8B4049;
    --dusty-olive: #5A6B4D;
    --sage-green: #7B8F7D;
    --muted-navy: #3D4E5C;
    --soft-beige: #C9B8A8;
    --cream: #E8DDD0;
    --dark-bg: #1C1C1E;
    --dark-surface: #252527;
    --dark-elevated: #2E2E30;
    --text-primary: #E8E8E8;
    --text-secondary: #A8A8AA;
    --text-muted: #6E6E70;
    --accent-gold: #B8956A;
    --border-subtle: rgba(200, 200, 200, 0.1);
}

/* Dark Mode Colors */
.dark-mode {
    --charcoal: #1A1A1C;
    --slate-gray: #242426;
    --warm-gray: #353537;
    --muted-burgundy: #724048;
    --dusty-olive: #4A5A3F;
    --sage-green: #657569;
    --muted-navy: #2F3E4A;
    --soft-beige: #B5A599;
    --cream: #D4C9BC;
    --dark-bg: #121214;
    --dark-surface: #1A1A1C;
    --dark-elevated: #222224;
    --text-primary: #F0F0F0;
    --text-secondary: #B8B8BA;
    --text-muted: #808082;
    --accent-gold: #C5A578;
    --border-subtle: rgba(200, 200, 200, 0.15);
}

/* Basic Elements */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Crimson Pro', serif, sans-serif;
    scrollbar-width: thin;
    scrollbar-color: var(--warm-gray) var(--dark-bg);
}

/* Body Background - Subtle Texture */
body {
    background: 
        linear-gradient(135deg, var(--dark-bg) 0%, var(--charcoal) 50%, var(--slate-gray) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    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(--dark-surface) 0%, var(--dark-elevated) 100%);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid var(--border-subtle);
    backdrop-filter: blur(10px);
}

.navbar {
    display: flex;
    gap: 2rem;
    align-items: center;
    padding: 0.5rem 1rem;
    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: 32px;
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid var(--accent-gold);
    transition: all 0.3s ease;
}

:where(.navbar, .sidebar) :where(.user-image):hover {
    border-color: var(--soft-beige);
    box-shadow: 0 0 8px rgba(184, 149, 106, 0.3);
}

:where(.navbar, .sidebar) .nav-section .nav-button {
    border: none;
    height: 40px;
    width: 40px;
    cursor: pointer;
    background: none;
    border-radius: 50%;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

:where(.navbar, .sidebar) .nav-section .nav-button:hover {
    background: var(--warm-gray) !important;
    color: var(--accent-gold);
}

.navbar .nav-logo {
    display: flex;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-image {
    max-width: 200px;
    height: auto;
    filter: grayscale(20%) contrast(0.9);
    transition: filter 0.3s ease;
}

.logo-image:hover {
    filter: grayscale(0%) contrast(1);
}

@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: var(--accent-gold) !important;
    font-weight: 600;
    font-family: 'Crimson Pro', serif;
    letter-spacing: 1px;
}

.nav-link {
    color: var(--text-primary) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-gold) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.navbar .nav-center {
    gap: 0.5rem;
    width: 100%;
    display: flex;
    justify-content: center;
}

.navbar .search-form {
    flex: 1;
    height: 40px;
    max-width: 550px;
}

#search-results {
    position: absolute;
    top: 100%;
    margin: auto;
    width: 100%;
    max-width: 550px;
    max-height: 300px;
    overflow-y: auto;
    background: var(--dark-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    border-top: none;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid var(--border-subtle);
    cursor: pointer;
    transition: background 0.2s ease;
}

a.search-result-item {
    text-decoration: none;
}

a.search-result-item img{
    width: 50px;
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    margin-right: 5px;
}

.search-result-details h4{
    margin: 0;
    font-size: 1rem;
    color: var(--text-primary);
}

.search-result-details .alt-title {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.search-result-item:hover {
    background-color: var(--warm-gray);
}

.navbar .search-form .search-input {
    position: relative;
    width: 100%;
    height: 100%;
    font-size: 1rem;
    padding: 0 1rem;
    outline: none;
    color: var(--text-primary);
    background: var(--dark-elevated);
    border-radius: 20px 0 0 20px;
    border: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}

.navbar .search-form .search-input:focus {
    border-color: var(--accent-gold);
    background: var(--warm-gray);
}

.navbar .search-form .search-button {
    height: 40px;
    width: auto;
    padding: 0 1.25rem;
    border-radius: 0 20px 20px 0;
    border: 1px solid var(--border-subtle);
    border-left: 0;
    background: var(--dark-elevated);
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.navbar .search-form .search-button:hover {
    background: var(--warm-gray);
    color: var(--accent-gold);
}

.navbar .nav-center .mic-button {
    background: var(--dark-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

.navbar .nav-right .search-button {
    display: none;
}

/* Main Layout */
.main-layout {
    display: flex;
    overflow-y: auto;
    scrollbar-color: var(--warm-gray) var(--dark-bg);
}

.main-layout .sidebar {
    width: 0;
    overflow: hidden;
    padding: 0;
    background: var(--dark-surface);
    border-right: 1px solid var(--border-subtle);
    transition: width 0.3s ease, padding 0.3s ease;
}

body:not(.sidebar-hidden) .main-layout .sidebar {
    width: 280px;
    padding: 0 0.7rem 0;
}

body.sidebar-hidden .main-layout .sidebar {
    width: 0;
    padding: 0;
}

.main-layout .sidebar .nav-left {
    display: none;
    padding: 0.5rem 0.3rem;
}

.sidebar .links-container {
    padding: 1rem 0 2rem;
    overflow-y: auto;
    height: calc(100vh - 60px);
    scrollbar-width: thin;
    scrollbar-color: var(--warm-gray) transparent;
}

.sidebar .link-section .link-item {
    display: flex;
    color: var(--text-primary);
    white-space: nowrap;
    align-items: center;
    font-size: 0.938rem;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.25rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar .link-section .link-item:hover {
    background: var(--warm-gray);
    color: var(--accent-gold);
    border-left-color: var(--accent-gold);
}

.sidebar .link-section a.link-item.active {
    background: var(--muted-burgundy);
    color: var(--cream);
    border-left-color: var(--accent-gold);
}

.sidebar .link-section .link-item i {
    font-size: 1.4rem;
    margin-right: 0.625rem;
}

.sidebar .link-section .section-title {
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 0.875rem;
    margin: 1rem 0 0.5rem 0.5rem;
    font-family: 'Crimson Pro', serif;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.sidebar .section-separator {
    height: 1px;
    margin: 0.64rem 0;
    background: var(--border-subtle);
}

.main-layout .content-wrapper {
    padding: 0 1rem;
    overflow-x: hidden;
    width: 100%;
}

.content-wrapper .category-list {
    display: flex;
    overflow-x: auto;
    gap: 0.75rem;
    padding: 0.75rem 0 0.7rem;
    scrollbar-width: none;
}

.category-list .category-button {
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    font-weight: 500;
    font-size: 0.94rem;
    border-radius: 20px;
    white-space: nowrap;
    color: var(--text-primary);
    padding: 0.4rem 0.75rem;
    background: var(--dark-elevated);
    transition: all 0.3s ease;
}

.category-list .category-button.active {
    color: var(--dark-bg);
    background: var(--accent-gold);
    pointer-events: none;
    border-color: var(--accent-gold);
}

.category-list .category-button:not(.active):hover {
    background: var(--warm-gray);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

/* Video Grid - Horizontal List Design with Distinct Style */
.content-wrapper .video-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding: 1.5rem 0;
}

@media (min-width: 540px) {
    .content-wrapper .video-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
        margin: auto;
    }
}

@media (min-width: 700px) {
    .content-wrapper .video-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 850px) {
    .content-wrapper .video-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.8rem;
    }
}

@media (max-width: 939px) {
    .anime-details .poster {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .anime-details {
        justify-content: center;
    }
}

@media (min-width: 940px) {
    .anime-details .poster{
        display: block;
        margin: auto;
    }
}

@media (min-width: 1124px) {
    .content-wrapper .video-list {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

.video-list .video-card {
    text-decoration: none;
    background: linear-gradient(to bottom, var(--dark-elevated) 0%, var(--dark-surface) 100%);
    border-radius: 12px;
    height: auto;
    margin-bottom: 0;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.video-list .video-card:hover {
    transform: translateY(-15px) rotateY(2deg);
    box-shadow: 0 20px 60px rgba(184, 149, 106, 0.25);
    border-color: rgba(184, 149, 106, 0.8);
}

.video-list .video-card .thumbnail-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    height: 350px !important;
    max-height: 100%;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    background: var(--charcoal);
    z-index: 1;
}

.video-list .video-card .thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: brightness(0.9) contrast(1.1);
}

.video-list .video-card:hover .thumbnail {
    transform: scale(1.15) skewY(2deg);
    filter: brightness(1.2) contrast(1.3) saturate(1.3);
}

.video-list .video-card .duration {
    position: absolute;
    right: 12px;
    bottom: 12px;
    color: #fff;
    font-size: 0.75rem;
    padding: 5px 12px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.7);
    font-weight: 600;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    z-index: 10;
}

.video-list .video-card .current-episode {
    position: absolute;
    left: 12px;
    bottom: 12px;
    color: #fff;
    font-size: 0.7rem;
    padding: 5px 10px;
    border-radius: 4px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    font-weight: 600;
    backdrop-filter: blur(8px);
    z-index: 10;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.video-list .video-card .title {
    position: relative;
    font-size: 1.05rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    cursor: pointer;
    z-index: 5;
    background: transparent;
    color: var(--text-primary);
    text-align: left;
    border-radius: 0;
    padding: 16px 14px;
    border: none;
    margin-bottom: 5px;
    backdrop-filter: none;
    transition: all 0.3s ease;
    letter-spacing: 0;
    text-transform: none;
    text-wrap: nowrap;
}

.video-list .video-card:hover .title {
    background: rgba(184, 149, 106, 0.1);
    color: var(--accent-gold);
    padding: 16px 14px;
}

.video-list .video-card .sub {
    position: absolute;
    left: 12px;
    top: 12px;
    color: #fff;
    font-size: 0.7rem;
    padding: 5px 10px;
    border-radius: 3px;
    background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
    font-weight: 600;
    margin: 0;
    display: inline-block;
    z-index: 10;
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    border: none;
}

.video-list .video-card .dub {
    position: absolute;
    left: 12px;
    top: 12px;
    color: #fff;
    font-size: 0.7rem;
    padding: 5px 10px;
    border-radius: 3px;
    background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
    font-weight: 600;
    margin: 0;
    display: inline-block;
    z-index: 10;
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.3);
    border: none;
}

/* Anime Details */
.anime-details {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    background-color: var(--dark-surface);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    padding: 2rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-subtle);
}

img.anime-poster {
    width: 100%;
    position: relative;
    max-width: 250px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-subtle);
}

.anime-info h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--accent-gold);
    font-family: 'Crimson Pro', serif;
    font-weight: 600;
}

.anime-meta p {
    margin: 0.2rem 0;
    color: var(--text-primary);
}

.genre-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.genre-tag {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    border: 1px solid var(--accent-gold);
    background: rgba(184, 149, 106, 0.1);
    transition: all 0.3s ease;
}

.genre-tag a {
    text-decoration: none;
    color: var(--accent-gold);
}

.genre-tag:hover {
    background: rgba(184, 149, 106, 0.2);
    transform: translateY(-2px);
}

.episodes-section {
    background-color: var(--dark-surface);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    padding: 1rem;
    margin-top: 1rem;
    margin-bottom: 5rem;
    border: 1px solid var(--border-subtle);
}

.anime-synopsis {
    background-color: var(--dark-surface);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    padding: 1rem;
    border: 1px solid var(--border-subtle);
}

.episode-list {
    height: 250px;
    max-height: 400px;
    overflow-y: auto;
    border-top: 1px solid var(--border-subtle);
    padding-top: 1rem;
    gap: 0.2em;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

@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(--muted-burgundy) 0%, var(--accent-gold) 100%);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--soft-beige) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.btn-confirm{
    justify-content: center;
    align-items: center;
}

.btn-remove {
    justify-content: center;
    align-items: center;
    color: var(--text-primary);
    background: var(--muted-burgundy);
    border: none;
    border-radius: 5px;
    margin-bottom: 0.3rem;
    padding: 0.4rem 0.8rem;
}

/* Episode Page */
.video-container {
    display: flex;
    gap: 20px;
    margin-top: 2rem;
}

.video-main {
    flex: 2;
}

.video-sidebar {
    flex: 1;
    min-width: 250px;
}

.video-sources {
    position: relative;
    width: 100%;
    padding-top: 56.50%;
    aspect-ratio: 19/6;
    margin-bottom: 15px;
}

.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: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-subtle);
}

.other-episodes {
    padding: 15px;
    border-radius: 8px;
    max-height: 500px;
    overflow-y: auto;
    background: var(--dark-surface);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.other-episodes-list {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 0.5rem;
}

@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(1, 1fr);
    }
}

.other-episodes-list a {
    color: var(--text-primary);
    padding: 10px;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    background: var(--dark-elevated);
    border: 1px solid var(--border-subtle);
}

.episode-poster{
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--border-subtle);
}

.other-episodes-list a:hover {
    background: var(--warm-gray);
    border-color: var(--accent-gold);
}

.current-episode {
    background: var(--muted-burgundy) !important;
    color: var(--cream) !important;
    border-color: var(--accent-gold) !important;
}

.episode-title {
    font-size: small;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.episode-details {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    background-color: var(--dark-surface);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    padding: 2rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-subtle);
}

.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: var(--accent-gold);
    padding: 0.2rem;
    border-radius: 6px;
    color: var(--dark-bg);
    text-decoration: none;
    gap: 0.3rem;
    transition: all 0.3s ease;
    font-weight: 600;
    margin: 0.1rem;
}

a.epi-btn:hover {
    background: var(--soft-beige);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.server-selector {
    margin: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#video-server {
    width: 200px;
    padding: 0.5rem;
    font-size: 1rem;
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    background-color: var(--dark-elevated);
    color: var(--text-primary);
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

#video-server:hover {
    border-color: var(--accent-gold);
    background-color: var(--warm-gray);
}

#video-server:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.related-anime-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    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(--text-primary);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    background: var(--dark-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.related-anime-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.related-anime-grid .related-anime-item .related-anime-poster {
    width: 100%;
    height: 200px;
    border-radius: 6px;
    max-width: 100%;
    border: 1px solid var(--border-subtle);
}

.related-anime-title {
    margin-top: 8px;
    font-size: 0.8em;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    max-width: 100%;
}

/* Bookmarks */
.bookmarks-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

@media (min-width: 768px) {
    .bookmarks-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

.bookmark-card {
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    background: var(--dark-surface);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

a.bookmark-card {
    text-decoration: none;
}

.bookmark-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
    border-color: var(--accent-gold);
}

.bookmark-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.bookmark-actions {
    display: flex;
    margin-top: 10px;
    align-items: center;
    top: 0;
    left: 0.1rem;
    position: absolute;
}

.bookmark-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--muted-burgundy);
    color: var(--text-primary);
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    z-index: 15;
}

.bookmark-btn:hover {
    background-color: var(--accent-gold);
    transform: translateY(-2px);
}

.bookmark-btn.bookmarked {
    background-color: var(--dusty-olive);
}

.bookmarks-grid .bookmark-card .bookmark-episodes {
    position: absolute;
    right: 0.1rem;
    top: 0.2rem;
    color: var(--text-primary);
    font-size: 0.875rem;
    padding: 0 0.3rem;
    border-radius: 0.3rem;
    background: rgba(28, 28, 30, 0.85);
    font-weight: 600;
    backdrop-filter: blur(5px);
}

.bookmarks-grid .bookmark-card .bookmark-title {
    position: absolute;
    font-size: 0.9rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    cursor: pointer;
    bottom: 0rem;
    left: 0;
    right: 0;
    background: rgba(139, 64, 73, 0.9);
    color: var(--text-primary);
    text-align: center;
    border-radius: 0 0 8px 8px;
    white-space: nowrap;
    padding: 0.5rem;
    backdrop-filter: blur(10px);
}

/* Profile */
.profile-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--dark-surface);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    margin-bottom: 2rem;
    margin-top: 1rem;
    border: 1px solid var(--border-subtle);
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-subtle);
}

.profile-avatar img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-gold);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.profile-info h2 {
    margin: 0 0 0.5rem 0;
    color: var(--accent-gold);
    font-size: 2rem;
    font-weight: 600;
    font-family: 'Crimson Pro', serif;
}

.profile-info p {
    margin: 0;
    color: var(--text-primary);
    font-size: 1rem;
}

.profile-details {
    background-color: var(--dark-elevated);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-subtle);
}

.profile-details h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--accent-gold);
    font-size: 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0.5rem;
    font-family: 'Crimson Pro', serif;
}

.detail-row {
    display: flex;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    flex: 0 0 120px;
    color: var(--text-secondary);
    font-weight: 600;
}

.detail-value {
    flex: 1;
    color: var(--text-primary);
}

/* Social Share */
.sbutton {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background-color: var(--dark-elevated);
    padding: 10px 20px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    border: 1px solid var(--border-subtle);
}

.sbutton a {
    text-decoration: none;
    color: var(--text-primary);
    position: relative;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.sbutton a:hover {
    transform: scale(1.2);
    color: var(--accent-gold);
}

.page-views {
    background: var(--accent-gold);
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dark-bg);
    font-size: 14px;
    margin-left: 1rem;
    padding: 0.5rem;
    border: 1px solid var(--accent-gold);
    border-radius: 6px;
    font-weight: 600;
}

/* Anime Likes */
.anime-interaction-container {
    border: 1px solid var(--border-subtle);
    background: var(--dark-surface);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    margin: 0.3rem 0;
}

.anime-interaction-container p {
    font-weight: 600;
    font-size: 20px;
    color: var(--accent-gold);
}

.like-unlike-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.like-btn, .unlike-btn {
    display: flex;
    align-items: center;
    background-color: var(--dark-elevated);
    border: 1px solid var(--border-subtle);
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.52rem;
    color: var(--text-primary);
}

.like-btn i, .unlike-btn i {
    margin-right: 5px;
}

.like-btn.active {
    background-color: var(--sage-green);
    color: var(--text-primary);
    border-color: var(--sage-green);
}

.unlike-btn.active {
    background-color: var(--muted-burgundy);
    color: var(--text-primary);
    border-color: var(--muted-burgundy);
}

/* Pagination */
.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    justify-content: center;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.page-item {
    margin: 0 5px;
}

.page-item a {
    display: inline-block;
    padding: 8px 12px;
    font-size: 14px;
    color: var(--text-primary);
    text-decoration: none;
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    background: var(--dark-elevated);
    transition: all 0.3s ease;
}

.page-item a:hover {
    background: var(--warm-gray);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    transform: scale(1.05);
}

.page-item.active a {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--dark-bg);
    pointer-events: none;
}

/* Footer */
footer {
    background: var(--dark-surface);
    color: var(--text-primary);
    border-top: 1px solid var(--border-subtle);
    text-align: center;
    padding: 2rem 0;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.3);
}

/* User Profile Dropdown */
.user-profile {
    position: relative;
    display: inline-block;
    z-index: 20;
}

.user-dropdown {
    display: none;
    position: absolute;
    right: 0;
    background-color: var(--dark-surface);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    list-style: none;
    padding: 10px;
    margin: 0;
    border-radius: 8px;
    z-index: 999;
    width: 200px;
    border: 1px solid var(--border-subtle);
}

.user-dropdown li {
    margin: 5px 0;
    display: flex;
    justify-items: center;
    padding-bottom: 0.5rem;
}

.user-dropdown li a {
    text-decoration: none;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.user-dropdown li a:hover {
    color: var(--accent-gold);
}

/* Download Buttons */
.download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.download-btn {
    background: var(--accent-gold);
    border: none;
    color: var(--dark-bg);
    padding: 12px 24px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    font-weight: 600;
}

.download-btn:hover {
    background: var(--soft-beige);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.download-btn:active {
    transform: translateY(0px);
}

/* Page Content */
.page-content-details {
    max-width: 1200px;
    width: 100%;
    margin: 2rem auto;
    padding: 2rem;
    background-color: var(--dark-surface);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-subtle);
}

.page-content-details .featured-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-subtle);
}

.page-content-details .page-metadata {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0.75rem;
}

.page-content-details p {
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.page-content-details h1,
.page-content-details h2,
.page-content-details h3,
.page-content-details h4 {
    margin-bottom: 1rem;
    color: var(--accent-gold);
    font-family: 'Crimson Pro', serif;
}

.page-content-details h1 {
    text-align: center;
    font-size: 2.5rem;
    border-bottom: 2px solid var(--accent-gold);
    padding-bottom: 0.75rem;
}

.page-content-details ul,
.page-content-details ol {
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.page-content-details ul li {
    list-style: disc;
    margin-bottom: 0.5rem;
}

.page-content-details ol li {
    list-style: decimal;
    margin-bottom: 0.5rem;
}

/* Dark Mode Overrides */
.dark-mode body {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--charcoal) 50%, var(--slate-gray) 100%);
    color: var(--text-primary);
}

.dark-mode .video-list .video-card .duration{
    background: rgba(18, 18, 20, 0.9);
    color: var(--text-primary);
}

.dark-mode .video-list .video-card .current-episode{
    color: var(--text-primary) !important;
}

.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: var(--text-secondary);
    font-size: larger;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar .nav-center {
        display: none;
    }

    .navbar .nav-center.show {
        display: flex;
        position: absolute;
        max-width: 96%;
        right: 0.2rem;
        margin: auto;
        top: 3rem;
        background: var(--dark-surface);
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
        border: 1px solid var(--border-subtle);
    }

    .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(28, 28, 30, 0.9);
        transition: 0.2s 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.2s 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;
    }


    .profile-container {
        padding: 1rem;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-avatar {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .detail-row {
        flex-direction: column;
    }

    .detail-label {
        margin-bottom: 0.25rem;
    }

    .anime-details {
        flex-direction: column;
        align-items: center;
        padding: 0.5rem;
    }

    .genre-tags {
        justify-content: center;
    }

    .episodes-section {
        padding: 1.5rem;
    }

    .episodes-section h2 {
        text-align: center;
    }

    .page-content-details {
        padding: 1rem;
    }

    .sbutton {
        flex-wrap: wrap;
        gap: 8px;
        padding: 8px;
    }

    .sbutton a {
        width: 38px;
        height: 38px;
    }

    .page-views {
        margin-left: 0.2rem;
        gap: 2px;
        font-size: 12px;
    }
}

@media (max-width: 750px) {
    .sbutton {
        flex-wrap: wrap;
        gap: 5px;
        padding: 5px;
    }

    .sbutton a {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 550px) {
    .navbar {
        gap: 0.5rem;
        padding: 0.1rem 0.3rem;
    }

    .main-layout .content-wrapper {
        padding: 0px;
    }

    .sbutton {
        flex-wrap: wrap;
        gap: 2px;
        padding: 2px;
    }

    .sbutton a {
        width: 30px;
        height: 30px;
    }

    .sbutton a::before {
        padding: 2px 5px;
    }
}

/* Disqus Comments Styling */
#disqus_thread {
    background: var(--dark-surface);
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

#disqus_thread iframe {
    background: var(--dark-surface) !important;
    border-radius: 8px !important;
}

.disqus-comment {
    background: var(--dark-elevated) !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: 8px !important;
    color: var(--text-primary) !important;
}

.disqus-comment-header {
    border-bottom: 1px solid var(--border-subtle) !important;
}

.disqus-comment-author {
    color: var(--accent-gold) !important;
    font-weight: 600;
}

.disqus-comment-meta {
    color: var(--text-secondary) !important;
    font-size: 0.85rem;
}

.disqus-button {
    background: var(--accent-gold) !important;
    color: var(--dark-bg) !important;
    border: none !important;
    border-radius: 6px !important;
    font-weight: 600;
    transition: all 0.3s ease !important;
}

.disqus-button:hover {
    background: var(--soft-beige) !important;
}

.disqus-textarea {
    background: var(--dark-elevated) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: 6px !important;
}

.disqus-textarea:focus {
    border-color: var(--accent-gold) !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--warm-gray);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
}

#disqus_thread #reactions-promotion.reactions-refresh, #reactions.reactions-refresh{
    color: var(--accent-gold) !important;
}

/* Custom Comments Styling - Seinen Theme */
.custom-comments-container {
    background: var(--dark-surface);
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-gold);
    font-family: 'Crimson Pro', serif;
    font-weight: 600;
}

.comment-form-container {
    background: var(--dark-elevated) !important;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.comment-form-container h3 {
    margin-bottom: 1rem;
    color: var(--accent-gold);
    font-family: 'Crimson Pro', serif;
}

.comment-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    resize: vertical;
    background: var(--dark-surface);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.comment-textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.comment-submit-btn {
    background: var(--accent-gold);
    color: var(--dark-bg);
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}

.comment-submit-btn:hover {
    background: var(--soft-beige);
    transform: translateY(-2px);
}

.comment-login-prompt {
    background: var(--dark-elevated);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
}

.comment-login-prompt a {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 600;
}

.comment-item {
    background: var(--dark-elevated) !important;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.comment-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.reply-comment {
    margin-left: 2rem;
    margin-top: 0.5rem;
    background: var(--dark-surface);
    border: 1px solid var(--border-subtle);
}

.comment-author {
    font-weight: 600;
    color: var(--accent-gold);
    font-family: 'Crimson Pro', serif;
}

.comment-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.comment-text {
    color: var(--text-primary);
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

.like-btn, .dislike-btn, .unlike-btn {
    background: var(--dark-surface) !important;
    border: 1px solid var(--border-subtle);
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    color: var(--text-primary);
    font-weight: 600;
}

.like-btn:hover {
    background: var(--sage-green);
    border-color: var(--sage-green);
}

.dislike-btn:hover {
    background: var(--muted-burgundy);
    border-color: var(--muted-burgundy);
}

.like-btn.active {
    background: var(--sage-green);
    border-color: var(--sage-green);
    color: var(--text-primary);
}

.dislike-btn.active {
    background: var(--muted-burgundy);
    border-color: var(--muted-burgundy);
    color: var(--text-primary);
}

.pagination-btn {
    background: var(--accent-gold);
    color: var(--dark-bg);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    background: var(--soft-beige);
    transform: translateY(-2px);
}

.pagination-info {
    color: var(--text-primary);
    font-weight: 600;
}

.loading-text, .no-comments-text {
    text-align: center;
    color: var(--text-secondary);
    padding: 1rem;
}

.error-text {
    text-align: center;
    color: var(--muted-burgundy);
    padding: 1rem;
}

/* Dark Mode Custom Comments Styling - Seinen Theme */
.dark-mode .custom-comments-container {
    background: var(--dark-surface);
    border-color: var(--border-subtle);
}

.dark-mode .comments-title {
    color: var(--accent-gold);
    text-shadow: 0 0 5px rgba(184, 149, 106, 0.3);
}

.dark-mode .comment-form-container {
    background: var(--dark-elevated);
    border-color: var(--border-subtle);
}

.dark-mode .comment-form-container h3 {
    color: var(--accent-gold);
}

.dark-mode .comment-textarea {
    background: var(--dark-elevated);
    color: var(--text-primary);
    border-color: var(--border-subtle);
}

.dark-mode .comment-textarea:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 10px rgba(184, 149, 106, 0.2);
}

.dark-mode .comment-submit-btn {
    background: var(--accent-gold);
    color: var(--dark-bg);
}

.dark-mode .comment-submit-btn:hover {
    background: var(--soft-beige);
    box-shadow: 0 4px 12px rgba(184, 149, 106, 0.3);
}

.dark-mode .comment-login-prompt {
    background: var(--dark-elevated);
    border-color: var(--border-subtle);
    color: var(--text-primary);
}

.dark-mode .comment-login-prompt a {
    color: var(--accent-gold);
}

.dark-mode .comment-item {
    background: var(--dark-elevated);
    border-color: var(--border-subtle);
}

.dark-mode .comment-item:hover {
    box-shadow: 0 2px 8px rgba(184, 149, 106, 0.2);
    border-color: rgba(184, 149, 106, 0.3);
}

.dark-mode .reply-comment {
    background: var(--dark-surface);
    border-color: rgba(184, 149, 106, 0.2);
}

.dark-mode .comment-author {
    color: var(--accent-gold);
}

.dark-mode .comment-date {
    color: var(--text-secondary);
}

.dark-mode .comment-text {
    color: var(--text-primary);
}

.dark-mode .like-btn,
.dark-mode .dislike-btn {
    background: var(--dark-surface);
    border-color: var(--border-subtle);
    color: var(--text-primary);
}

.dark-mode .like-btn:hover {
    background: rgba(123, 143, 125, 0.2);
    border-color: var(--sage-green);
    color: var(--sage-green);
}

.dark-mode .dislike-btn:hover {
    background: rgba(114, 64, 72, 0.2);
    border-color: var(--muted-burgundy);
    color: var(--muted-burgundy);
}

.dark-mode .like-btn.active {
    background: var(--sage-green);
    border-color: var(--sage-green);
    color: var(--dark-bg);
}

.dark-mode .dislike-btn.active {
    background: var(--muted-burgundy);
    border-color: var(--muted-burgundy);
    color: var(--text-primary);
}

.dark-mode .pagination-btn {
    background: var(--accent-gold);
    color: var(--dark-bg);
}

.dark-mode .pagination-btn:hover {
    background: var(--soft-beige);
}

.dark-mode .pagination-info {
    color: var(--text-primary);
}

.dark-mode .loading-text,
.dark-mode .no-comments-text {
    color: var(--text-secondary);
}

.dark-mode .error-text {
    color: var(--muted-burgundy);
}

/* Popular Anime Slider - Seinen 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(--seinen-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(--seinen-blue) 0%, var(--seinen-accent) 100%);
    color: var(--seinen-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(--seinen-shadow);
}

.slider-controls button:hover {
    background: linear-gradient(135deg, var(--seinen-accent) 0%, var(--seinen-dark) 100%);
    transform: scale(1.1);
    box-shadow: 0 6px 15px var(--seinen-shadow);
}

.slider-controls button:disabled {
    background: var(--seinen-gray);
    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(--seinen-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(--seinen-white) 0%, var(--seinen-light) 100%);
}

.popular-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(30, 58, 138, 0.05) 0%,
        rgba(37, 99, 235, 0.03) 50%,
        rgba(59, 130, 246, 0.05) 100%);
    pointer-events: none;
    border-radius: 13px;
}

.popular-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px var(--seinen-shadow);
    border-color: var(--seinen-accent);
}

.popular-card:hover::before {
    background: linear-gradient(135deg,
        rgba(30, 58, 138, 0.08) 0%,
        rgba(37, 99, 235, 0.05) 50%,
        rgba(59, 130, 246, 0.08) 100%);
}

.popular-card .thumbnail-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 13px 13px 0 0;
}

.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(--seinen-accent) 0%, var(--seinen-blue) 100%);
    color: var(--seinen-white);
}

.badge.dub {
    background: linear-gradient(135deg, var(--seinen-green) 0%, var(--seinen-accent) 100%);
    color: var(--seinen-white);
}

.rating {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--seinen-white);
    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(--seinen-white);
    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);
    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(--seinen-gray) 0%, var(--seinen-light) 100%);
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.2);
}

.dark-mode .popular-card::before {
    background: linear-gradient(135deg,
        rgba(17, 24, 39, 0.08) 0%,
        rgba(31, 41, 55, 0.05) 50%,
        rgba(17, 24, 39, 0.08) 100%);
}

.dark-mode .popular-card:hover {
    box-shadow: 0 12px 30px rgba(30, 58, 138, 0.3);
}

.dark-mode .section-header h2 {
    color: var(--seinen-text);
}

/* 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;
    }
}