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

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #16162a;
    --bg-card-hover: #1e1e3a;
    --bg-glass: rgba(22, 22, 42, 0.75);
    --accent: #6c5ce7;
    --accent-light: #a29bfe;
    --accent-glow: rgba(108, 92, 231, 0.3);
    --text-primary: #eaeaf0;
    --text-secondary: #8888a8;
    --text-muted: #555570;
    --danger: #ff6b6b;
    --success: #51cf66;
    --warning: #ffd43b;
    --border: rgba(255, 255, 255, 0.07);
    --gradient-1: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    --gradient-2: linear-gradient(135deg, #fd79a8 0%, #6c5ce7 100%);
    --gradient-dark: linear-gradient(180deg, rgba(10, 10, 15, 0) 0%, rgba(10, 10, 15, 0.85) 65%, rgba(10, 10, 15, 1) 100%);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --nav-height: 60px;
}

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

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

img {
    max-width: 100%;
    height: auto;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 5px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-light);
}

/* ==============================================
   NAVBAR — Premium Glassmorphism
   ============================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.82);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    height: var(--nav-height);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.96);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

.nav-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Brand */
.nav-brand {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.75px;
    flex-shrink: 0;
    transition: var(--transition);
}

.nav-brand:hover {
    filter: brightness(1.2);
}

/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    flex: 1;
    justify-content: center;
}

.nav-links li {
    flex-shrink: 0;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: var(--transition);
    position: relative;
}

.nav-links a i {
    font-size: 0.75rem;
    opacity: 0.7;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(108, 92, 231, 0.12);
}

.nav-links a.active {
    color: var(--accent-light);
    background: rgba(108, 92, 231, 0.15);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

/* Admin link special styling */
.nav-links a.nav-admin {
    color: var(--warning);
}

.nav-links a.nav-admin:hover {
    background: rgba(255, 212, 59, 0.1);
}

/* User link */
.nav-links a.nav-user {
    color: var(--accent-light);
}

/* Logout button */
.nav-links .nav-logout-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.8rem;
    font-family: inherit;
    padding: 0.45rem 0.55rem;
    border-radius: 8px;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.nav-links .nav-logout-btn:hover {
    color: var(--danger);
    background: rgba(255, 107, 107, 0.1);
}

/* Search */
.nav-search {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-search input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 0.45rem 2.2rem 0.45rem 1rem;
    color: var(--text-primary);
    font-size: 0.82rem;
    width: 200px;
    outline: none;
    transition: var(--transition);
    font-family: var(--font-primary);
}

.nav-search input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
    width: 260px;
    background: rgba(255, 255, 255, 0.08);
}

.nav-search input::placeholder {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.nav-search button {
    position: absolute;
    right: 4px;
    background: var(--gradient-1);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.7rem;
}

.nav-search button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 12px var(--accent-glow);
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-toggle:hover {
    border-color: var(--accent);
    background: rgba(108, 92, 231, 0.1);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    margin-top: var(--nav-height);
    min-height: calc(100vh - var(--nav-height));
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== SECTION TITLES ===== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-top: 2rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.section-title .icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #fff;
    flex-shrink: 0;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
    margin-left: 1rem;
}

.view-all {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent-light);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.view-all:hover {
    color: var(--accent);
    gap: 0.65rem;
}

/* ===== ANIME GRID ===== */
.anime-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
    gap: 1.15rem;
}

.anime-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
}

.anime-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(108, 92, 231, 0.12);
    border-color: rgba(108, 92, 231, 0.2);
}

.anime-card .poster {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--bg-secondary);
}

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

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

.anime-card .poster .overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-dark);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0.75rem;
    opacity: 0;
    transition: var(--transition);
}

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

.anime-card .badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
    letter-spacing: 0.3px;
}

.badge-ongoing {
    background: var(--accent);
    color: white;
}

.badge-completed {
    background: var(--success);
    color: #111;
}

.badge-episode {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    left: auto;
    background: rgba(0, 0, 0, 0.75);
    color: var(--accent-light);
    backdrop-filter: blur(4px);
}

.anime-card .info {
    padding: 0.65rem 0.75rem;
}

.anime-card .info h3 {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.3rem;
}

.anime-card .info .meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.68rem;
    color: var(--text-secondary);
}

.anime-card .info .rating {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    color: var(--warning);
}

/* ===== GENRE TAGS ===== */
.genre-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.5rem;
}

.genre-tag {
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 500;
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid rgba(108, 92, 231, 0.2);
    color: var(--accent-light);
    transition: var(--transition);
}

.genre-tag:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-1px);
}

/* ===== HERO BANNER ===== */
.hero {
    position: relative;
    height: 420px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    filter: blur(2px) brightness(0.35);
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 10, 15, 0.2) 0%, rgba(10, 10, 15, 0.75) 55%, var(--bg-primary) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding-bottom: 2rem;
}

.hero-info {
    max-width: 580px;
}

.hero-info h1 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.6rem;
    letter-spacing: -0.5px;
}

.hero-info p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.hero-buttons {
    display: flex;
    gap: 0.65rem;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.15rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-primary);
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
}

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

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--accent);
    background: rgba(108, 92, 231, 0.1);
}

/* ===== FOOTER ===== */
.footer {
    margin-top: 4rem;
    padding: 2.5rem 0;
    border-top: 1px solid var(--border);
    text-align: center;
    background: var(--bg-secondary);
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

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

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0.75rem;
    list-style: none;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.78rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-light);
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 2rem;
    padding: 1rem 0;
}

.pagination a,
.pagination span {
    padding: 0.45rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition);
}

.pagination a {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.pagination a:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.pagination .active span {
    background: var(--gradient-1);
    color: white;
}

.pagination .disabled span {
    color: var(--text-muted);
    cursor: not-allowed;
}

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

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

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

/* ===== ANIME DETAIL ===== */
.detail-header {
    display: flex;
    gap: 2rem;
    padding: 2rem 0;
}

.detail-poster {
    flex-shrink: 0;
    width: 240px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}

.detail-info {
    flex: 1;
}

.detail-info h1 {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.3px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.detail-meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.detail-synopsis {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.88rem;
    margin-bottom: 1.5rem;
}

/* ===== EPISODE LIST ===== */
.episode-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(115px, 1fr));
    gap: 0.45rem;
}

.episode-item {
    padding: 0.55rem 0.7rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    text-align: center;
    transition: var(--transition);
}

.episode-item:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* ===== VIDEO PLAYER ===== */
.player-container {
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.player-container iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
}

.server-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.server-tab {
    padding: 0.45rem 0.9rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.server-tab:hover,
.server-tab.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* ===== DOWNLOAD TABLE ===== */
.download-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius);
    overflow: hidden;
}

.download-table th {
    background: var(--bg-card);
    padding: 0.7rem 1rem;
    font-size: 0.78rem;
    font-weight: 600;
    text-align: left;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.download-table td {
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
}

.download-table tr:hover td {
    background: rgba(108, 92, 231, 0.05);
}

.download-link {
    color: var(--accent-light);
    font-weight: 500;
    transition: var(--transition);
}

.download-link:hover {
    color: var(--accent);
}

/* ===== FILTER BAR ===== */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

.filter-bar select,
.filter-bar input {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.5rem 1rem;
    color: var(--text-primary);
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition);
    font-family: var(--font-primary);
}

.filter-bar select:focus,
.filter-bar input:focus {
    border-color: var(--accent);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .nav-links a {
        padding: 0.4rem 0.55rem;
        font-size: 0.75rem;
    }

    .nav-search input {
        width: 160px;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 56px;
    }

    .nav-inner {
        padding: 0 1rem;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1rem;
        gap: 0.25rem;
        border-bottom: 1px solid var(--border);
        max-height: calc(100vh - var(--nav-height));
        overflow-y: auto;
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links a {
        padding: 0.7rem 1rem;
        font-size: 0.88rem;
        border-radius: var(--radius-sm);
        width: 100%;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: rgba(108, 92, 231, 0.1);
    }

    .nav-links a.active::after {
        display: none;
    }

    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-search input {
        width: 130px;
        font-size: 0.78rem;
    }

    .nav-search input:focus {
        width: 170px;
    }

    .hero {
        height: 320px;
    }

    .hero-info h1 {
        font-size: 1.45rem;
    }

    .hero-info p {
        font-size: 0.82rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .anime-grid {
        grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
        gap: 0.7rem;
    }

    .section-title {
        font-size: 1.1rem;
    }

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

    .detail-poster {
        width: 200px;
    }

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

@media (max-width: 480px) {
    .anime-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.45rem;
    }

    .anime-card .info {
        padding: 0.45rem 0.55rem;
    }

    .anime-card .info h3 {
        font-size: 0.72rem;
    }

    .anime-card .info .meta {
        font-size: 0.6rem;
    }

    .container {
        padding: 0 0.75rem;
    }
}

/* ===== MOBILE PLAYER OPTIMIZATION ===== */
@media (max-width: 768px) {
    .player-container {
        border-radius: 0;
        margin-left: -1.5rem;
        margin-right: -1.5rem;
        width: calc(100% + 3rem);
    }

    .player-container iframe {
        aspect-ratio: 16/9;
        min-height: 200px;
    }

    .server-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 0.25rem;
    }

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

    .server-tab {
        flex-shrink: 0;
        padding: 0.55rem 1rem;
        font-size: 0.82rem;
        min-height: 42px;
        display: flex;
        align-items: center;
    }

    .download-table {
        font-size: 0.75rem;
    }

    .download-table th,
    .download-table td {
        padding: 0.5rem 0.6rem;
    }

    .episode-list {
        grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
    }
}

/* Fullscreen landscape optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .player-container iframe {
        min-height: 100vh;
        aspect-ratio: auto;
    }

    .navbar {
        display: none;
    }
}

/* ===== AUTH FORMS ===== */
.auth-input:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px var(--accent-glow);
}

/* ===== PROFILE PAGE ===== */
.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.profile-card h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-input {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.7rem 1rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
    font-family: var(--font-primary);
}

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

.profile-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.profile-stat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
}

.profile-stat .value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--accent);
}

.profile-stat .label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Bookmark Button State */
#bookmarkBtn.bookmarked {
    background: var(--accent) !important;
    color: white !important;
    border-color: var(--accent) !important;
}

/* ===== ADMIN RESPONSIVE ===== */
@media (max-width: 768px) {
    .admin-grid-2 {
        grid-template-columns: 1fr !important;
    }
}

/* ===== TOAST NOTIFICATION ===== */
.muranime-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-size: 0.9rem;
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    border: 1px solid var(--accent);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* ===== IMAGE FALLBACK ===== */
.anime-card .poster img.error,
.detail-poster img.error {
    opacity: 0.4;
    filter: grayscale(1);
}