:root {
    --bg: #000000;
    --bg-deep: #020202;
    --bg-panel: rgba(0, 0, 0, 0.82);
    --surface: rgba(10, 10, 10, 0.92);
    --surface-2: rgba(18, 18, 18, 0.96);
    --surface-3: rgba(28, 28, 28, 0.98);
    --surface-4: rgba(255, 255, 255, 0.1);
    --text: #ffffff;
    --muted: #b8b8b8;
    --faint: #7d7d7d;
    --line: rgba(255, 255, 255, 0.12);
    --accent: #ffffff;
    --accent-2: #f2f2f2;
    --accent-3: #d9d9d9;
    --danger: #ffffff;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.38);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.2);
    --radius: 26px;
    --radius-sm: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    position: relative;
    font-family: "Segoe UI", "Trebuchet MS", system-ui, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 14% 8%, rgba(255, 255, 255, 0.11), transparent 18rem),
        radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.07), transparent 24rem),
        linear-gradient(135deg, rgba(255, 255, 255, 0.024) 0%, transparent 36%),
        linear-gradient(180deg, #030303 0%, #010101 52%, #000000 100%);
    background-attachment: fixed;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 22%, rgba(255, 255, 255, 0.07), transparent 0 18rem),
        radial-gradient(circle at 78% 30%, rgba(255, 255, 255, 0.05), transparent 0 22rem),
        linear-gradient(125deg, transparent 0 18%, rgba(255, 255, 255, 0.04) 18.5%, transparent 19.2% 100%),
        linear-gradient(305deg, transparent 0 70%, rgba(255, 255, 255, 0.03) 70.5%, transparent 71.2% 100%),
        linear-gradient(rgba(255, 255, 255, 0.013) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.013) 1px, transparent 1px);
    background-size: auto, auto, auto, auto, 38px 38px, 38px 38px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.46) 58%, transparent 100%);
    opacity: 0.95;
    z-index: -2;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at center, transparent 0 48%, rgba(0, 0, 0, 0.42) 100%),
        radial-gradient(circle at 50% 120%, rgba(255, 255, 255, 0.09), transparent 28rem);
    mix-blend-mode: screen;
    opacity: 0.65;
    z-index: -1;
}

button,
input,
select {
    font: inherit;
}

button {
    color: inherit;
}

a {
    color: inherit;
}

#particles-layer {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.9;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: auto 1fr minmax(300px, 440px);
    gap: 24px;
    align-items: center;
    padding: 16px clamp(18px, 4vw, 42px);
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(26px);
    -webkit-backdrop-filter: blur(26px);
}

.brand,
.topnav button {
    border: 0;
    background: transparent;
    cursor: pointer;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    font-size: 25px;
    font-weight: 900;
    letter-spacing: -0.05em;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.brand:hover {
    transform: translateY(-1px);
    opacity: 0.92;
}

.brand-mark {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    color: #000000;
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    border-radius: 12px;
    font-size: 22px;
    box-shadow: 0 0 28px rgba(255, 255, 255, 0.2);
}

.brand-mark-icon {
    width: 24px;
    height: 24px;
}

.topnav {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.topnav button {
    padding: 11px 16px;
    color: var(--muted);
    font-weight: 700;
    border-radius: 999px;
    transition: transform 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.topnav button:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}

.search-container {
    position: relative;
}

.topbar-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.profile-trigger {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(10, 10, 10, 0.92);
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.profile-trigger:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(18, 18, 18, 0.98);
}

.profile-trigger-icon {
    width: 24px;
    height: 24px;
    color: var(--text);
}

#search-bar,
.filters-panel input,
.filters-panel select {
    width: 100%;
    min-height: 46px;
    color: var(--text);
    background: rgba(10, 10, 10, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

#search-bar {
    padding: 0 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

#search-bar:hover,
.filters-panel input:hover,
.filters-panel select:hover {
    background: rgba(18, 18, 18, 0.98);
}

#search-bar:focus,
.filters-panel input:focus,
.filters-panel select:focus {
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.09);
    transform: translateY(-1px);
}

.search-results {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    z-index: 150;
    overflow: hidden;
    background: rgba(8, 8, 8, 0.98);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.search-result-item {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 12px;
    align-items: center;
    width: 100%;
    padding: 12px 14px;
    text-align: left;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    cursor: pointer;
    transition: background-color 0.18s ease, transform 0.18s ease;
}

.search-result-item:last-child {
    border-bottom: 0;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(2px);
}

.search-result-item img {
    width: 44px;
    height: 56px;
    object-fit: cover;
    border-radius: 10px;
}

.hidden {
    display: none !important;
}

.floating-ambient-dock {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 220;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.floating-glass-btn,
.floating-control-btn,
.playlist-panel-close {
    color: var(--text);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.floating-glass-btn {
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
    transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.floating-glass-btn:hover,
.floating-control-btn:hover,
.playlist-panel-close:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.22);
}

.floating-glass-btn.is-off {
    color: var(--muted);
    background: rgba(255, 255, 255, 0.05);
}

.floating-glass-btn.is-disabled,
.floating-glass-btn:disabled {
    color: var(--muted);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
    opacity: 0.58;
    cursor: not-allowed;
    transform: none;
    pointer-events: none;
}

.playlist-panel {
    position: fixed;
    right: 22px;
    bottom: 82px;
    z-index: 230;
    display: grid;
    gap: 16px;
    width: min(360px, calc(100vw - 32px));
    padding: 20px;
    background: rgba(5, 5, 5, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.playlist-panel-head,
.playlist-submit-row,
.playlist-volume-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.playlist-panel-head h2,
.playlist-status-card p,
.playlist-status-card strong,
.playlist-volume-row span,
.playlist-volume-row strong {
    margin: 0;
}

.playlist-panel-close {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    padding: 0;
    border-radius: 14px;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
}

.playlist-input-group {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.playlist-input-group input {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    outline: none;
}

.playlist-input-group input:focus {
    border-color: rgba(255, 255, 255, 0.38);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.playlist-submit-row .btn {
    flex: 1;
}

.playlist-status-card {
    display: grid;
    gap: 8px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
}

.playlist-status-card p {
    color: var(--muted);
    font-size: 13px;
}

.playlist-status-card strong {
    font-size: 15px;
    line-height: 1.4;
}

.playlist-controls-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.floating-control-btn {
    min-height: 46px;
    border-radius: 16px;
    cursor: pointer;
    font-weight: 800;
    transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.youtube-player-host {
    width: 0;
    height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

main {
    position: relative;
    z-index: 1;
    width: min(1960px, 100%);
    margin: 0 auto;
    padding: 30px clamp(18px, 3vw, 54px) 72px;
}

.hero,
.details-hero,
.player-container,
.empty-state,
.watch-main,
.watch-panel,
.episode-rail,
.filter-group,
.top-search-panel,
.panel-card,
.anime-card {
    background: linear-gradient(180deg, rgba(12, 12, 12, 0.94), rgba(3, 3, 3, 0.97));
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.hero {
    position: relative;
    overflow: hidden;
    margin-inline: auto;
    border-radius: var(--radius);
}

.hero-slider {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 38px;
    min-height: 720px;
    height: min(78vh, 920px);
    aspect-ratio: 16 / 9;
    padding: clamp(28px, 5vw, 58px);
}

.hero-slider .hero-copy {
    max-width: 980px;
    align-self: center;
}

.hero-poster {
    display: none;
}

.hero-slider::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.84) 34%, rgba(0, 0, 0, 0.34) 100%),
        var(--hero-image) center/cover no-repeat;
    transform: scale(1.04);
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.12), transparent 24rem),
        radial-gradient(circle at 82% 30%, rgba(255, 255, 255, 0.07), transparent 24rem);
}

.hero-copy,
.hero-poster {
    position: relative;
    z-index: 1;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--accent-2);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero h1,
.details-hero h1,
.player-header h1 {
    margin-bottom: 18px;
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 900;
    line-height: 0.96;
    letter-spacing: -0.05em;
    text-wrap: balance;
}

.hero p:not(.eyebrow),
.synopsis {
    max-width: 760px;
    color: var(--muted);
    line-height: 1.7;
    font-size: 16px;
}

.hero-slider .hero-copy > p:not(.eyebrow) {
    display: -webkit-box;
    min-height: 8.5em;
    overflow: hidden;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
}

.hero-meta,
.hero-actions,
.detail-meta,
.genre-list,
.card-meta,
.player-controls,
.home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.hero-meta {
    margin-bottom: 18px;
}

.hero-actions {
    margin-top: 26px;
}

.hero-slider-nav {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-top: 24px;
}

.hero-dots {
    display: flex;
    gap: 10px;
    align-items: center;
}

.hero-dot,
.hero-arrow {
    border: 0;
    cursor: pointer;
}

.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.26);
    transition: transform 0.18s ease, background-color 0.18s ease, width 0.18s ease;
}

.hero-dot.active {
    width: 32px;
    background: linear-gradient(90deg, #dcdcdc, #ffffff);
}

.hero-arrow {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    font-size: 24px;
    transition: transform 0.18s ease, background-color 0.18s ease;
}

.hero-arrow:hover,
.hero-dot:hover {
    transform: translateY(-1px);
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.12);
}

.hero-poster {
    align-self: center;
}

.hero-poster img,
.details-media img {
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.42);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-poster img:hover,
.details-media img:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 30px 65px rgba(0, 0, 0, 0.48);
}

.btn {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 28px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.02em;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
}

.btn:active:not(:disabled) {
    transform: translateY(0) scale(0.98);
}

.btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.btn.primary {
    color: #000000;
    background: linear-gradient(135deg, #f2f2f2, #ffffff);
}

.btn.primary:hover {
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.18);
}

.btn.ghost {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
}

.btn.ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.pill,
.detail-meta span,
.genre-list span,
.card-meta span {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 0 12px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.pill.accent {
    color: #000000;
    background: linear-gradient(135deg, #f0f0f0, #ffffff);
    border-color: transparent;
}

.home-actions {
    margin: 22px 0 38px;
}

.football-home-panel,
.football-day-block {
    display: grid;
    gap: 22px;
    padding: 26px;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 18rem),
        linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
        rgba(8, 8, 8, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-soft);
}

.football-home-panel {
    margin: 0 0 34px;
}

.football-panel-actions,
.empty-state-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.football-panel-notice {
    margin: -6px 0 0;
    padding: 12px 14px;
    border-radius: 14px;
    color: #f5d9a8;
    background: rgba(176, 116, 20, 0.12);
    border: 1px solid rgba(255, 204, 102, 0.18);
}

.football-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 440px);
    gap: 24px;
    align-items: stretch;
}

.football-hero-copy {
    display: grid;
    align-content: center;
    gap: 14px;
    min-height: 100%;
    padding: 14px 4px;
}

.football-hero-copy h3 {
    margin: 0;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.football-hero-copy > p:not(.eyebrow) {
    color: var(--muted);
    font-size: 16px;
}

.football-slider-nav {
    margin-top: 0;
}

.football-hero-center {
    display: grid;
    place-items: center;
    min-height: 100%;
}

.football-live-btn {
    min-width: 132px;
    min-height: 132px;
    border-radius: 999px;
    font-size: 24px;
    letter-spacing: 0.08em;
    box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.03), 0 24px 60px rgba(0, 0, 0, 0.32);
}

.football-mini-grid,
.football-week-grid {
    display: grid;
    gap: 16px;
}

.football-mini-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.football-week-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.football-mini-card,
.football-match-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.035);
    color: var(--text);
}

.football-mini-card {
    display: grid;
    gap: 8px;
    padding: 16px 18px;
    text-align: left;
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.football-mini-card strong {
    font-size: 15px;
}

.football-mini-card span {
    color: var(--muted);
    font-size: 13px;
}

.football-mini-card.active,
.football-mini-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.075);
    border-color: rgba(255, 255, 255, 0.18);
}

.football-match-card {
    display: grid;
    gap: 18px;
    padding: 22px;
    border-radius: 24px;
}

.football-match-card.clickable {
    cursor: pointer;
    transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.football-match-card.clickable:hover,
.football-match-card.clickable:focus-visible {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
    outline: none;
}

.football-match-card.featured {
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.14), transparent 16rem),
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
}

.football-card-topline,
.football-meta-line,
.football-team-lines {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.football-kickoff,
.football-meta-line,
.football-team-lines span {
    color: var(--muted);
    font-size: 13px;
}

.football-match-visual {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 18px;
    align-items: center;
}

.football-team-mark {
    display: grid;
    place-items: center;
    min-height: 112px;
}

.football-team-mark img,
.football-team-fallback {
    width: 92px;
    height: 92px;
    border-radius: 50%;
}

.football-team-mark img {
    object-fit: contain;
    background: rgba(255, 255, 255, 0.96);
    padding: 12px;
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.3);
}

.football-team-fallback {
    display: grid;
    place-items: center;
    font-size: 28px;
    font-weight: 900;
    color: #000000;
    background: linear-gradient(135deg, #f4f4f4, #ffffff);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.24);
}

.football-versus {
    font-size: clamp(28px, 4vw, 54px);
    font-weight: 900;
    letter-spacing: -0.06em;
}

.football-team-lines strong {
    display: block;
    margin-bottom: 6px;
    font-size: 17px;
}

.football-meta-line {
    justify-content: flex-start;
}

.football-meta-line span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.football-card-actions {
    display: flex;
    justify-content: flex-start;
}

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

.football-empty-state {
    min-height: 220px;
}

.football-live-page {
    display: grid;
    gap: 24px;
}

.football-live-hero,
.football-live-card {
    padding: 28px;
    background:
        radial-gradient(circle at top center, rgba(255, 255, 255, 0.08), transparent 18rem),
        linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)),
        rgba(8, 8, 8, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.football-live-topline {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 26px;
}

.football-live-scoreboard {
    display: grid;
    grid-template-columns: 1fr minmax(240px, 340px) 1fr;
    gap: 18px;
    align-items: center;
}

.football-live-team,
.football-live-core {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 12px;
}

.football-live-badge {
    display: grid;
    place-items: center;
}

.football-live-badge img,
.football-live-badge .football-team-fallback {
    width: 116px;
    height: 116px;
}

.football-live-team strong {
    font-size: 26px;
    line-height: 1.05;
}

.football-live-team span,
.football-live-core p:not(.eyebrow),
.football-live-copy {
    color: var(--muted);
}

.football-live-core h1 {
    margin: 0;
    font-size: clamp(56px, 10vw, 112px);
    line-height: 0.9;
    letter-spacing: -0.08em;
}

.football-live-main-btn {
    min-width: 160px;
}

.football-live-locked {
    display: grid;
    justify-items: center;
    gap: 10px;
    max-width: 260px;
}

.football-live-lock-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 800;
    letter-spacing: 0.02em;
}

.football-live-lock-badge svg {
    width: 18px;
    height: 18px;
    flex: none;
    stroke-width: 1.9;
}

.football-live-locked p {
    margin: 0;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.football-live-layout {
    display: grid;
    grid-template-columns: minmax(320px, 760px);
    justify-content: center;
    gap: 24px;
}

.football-live-facts {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px 18px;
    align-items: center;
}

.football-live-facts span {
    color: var(--muted);
}

.football-player-page {
    display: grid;
    gap: 24px;
}

.football-player-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.football-player-hero,
.football-player-meta {
    padding: 28px;
    background:
        radial-gradient(circle at top center, rgba(255, 255, 255, 0.08), transparent 18rem),
        linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)),
        rgba(8, 8, 8, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.football-player-topline {
    margin-bottom: 24px;
}

.football-player-topline h1 {
    margin-bottom: 10px;
    font-size: clamp(34px, 6vw, 64px);
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.football-player-topline p:not(.eyebrow) {
    color: var(--muted);
}

.football-player-shell {
    display: grid;
}

.football-player-frame {
    position: relative;
    overflow: hidden;
    min-height: 540px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
        #060606;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.football-player-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    background: #000;
}

.football-player-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 16px;
    padding: 32px;
    text-align: center;
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.06), transparent 18rem),
        linear-gradient(135deg, rgba(255, 255, 255, 0.02), transparent 45%),
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.012) 0,
            rgba(255, 255, 255, 0.012) 1px,
            transparent 1px,
            transparent 18px
        );
}

.football-player-badge {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.football-player-placeholder strong {
    font-size: clamp(28px, 5vw, 48px);
    line-height: 1;
}

.football-player-placeholder p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

.football-server-panel {
    overflow: hidden;
}

.football-server-panel summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    list-style: none;
    font-weight: 800;
}

.football-server-panel summary::-webkit-details-marker {
    display: none;
}

.football-server-panel summary strong {
    display: inline-flex;
    min-width: 34px;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.football-server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.football-server-option {
    display: grid;
    gap: 8px;
    text-align: left;
    padding: 16px 18px;
    border-radius: 18px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.football-server-option:hover,
.football-server-option.active {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.075);
    border-color: rgba(255, 255, 255, 0.18);
}

.football-server-option-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.football-server-title {
    font-size: 15px;
    font-weight: 800;
}

.football-server-active-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    color: #050505;
    background: linear-gradient(135deg, #f0f0f0, #ffffff);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.football-server-meta,
.football-server-empty {
    color: var(--muted);
    font-size: 13px;
}

.catalog-layout {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.catalog-sidebar {
    position: sticky;
    top: 94px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding-right: 10px;
}

.catalog-sidebar::-webkit-scrollbar,
.filter-content::-webkit-scrollbar,
.watch-episode-list::-webkit-scrollbar {
    width: 8px;
}

.catalog-sidebar::-webkit-scrollbar-thumb,
.filter-content::-webkit-scrollbar-thumb,
.watch-episode-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.16);
    border-radius: 999px;
}

.filters-section,
.catalog-main-content {
    display: grid;
    gap: 18px;
}

.catalog-results {
    display: grid;
    gap: 24px;
}

.filter-group,
.top-search-panel,
.season-block,
.watch-panel,
.episode-rail,
.watch-main,
.details-hero,
.empty-state,
.panel-card,
.anime-card {
    border-radius: var(--radius);
}

.filter-group {
    overflow: hidden;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 16px 18px;
    cursor: pointer;
    user-select: none;
    background: rgba(255, 255, 255, 0.04);
    transition: background-color 0.18s ease;
}

.filter-header:hover {
    background: rgba(255, 255, 255, 0.08);
}

.filter-title {
    font-weight: 800;
    font-size: 15px;
}

.filter-toggle-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.24s ease;
}

.filter-header:has(+ .filter-content.active) .filter-toggle-icon {
    transform: rotate(180deg);
}

.filter-content {
    display: none;
    padding: 14px 18px 18px;
    max-height: 240px;
    overflow-y: auto;
}

.filter-content.active {
    display: grid;
    gap: 10px;
}

.filter-checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: var(--muted);
    transition: color 0.18s ease;
}

.filter-checkbox-item:hover {
    color: var(--text);
}

.filter-checkbox {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.22);
    border-radius: 5px;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.filter-checkbox:checked {
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    border-color: transparent;
}

.filter-checkbox:checked::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid #07111f;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.top-search-panel {
    display: flex;
    gap: 16px;
    align-items: end;
    padding: 18px;
}

.top-search-panel label {
    display: grid;
    gap: 8px;
    flex: 1;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.top-search-panel button {
    flex: none;
}

.section-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: end;
}

.section-head h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.shelf-section + .shelf-section {
    margin-top: 34px;
}

.shelf-head {
    margin-bottom: 20px;
}

.carousel-head-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

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

.carousel-arrow {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    cursor: pointer;
    transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.carousel-arrow:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
}

.muted {
    color: var(--muted);
}

.anime-grid,
.shelf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 38px;
}

.shelf-carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(520px, 520px);
    gap: 38px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 6px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.shelf-carousel::-webkit-scrollbar {
    height: 10px;
}

.shelf-carousel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.16);
    border-radius: 999px;
}

.shelf-slide {
    min-width: 0;
}

.shelf-slide .anime-card {
    height: 100%;
}

.shelf-slide .anime-card {
    min-height: 0;
}

.shelf-slide .poster-wrap {
    aspect-ratio: 2 / 3;
    border-radius: 24px;
    margin-bottom: 28px;
}

.shelf-slide .card-body h3 {
    min-height: 2.6em;
    font-size: 24px;
    line-height: 1.3;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.shelf-slide .card-body p {
    margin-bottom: 20px;
}

.anime-card {
    position: relative;
    overflow: hidden;
    min-height: 760px;
    padding: 24px;
    cursor: pointer;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.anime-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 45%);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.anime-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 0 22px rgba(255, 255, 255, 0.08), 0 26px 42px rgba(0, 0, 0, 0.4);
}

.anime-card:hover::before {
    opacity: 1;
}

.poster-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 24px;
    margin-bottom: 28px;
    background: var(--surface-3);
    box-shadow: var(--shadow-soft);
}

.poster-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.28s ease, opacity 0.28s ease, filter 0.28s ease;
}

.anime-card:hover img {
    opacity: 0.9;
    transform: scale(1.04);
    filter: saturate(1.08);
}

.card-overlay {
    position: absolute;
    inset: auto 12px 12px auto;
    display: block;
    width: 64px;
    height: 64px;
    color: transparent;
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    border-radius: 16px;
    font-size: 0;
    line-height: 0;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease;
    box-shadow: 0 12px 24px rgba(255, 255, 255, 0.16);
}

.card-overlay::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    transform: translate(-40%, -50%);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 16px solid #000000;
}

.anime-card:hover .card-overlay {
    opacity: 1;
    transform: translateY(0);
}

.card-body {
    position: relative;
    z-index: 1;
}

.card-body h3 {
    margin-bottom: 22px;
    overflow: hidden;
    font-size: 28px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-body p {
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 19px;
}

.card-meta {
    gap: 10px;
}

.card-meta span {
    min-height: 36px;
    padding-inline: 16px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.03);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
    color: var(--muted);
}

.back-btn {
    margin-bottom: 24px;
}

.details-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(420px, 1.08fr) minmax(0, 1fr);
    gap: 28px;
    padding: clamp(28px, 4vw, 44px);
    border-radius: 32px;
}

.details-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.08), transparent 18rem),
        radial-gradient(circle at 82% 22%, rgba(255, 255, 255, 0.04), transparent 24rem),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03), transparent 28%, rgba(255, 255, 255, 0.02) 100%);
    opacity: 1;
    pointer-events: none;
}

.details-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 130px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.5));
    pointer-events: none;
}

.details-media,
.details-content {
    position: relative;
    z-index: 1;
}

.details-media {
    align-self: stretch;
    max-width: none;
}

.details-media img {
    height: 100%;
    min-height: 340px;
    max-height: 540px;
}

.series-details .details-media img {
    object-fit: contain;
    object-position: center center;
    background: #050505;
}

.details-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.details-content h1 {
    margin-bottom: 16px;
}

.details-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 20px;
}

.detail-meta,
.genre-list {
    margin-bottom: 20px;
}

.detail-meta {
    gap: 10px;
}

.detail-meta span,
.genre-list span {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.season-block {
    margin-top: 24px;
    padding: 24px;
}

.season-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 22px;
}

.season-card {
    position: relative;
    display: grid;
    gap: 12px;
    min-height: 176px;
    padding: 26px;
    color: var(--text);
    text-align: left;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.12), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(8, 8, 8, 0.96) 58%);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 26px;
    cursor: pointer;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.34);
    transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.season-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 44%);
    opacity: 0;
    transition: opacity 0.18s ease;
}

.season-card::after {
    content: "▶";
    position: absolute;
    right: 22px;
    bottom: 20px;
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    color: #050505;
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    border-radius: 18px;
    font-size: 18px;
    font-weight: 900;
    box-shadow: 0 16px 32px rgba(255, 255, 255, 0.12);
    transform: translateY(10px);
    opacity: 0;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.season-card:hover,
.season-card.active {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: 0 28px 68px rgba(0, 0, 0, 0.48);
}

.season-card:hover::before,
.season-card:hover::after {
    opacity: 1;
}

.season-card:hover::after {
    transform: translateY(0);
}

.season-card span {
    position: relative;
    z-index: 1;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.season-card small {
    position: relative;
    z-index: 1;
    color: var(--muted);
    font-size: 16px;
    font-weight: 600;
}

.season-card em {
    position: relative;
    z-index: 1;
    color: var(--accent-2);
    max-width: calc(100% - 70px);
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
    text-transform: uppercase;
}

.trailer-section {
    max-width: 1180px;
    margin: 34px auto 0;
}

.trailer-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
    aspect-ratio: 16 / 9;
}

.trailer-card iframe {
    width: 100%;
    height: 100%;
    display: block;
}

.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 12px;
}

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

.episode-btn {
    min-height: 48px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
    font-weight: 800;
    transition: transform 0.18s ease, background-color 0.18s ease;
}

.episode-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
}

.watch-layout {
    display: grid;
    grid-template-columns: 300px minmax(700px, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

.watch-main {
    padding: clamp(20px, 2.5vw, 34px);
}

.watch-panel {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 16px;
    padding: 18px;
}

.episode-rail {
    position: sticky;
    top: 92px;
    overflow: hidden;
}

.episode-rail-head {
    padding: 22px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid var(--line);
}

.episode-rail-head h2 {
    margin-bottom: 8px;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.episode-rail-head span {
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.watch-episode-list {
    display: grid;
    gap: 8px;
    max-height: min(78vh, 920px);
    overflow: auto;
    padding: 16px;
}

.watch-episode {
    display: grid;
    gap: 6px;
    width: 100%;
    min-height: 68px;
    padding: 14px;
    color: var(--text);
    text-align: left;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 16px;
    cursor: pointer;
    transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.watch-episode:hover {
    transform: translateX(3px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

.watch-episode.active {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 16px rgba(255, 255, 255, 0.06);
}

.watch-episode.viewed:not(.active) {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.watch-episode.viewed:not(.active) span {
    color: #f0f0f0;
}

.watch-episode.viewed:not(.active) small {
    color: rgba(255, 255, 255, 0.68);
}

.watch-episode span {
    font-weight: 800;
}

.watch-episode.active span {
    color: var(--accent-2);
}

.watch-episode small {
    color: var(--muted);
    font-weight: 600;
}

.player-header {
    text-align: center;
}

.player-header.compact h1 {
    margin-bottom: 12px;
    font-size: clamp(32px, 4vw, 54px);
}

.player-header p:not(.eyebrow) {
    color: var(--muted);
}

.video-wrapper {
    width: min(100%, 1280px);
    aspect-ratio: 16 / 9;
    margin: 32px auto 40px;
    overflow: hidden;
    background: #000;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.player-controls {
    justify-content: center;
}

.episode-review-summary {
    margin-top: 30px;
}

.review-head {
    margin-bottom: 16px;
}

.episode-review-card {
    padding: 22px;
    background: linear-gradient(180deg, rgba(12, 12, 12, 0.94), rgba(3, 3, 3, 0.97));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.episode-review-score {
    margin-bottom: 14px;
}

.episode-review-item + .episode-review-item {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.episode-review-stars {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 14px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}

.episode-review-comment {
    margin: 0;
    color: var(--text);
    line-height: 1.7;
    white-space: pre-wrap;
}

.episode-review-empty {
    margin: 0;
    color: var(--muted);
}

.panel-card {
    padding: 18px;
}

.panel-card h3 {
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.episode-feedback-card {
    display: grid;
    gap: 14px;
}

.episode-rating-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.episode-rating-stars {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rating-star {
    min-width: 42px;
    min-height: 42px;
    padding: 0;
    color: rgba(255, 255, 255, 0.35);
    font-size: 24px;
    line-height: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.16s ease, background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.rating-star:hover {
    transform: translateY(-1px);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.24);
}

.rating-star.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
}

.episode-comment-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.episode-comment-input {
    width: 100%;
    min-height: 130px;
    padding: 14px 16px;
    resize: vertical;
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.episode-comment-input:focus {
    border-color: rgba(255, 255, 255, 0.38);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.06);
}

.episode-feedback-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.episode-feedback-actions .btn {
    min-height: 42px;
    padding-inline: 18px;
}

.episode-feedback-status {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.segmented {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
    gap: 8px;
}

.segmented button,
.reader-list button {
    width: 100%;
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
    transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.segmented button {
    min-height: 48px;
}

.segmented button:hover,
.reader-list button:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.16);
}

.segmented button:active,
.reader-list button:active {
    transform: scale(0.98);
}

.segmented button.active,
.reader-list button.active {
    color: #000000;
    background: linear-gradient(135deg, #f0f0f0, #ffffff);
}

.reader-list {
    display: grid;
    gap: 12px;
}

.reader-list button {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    min-height: 56px;
    padding: 0 20px;
    text-align: left;
}

.reader-list span {
    color: var(--muted);
    font-size: 13px;
}

.reader-list button.active span {
    color: #111111;
}

.mini-poster {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 16px;
    align-items: center;
}

.mini-poster img {
    width: 64px;
    height: 86px;
    object-fit: cover;
    border-radius: 12px;
}

.mini-poster strong,
.mini-poster span {
    display: block;
}

.mini-poster strong {
    margin-bottom: 6px;
    font-weight: 800;
}

.mini-poster span {
    color: var(--muted);
    font-size: 14px;
}

.empty-state {
    display: grid;
    min-height: 360px;
    place-items: center;
    padding: 48px;
    text-align: center;
}

.empty-state h1,
.empty-state h2 {
    margin-bottom: 16px;
    font-weight: 900;
}

.empty-state p {
    color: var(--muted);
    font-size: 16px;
}

code {
    color: var(--accent-2);
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 3px 8px;
}

@media (max-width: 1180px) {
    .hero-slider,
    .details-hero,
    .watch-layout {
        grid-template-columns: 1fr;
    }

    .hero-poster,
    .details-media img {
        max-width: 320px;
    }

    .details-hero {
        gap: 24px;
    }

    .details-media {
        max-width: 100%;
    }

    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .catalog-sidebar,
    .watch-panel,
    .episode-rail {
        position: static;
        max-height: none;
    }

    .football-hero {
        grid-template-columns: 1fr;
    }

    .football-live-scoreboard,
    .football-live-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .topbar {
        grid-template-columns: 1fr;
    }

    .topnav {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .top-search-panel,
    .section-head,
    .shelf-head,
    .player-controls {
        align-items: stretch;
        flex-direction: column;
    }

    .carousel-head-actions {
        justify-content: space-between;
    }

    .watch-episode-list {
        grid-auto-flow: column;
        grid-auto-columns: minmax(220px, 1fr);
        overflow-x: auto;
        overflow-y: hidden;
        max-height: none;
    }
}

@media (max-width: 720px) {
    main {
        padding-inline: 16px;
    }

    .hero-slider {
        min-height: 560px;
        height: auto;
        padding: 22px;
    }

    .details-hero {
        padding: 24px;
    }

    .anime-grid,
    .shelf-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .shelf-carousel {
        grid-auto-columns: minmax(340px, 340px);
        gap: 20px;
    }

    .shelf-slide .poster-wrap {
        aspect-ratio: 2 / 3;
    }

    .top-search-panel {
        flex-direction: column;
    }

    .football-home-panel,
    .football-day-block {
        padding: 20px;
    }

    .football-mini-grid,
    .football-week-grid {
        grid-template-columns: 1fr;
    }

    .football-live-hero,
    .football-live-card {
        padding: 22px;
    }

    .football-live-team strong {
        font-size: 22px;
    }

    .football-live-core h1 {
        font-size: clamp(44px, 20vw, 72px);
    }

    .football-player-hero,
    .football-player-meta {
        padding: 22px;
    }

    .football-player-frame {
        min-height: 380px;
    }

    .football-match-visual {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .football-versus {
        font-size: 24px;
    }

    .football-team-lines {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero h1,
    .details-hero h1,
    .player-header h1 {
        font-size: clamp(30px, 10vw, 46px);
    }

    .floating-ambient-dock {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }

    .floating-glass-btn {
        flex: 1 1 calc(33.333% - 7px);
        min-width: 0;
        padding-inline: 12px;
    }

    .playlist-panel {
        right: 16px;
        left: 16px;
        bottom: 76px;
        width: auto;
    }
}

@media (max-width: 560px) {
    .anime-grid,
    .shelf-grid,
    .season-picker {
        grid-template-columns: 1fr;
    }

    .shelf-carousel {
        grid-auto-columns: minmax(300px, 300px);
    }

    .shelf-slide .card-body h3 {
        font-size: 16px;
    }

    .carousel-head-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .carousel-nav {
        justify-content: flex-end;
    }

    .brand {
        font-size: 22px;
    }

    .btn {
        width: 100%;
    }

    .hero-slider-nav {
        flex-wrap: wrap;
    }

    .playlist-controls-grid {
        grid-template-columns: 1fr;
    }

    .playlist-submit-row {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Grande version des cartes catalogue/accueil */
.anime-grid,
.shelf-grid {
    grid-template-columns: repeat(auto-fill, minmax(560px, 1fr)) !important;
    gap: 44px !important;
}

.shelf-carousel {
    grid-auto-columns: minmax(620px, 620px) !important;
    gap: 44px !important;
}

.anime-card,
.shelf-slide .anime-card {
    min-height: 1040px !important;
    padding: 28px !important;
}

.poster-wrap,
.shelf-slide .poster-wrap {
    aspect-ratio: 2 / 3 !important;
    min-height: 760px !important;
    margin-bottom: 34px !important;
    background: #070707 !important;
}

.poster-wrap img,
.shelf-slide .poster-wrap img {
    object-fit: contain !important;
    object-position: center center !important;
}

.card-body h3,
.shelf-slide .card-body h3 {
    margin-bottom: 26px !important;
    font-size: 32px !important;
    white-space: normal !important;
}

.card-body p,
.shelf-slide .card-body p {
    margin-bottom: 28px !important;
    font-size: 21px !important;
}

.card-meta span {
    min-height: 42px !important;
    padding-inline: 20px !important;
    font-size: 15px !important;
}

/* Catalogue compact : au moins 4 cartes par ligne sur grand ecran */
.catalog-results .anime-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 26px !important;
}

.catalog-results .anime-card {
    min-height: 620px !important;
    padding: 16px !important;
}

.catalog-results .poster-wrap {
    aspect-ratio: auto !important;
    min-height: 0 !important;
    height: 420px !important;
    margin-bottom: 24px !important;
}

.catalog-results .poster-wrap img {
    object-fit: cover !important;
    object-position: center center !important;
}

.catalog-results .card-body h3 {
    margin-bottom: 10px !important;
    font-size: 18px !important;
    white-space: nowrap !important;
}

.catalog-results .card-body p {
    margin-bottom: 14px !important;
    font-size: 14px !important;
}

.catalog-results .card-meta span {
    min-height: 26px !important;
    padding-inline: 12px !important;
    font-size: 11px !important;
}

@media (max-width: 1500px) {
    .catalog-results .anime-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 980px) {
    .catalog-results .anime-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 560px) {
    .catalog-results .anime-grid {
        grid-template-columns: 1fr !important;
    }
}
