/* =============================================
   AnimeSama.info — Main Stylesheet
   Theme: exact match anime-sama.org / animes-sama.fr
   bg: #0b1520 · accent: #0ea5e9 (Tailwind sky-500)
   Secondary backgrounds derived from Tailwind slate-900/800
   ============================================= */

:root {
    /* ── Backgrounds (from anime-sama dark theme) ── */
    --bg-base: #0b1520; /* body / page — theme-color meta */
    --bg-nav: #060e18; /* navbar + footer — slightly darker */
    --bg-surface: #0f1c2b; /* section alternates */
    --bg-card: #122030; /* card default */
    --bg-card-hover: #172638; /* card hover */
    --bg-input: #0d1a28; /* input / select */
    --bg-overlay: #091320; /* modals / overlays */

    /* ── Accent — sky-500 / sky-400 ── */
    --sky: #60a5fa; /* primary accent — sky-500 */
    --sky-light: #38bdf8; /* hover — sky-400 */
    --sky-dark: #0284c7; /* pressed — sky-600 */
    --sky-soft: rgba(14, 165, 233, 0.12);
    --sky-soft2: rgba(14, 165, 233, 0.07);
    --sky-border: rgba(14, 165, 233, 0.3);

    /* ── Text ── */
    --text-primary: #e2eaf3; /* slate-200 equivalent */
    --text-secondary: #8ca0b4; /* slate-400 */
    --text-muted: #4d6478; /* slate-600 */
    --text-sky: #38bdf8; /* links / highlights */

    /* ── Borders ── */
    --border: #1b2d3f; /* default border */
    --border-md: #243a50; /* emphasis border */
    --border-sky: rgba(14, 165, 233, 0.25);

    /* ── Status badges ── */
    --vf-bg: #0f2a1a;
    --vf-text: #4ade80; /* green-400 */
    --vostfr-bg: #281e0a;
    --vostfr-text: #fbbf24; /* amber-400 */
    --new-bg: rgba(14, 165, 233, 0.15);
    --new-text: #38bdf8;
    --ep-bg: rgba(0, 0, 0, 0.72);
    --ep-text: #e2eaf3;

    /* ── Semantic ── */
    --success: #4ade80;
    --warning: #fbbf24;
    --danger: #f87171;
    --info: #38bdf8;

    /* ── Radii ── */
    --r-xs: 3px;
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 14px;
    --r-xl: 18px;
    --r-full: 9999px;

    /* ── Shadows ── */
    --shadow-card: 0 2px 14px rgba(0, 0, 0, 0.45);
    --shadow-hover: 0 6px 28px rgba(0, 0, 0, 0.65);
    --shadow-sky: 0 0 0 3px rgba(14, 165, 233, 0.25);

    /* ── Motion ── */
    --ease: 0.18s ease;

    /* ── Layout ── */
    --max-w: 1300px;
    --font: "Inter", "Segoe UI", system-ui, sans-serif;
}

/* ══════════════════════════════════════
   RESET & BASE
══════════════════════════════════════ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
    font-size: 16px;
}
body {
    font-family: var(--font);
    background: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.65;
    min-height: 100vh;
    overflow-x: hidden;
}
a {
    color: inherit;
    text-decoration: none;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
ul,
ol {
    list-style: none;
}
button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}
::selection {
    background: var(--sky-soft);
    color: var(--sky-light);
}
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}
::-webkit-scrollbar-track {
    background: var(--bg-nav);
}
::-webkit-scrollbar-thumb {
    background: var(--border-md);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ══════════════════════════════════════
   LAYOUT HELPERS
══════════════════════════════════════ */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 20px;
}
.section {
    padding: 52px 0;
}
.section-sm {
    padding: 32px 0;
}

/* ══════════════════════════════════════
   HEADER / NAV
══════════════════════════════════════ */
.site-header {
    background: var(--bg-nav);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 200;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    height: 62px;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
}
.nav-logo img {
    height: 34px;
    width: auto;
}
.nav-logo span {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.2px;
    white-space: nowrap;
}
.nav-logo span em {
    color: var(--sky);
    font-style: normal;
}

/* Search */
.nav-search {
    flex: 1;
    max-width: 300px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 6px 12px;
    transition: border-color var(--ease);
}
.nav-search:focus-within {
    border-color: var(--sky);
}
.nav-search svg {
    color: var(--text-muted);
    flex-shrink: 0;
}
.nav-search input {
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.875rem;
    width: 100%;
}
.nav-search input::placeholder {
    color: var(--text-muted);
}

/* Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
}
.nav-links a {
    padding: 6px 12px;
    border-radius: var(--r-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition:
        color var(--ease),
        background var(--ease);
    white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
    background: var(--bg-card);
}
.nav-links a.active {
    color: var(--sky);
}

/* CTA button */
.nav-cta {
    background: var(--sky) !important;
    color: #fff !important;
    border-radius: var(--r-sm) !important;
    font-weight: 600 !important;
    transition: background var(--ease) !important;
}
.nav-cta:hover {
    background: var(--sky-light) !important;
}

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    border-radius: var(--r-sm);
}
.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: var(--ease);
}

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
    background: var(--bg-nav);
    border-bottom: 1px solid var(--border);
    padding: 60px 0 52px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 500px;
    height: 500px;
    background: radial-gradient(
        circle,
        rgba(14, 165, 233, 0.07) 0%,
        transparent 65%
    );
    pointer-events: none;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--sky);
    background: var(--sky-soft2);
    border: 1px solid var(--sky-border);
    padding: 4px 11px;
    border-radius: var(--r-full);
    margin-bottom: 14px;
}
.hero-title {
    font-size: clamp(1.7rem, 3.8vw, 2.7rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.4px;
    margin-bottom: 14px;
}
.hero-title .highlight {
    color: var(--sky);
}
.hero-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin-bottom: 26px;
    line-height: 1.7;
}
.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.hero-stats {
    display: flex;
    gap: 28px;
    margin-top: 30px;
}
.hero-stat-num {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--sky);
}
.hero-stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
}
.hero-badge-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}
.hero-badge {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 14px 18px;
    text-align: center;
    min-width: 148px;
}
.hero-badge-icon {
    font-size: 1.8rem;
    margin-bottom: 5px;
}
.hero-badge-text {
    font-size: 0.72rem;
    color: var(--text-muted);
}
.hero-badge-val {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* ══════════════════════════════════════
   ADDRESS BOX
══════════════════════════════════════ */
.adresse-box {
    background: var(--bg-card);
    border: 2px solid var(--sky);
    border-radius: var(--r-xl);
    padding: 30px 36px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.adresse-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at top,
        rgba(14, 165, 233, 0.06) 0%,
        transparent 65%
    );
    pointer-events: none;
}
.adresse-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.adresse-url {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--sky);
    margin-bottom: 8px;
    word-break: break-all;
}
.adresse-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.8rem;
    color: var(--success);
    margin-bottom: 22px;
}
.adresse-status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.35;
    }
}

/* ══════════════════════════════════════
   BUTTONS
══════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 20px;
    border-radius: var(--r-md);
    font-size: 0.875rem;
    font-weight: 600;
    transition: all var(--ease);
    cursor: pointer;
    border: none;
    white-space: nowrap;
}
.btn-primary {
    background: var(--sky);
    color: #fff;
}
.btn-primary:hover {
    background: var(--sky-light);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-md);
}
.btn-secondary:hover {
    border-color: var(--sky);
    color: var(--sky);
}

.btn-outline {
    background: transparent;
    color: var(--sky);
    border: 1px solid var(--sky-border);
}
.btn-outline:hover {
    background: var(--sky-soft);
    border-color: var(--sky);
}

.btn-lg {
    padding: 12px 26px;
    font-size: 0.95rem;
}
.btn-sm {
    padding: 5px 13px;
    font-size: 0.78rem;
}
.w-full {
    width: 100%;
    justify-content: center;
}

/* ══════════════════════════════════════
   ALERTS
══════════════════════════════════════ */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 14px 18px;
    border-radius: var(--r-lg);
    border: 1px solid;
    margin: 20px 0;
}
.alert-info {
    background: rgba(14, 165, 233, 0.07);
    border-color: rgba(14, 165, 233, 0.22);
}
.alert-warning {
    background: rgba(251, 191, 36, 0.07);
    border-color: rgba(251, 191, 36, 0.22);
}
.alert-danger {
    background: rgba(248, 113, 113, 0.07);
    border-color: rgba(248, 113, 113, 0.22);
}
.alert-success {
    background: rgba(74, 222, 128, 0.07);
    border-color: rgba(74, 222, 128, 0.22);
}
.alert-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 1px;
}
.alert-title {
    font-weight: 600;
    margin-bottom: 3px;
    font-size: 0.9rem;
}
.alert-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ══════════════════════════════════════
   SECTION HEADERS
══════════════════════════════════════ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    gap: 16px;
}
.section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-title::before {
    content: "";
    display: block;
    width: 3px;
    height: 18px;
    background: var(--sky);
    border-radius: 2px;
    flex-shrink: 0;
}
.section-more {
    font-size: 0.82rem;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 5px 13px;
    border-radius: var(--r-md);
    transition: all var(--ease);
    white-space: nowrap;
}
.section-more:hover {
    border-color: var(--sky);
    color: var(--sky);
}

/* ══════════════════════════════════════
   TAGS / FILTER PILLS
══════════════════════════════════════ */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}
.tag {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 5px 14px;
    border-radius: var(--r-full);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--ease);
}
.tag:hover,
.tag.active {
    background: var(--sky-soft);
    color: var(--sky-light);
    border-color: var(--sky-border);
}

/* ══════════════════════════════════════
   ANIME GRID + CARDS
══════════════════════════════════════ */
.anime-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 14px;
}
.anime-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: all var(--ease);
    cursor: pointer;
}
.anime-card:hover {
    border-color: var(--sky);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}
.anime-card-thumb {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--bg-surface);
}
.anime-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.32s ease;
}
.anime-card:hover .anime-card-thumb img {
    transform: scale(1.06);
}

.anime-card-badges {
    position: absolute;
    top: 7px;
    left: 7px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.badge {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--r-xs);
    letter-spacing: 0.2px;
    text-transform: uppercase;
}
.badge-vf {
    background: var(--vf-bg);
    color: var(--vf-text);
}
.badge-vostfr {
    background: var(--vostfr-bg);
    color: var(--vostfr-text);
}
.badge-new {
    background: var(--new-bg);
    color: var(--new-text);
}
.badge-ep {
    background: var(--ep-bg);
    color: var(--ep-text);
}

.anime-card-score {
    position: absolute;
    bottom: 7px;
    right: 7px;
    background: rgba(0, 0, 0, 0.8);
    color: #fbbf24;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--r-xs);
}
.anime-card-body {
    padding: 10px 12px;
}
.anime-card-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.anime-card-genre {
    font-size: 0.68rem;
    color: var(--text-muted);
}

/* ══════════════════════════════════════
   EPISODE LIST
══════════════════════════════════════ */
.episode-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.episode-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 14px;
    border-radius: var(--r-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all var(--ease);
}
.episode-item:hover {
    border-color: var(--border-md);
    background: var(--bg-card-hover);
}
.episode-thumb {
    width: 54px;
    height: 38px;
    border-radius: var(--r-xs);
    object-fit: cover;
    background: var(--bg-surface);
    flex-shrink: 0;
}
.episode-info {
    flex: 1;
    min-width: 0;
}
.episode-title {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.episode-meta {
    font-size: 0.73rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ══════════════════════════════════════
   STEPS
══════════════════════════════════════ */
.steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 16px 18px;
}
.step-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--sky-soft);
    border: 2px solid var(--sky);
    color: var(--sky-light);
    font-weight: 700;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.step-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 3px;
}
.step-desc {
    font-size: 0.84rem;
    color: var(--text-secondary);
}

/* ══════════════════════════════════════
   TABLE
══════════════════════════════════════ */
.table-wrap {
    overflow-x: auto;
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
}
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
th {
    background: var(--bg-nav);
    padding: 11px 15px;
    text-align: left;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-bottom: 1px solid var(--border);
}
td {
    padding: 11px 15px;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
    vertical-align: middle;
}
tr:last-child td {
    border-bottom: none;
}
tr:hover td {
    background: var(--bg-card-hover);
}

/* ══════════════════════════════════════
   COMPARE CARDS
══════════════════════════════════════ */
.compare-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
    gap: 14px;
}
.compare-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 18px;
    transition: border-color var(--ease);
}
.compare-card:hover {
    border-color: var(--border-md);
}
.compare-card.featured {
    border-color: var(--sky);
}
.compare-card-header {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 13px;
}
.compare-card-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--r-md);
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.compare-card-name {
    font-size: 0.95rem;
    font-weight: 700;
}
.compare-card-type {
    font-size: 0.73rem;
    color: var(--text-muted);
}
.compare-feature {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.82rem;
}
.compare-feature:last-child {
    border-bottom: none;
}
.compare-feature-label {
    color: var(--text-secondary);
}
.compare-feature-val {
    font-weight: 500;
}
.check-yes {
    color: var(--success);
}
.check-no {
    color: var(--danger);
}

/* ══════════════════════════════════════
   FAQ
══════════════════════════════════════ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
}
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
    background: none;
    border: none;
    gap: 10px;
    transition: background var(--ease);
}
.faq-question:hover {
    background: var(--bg-card-hover);
}
.faq-arrow {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform var(--ease);
}
.faq-item.open .faq-arrow {
    transform: rotate(180deg);
    color: var(--sky);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.32s ease;
}
.faq-item.open .faq-answer {
    max-height: 500px;
}
.faq-answer-inner {
    padding: 0 18px 15px;
    border-top: 1px solid var(--border);
    padding-top: 13px;
    font-size: 0.87rem;
    color: var(--text-secondary);
    line-height: 1.7;
}
.faq-answer-inner a {
    color: var(--sky-light);
}
.faq-answer-inner a:hover {
    text-decoration: underline;
}

/* ══════════════════════════════════════
   ARTICLE CONTENT
══════════════════════════════════════ */
.article-content {
    max-width: 780px;
}
.article-content h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 2rem 0 0.9rem;
    padding-left: 13px;
    border-left: 3px solid var(--sky);
    color: var(--text-primary);
}
.article-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 1.4rem 0 0.65rem;
    color: var(--text-primary);
}
.article-content p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 0.95rem;
    line-height: 1.78;
}
.article-content ul {
    padding-left: 0;
    margin-bottom: 0.95rem;
}
.article-content ul li {
    padding: 3px 0 3px 18px;
    position: relative;
    font-size: 0.88rem;
    color: var(--text-secondary);
}
.article-content ul li::before {
    content: "›";
    position: absolute;
    left: 3px;
    color: var(--sky);
    font-weight: 700;
}
.article-content strong {
    color: var(--text-primary);
    font-weight: 600;
}
.article-content a {
    color: var(--sky-light);
}
.article-content a:hover {
    text-decoration: underline;
}

/* ══════════════════════════════════════
   BREADCRUMB
══════════════════════════════════════ */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-muted);
    padding: 14px 0;
}
.breadcrumb a {
    color: var(--text-secondary);
}
.breadcrumb a:hover {
    color: var(--sky);
}
.breadcrumb-sep {
    color: var(--text-muted);
}

/* ══════════════════════════════════════
   PAGE HEADER
══════════════════════════════════════ */
.page-header {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    padding: 30px 0;
}
.page-header-title {
    font-size: clamp(1.3rem, 2.8vw, 1.9rem);
    font-weight: 800;
    margin-bottom: 7px;
}
.page-header-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    max-width: 580px;
}

/* ══════════════════════════════════════
   UPDATED TAG
══════════════════════════════════════ */
.updated-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 3px 10px;
    border-radius: var(--r-full);
    color: var(--text-muted);
}

/* ══════════════════════════════════════
   SIDEBAR LAYOUT
══════════════════════════════════════ */
.content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 28px;
    align-items: start;
}
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 18px;
}
.sidebar-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--border);
}
.sidebar-link-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 11px;
    border-radius: var(--r-md);
    font-size: 0.84rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-primary);
    transition: all var(--ease);
}
.sidebar-link:hover {
    border-color: var(--sky);
    color: var(--sky);
}
.sidebar-link-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.site-footer {
    background: var(--bg-nav);
    border-top: 1px solid var(--border);
    padding: 44px 0 22px;
    margin-top: 60px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 36px;
}
.footer-brand p {
    font-size: 0.84rem;
    color: var(--text-muted);
    margin-top: 11px;
    line-height: 1.65;
    max-width: 240px;
}
.footer-col-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.footer-links a {
    font-size: 0.84rem;
    color: var(--text-muted);
    transition: color var(--ease);
}
.footer-links a:hover {
    color: var(--text-primary);
}
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.footer-copy {
    font-size: 0.78rem;
    color: var(--text-muted);
}
.footer-legal {
    display: flex;
    gap: 14px;
    font-size: 0.78rem;
}
.footer-legal a {
    color: var(--text-muted);
}
.footer-legal a:hover {
    color: var(--text-secondary);
}

/* ══════════════════════════════════════
   UTILITIES
══════════════════════════════════════ */
.text-sky {
    color: var(--sky);
}
.text-sky-light {
    color: var(--sky-light);
}
.text-muted {
    color: var(--text-muted);
}
.text-secondary {
    color: var(--text-secondary);
}
.text-center {
    text-align: center;
}
.flex {
    display: flex;
}
.items-center {
    align-items: center;
}
.gap-8 {
    gap: 8px;
}
.gap-12 {
    gap: 12px;
}
.fw-700 {
    font-weight: 700;
}
.fs-sm {
    font-size: 0.84rem;
}
.mt-8 {
    margin-top: 8px;
}
.mt-16 {
    margin-top: 16px;
}
.mt-24 {
    margin-top: 24px;
}
.mt-32 {
    margin-top: 32px;
}
.mb-8 {
    margin-bottom: 8px;
}
.mb-16 {
    margin-bottom: 16px;
}
.mb-24 {
    margin-bottom: 24px;
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1024px) {
    .content-with-sidebar {
        grid-template-columns: 1fr;
    }
    .sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hero-inner {
        grid-template-columns: 1fr;
    }
    .hero-badge-wrap {
        flex-direction: row;
        justify-content: flex-start;
    }
}
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .nav-search {
        display: none;
    }
    .nav-hamburger {
        display: flex;
    }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 62px;
        left: 0;
        right: 0;
        background: var(--bg-nav);
        border-bottom: 1px solid var(--border);
        padding: 14px 20px;
        gap: 3px;
        z-index: 199;
    }
    .anime-grid {
        grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
        gap: 10px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .sidebar {
        grid-template-columns: 1fr;
    }
    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    .adresse-url {
        font-size: 1.15rem;
    }
    .compare-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }
    .hero {
        padding: 36px 0;
    }
    .anime-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .section {
        padding: 34px 0;
    }
    .adresse-box {
        padding: 22px 18px;
    }
}

/* Real-time cards rendered as links (progressive enhancement, realtime.js) */
a.episode-item,
a.anime-card {
    text-decoration: none;
    color: inherit;
    display: block;
}
a.episode-item {
    display: flex;
}

/* ===== Realtime loading skeletons (realtime.js) ===== */
.skeleton {
    position: relative;
    overflow: hidden;
    background: var(--bg-surface);
    border-radius: var(--r-xs);
}
.skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.07),
        transparent
    );
    animation: skeleton-shimmer 1.4s ease-in-out infinite;
}
@keyframes skeleton-shimmer {
    100% {
        transform: translateX(100%);
    }
}
.skeleton-line {
    height: 11px;
    margin: 7px 0;
    border-radius: var(--r-xs);
}
/* episode row skeleton: reuse .episode-item layout, disable hover/pointer */
.episode-item.is-skeleton,
.anime-card.is-skeleton {
    pointer-events: none;
}
.episode-item.is-skeleton .episode-thumb {
    background: var(--bg-surface);
}
.anime-card.is-skeleton .anime-card-thumb {
    background: var(--bg-surface);
}
.anime-card.is-skeleton .anime-card-body {
    padding: 12px 14px 16px;
}

/* graceful empty/error state when a realtime fetch fails */
.realtime-empty {
    grid-column: 1 / -1;
    width: 100%;
    text-align: center;
    color: var(--text-muted, #8aa0b4);
    padding: 28px 16px;
    font-size: 14px;
}
.realtime-empty a {
    color: var(--sky, #38bdf8);
    text-decoration: none;
}
.realtime-empty a:hover {
    text-decoration: underline;
}

.tab-desc {
    margin-bottom: 30px;
}
