:root {
    --bg-main: #09090c;
    --bg-surface: #121217;
    --bg-card: #181822;
    --bg-card-hover: #222230;
    --accent: #e50914;
    --accent-glow: rgba(229, 9, 20, 0.35);
    --accent-gradient: linear-gradient(135deg, #ff2a44 0%, #e50914 100%);
    --text-primary: #ffffff;
    --text-secondary: #c0c0d0;
    --text-muted: #85859e;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-active: rgba(229, 9, 20, 0.6);
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    padding-top: calc(68px + var(--safe-top));
    padding-bottom: calc(85px + var(--safe-bottom));
    min-height: 100vh;
    overflow-x: hidden;
    user-select: none;
    -webkit-font-smoothing: antialiased;
}

/* ------------------- HEADER ------------------- */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: calc(68px + var(--safe-top));
    padding-top: var(--safe-top);
    padding-left: clamp(16px, 4vw, 40px);
    padding-right: clamp(16px, 4vw, 40px);
    background: rgba(9, 9, 12, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 200;
    border-bottom: 1px solid var(--border-subtle);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 32px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    cursor: pointer;
}

.flame-icon {
    font-size: 1.35rem;
    filter: drop-shadow(0 0 10px rgba(255, 60, 40, 0.5));
}

.brand-burning {
    color: #ff3344;
}

.brand-streams {
    color: #ffffff;
    font-weight: 700;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dnav-link {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dnav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.dnav-link.active {
    color: var(--text-primary);
    background: rgba(229, 9, 20, 0.15);
    border: 1px solid rgba(229, 9, 20, 0.3);
}

/* Suche */
.header-right {
    display: flex;
    align-items: center;
}

.search-wrapper {
    position: relative;
    width: clamp(200px, 30vw, 360px);
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    opacity: 0.6;
    pointer-events: none;
}

.search-wrapper input {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    padding: 10px 36px 10px 36px;
    border-radius: 22px;
    color: #fff;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: all 0.25s ease;
}

.search-wrapper input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: #181822;
}

.search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    display: none;
}

/* ------------------- HERO BILLBOARD ------------------- */
.hero-billboard {
    position: relative;
    width: 100%;
    min-height: 440px;
    display: flex;
    align-items: flex-end;
    padding: clamp(24px, 5vw, 60px);
    overflow: hidden;
    margin-bottom: 24px;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 25%;
    filter: brightness(0.65);
    transform: scale(1.02);
    transition: all 0.8s ease-in-out;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(9, 9, 12, 0.2) 0%, rgba(9, 9, 12, 0.7) 60%, var(--bg-main) 100%),
                linear-gradient(90deg, rgba(9, 9, 12, 0.95) 0%, rgba(9, 9, 12, 0.6) 50%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 680px;
    animation: fadeIn 0.6s ease-out;
}

.hero-badge {
    display: inline-block;
    background: var(--accent-gradient);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
    box-shadow: 0 2px 10px var(--accent-glow);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 12px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.badge-quality {
    background: rgba(255, 255, 255, 0.15);
    padding: 2px 7px;
    border-radius: 4px;
    color: #fff;
    font-size: 0.75rem;
}

.hero-description {
    font-size: clamp(0.92rem, 1.5vw, 1.05rem);
    line-height: 1.55;
    color: var(--text-secondary);
    margin-bottom: 22px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-actions {
    display: flex;
    gap: 14px;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    padding: 12px 26px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 18px var(--accent-glow);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 24px rgba(229, 9, 20, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    padding: 12px 22px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.22);
}

/* ------------------- GENRE FILTER ------------------- */
.filter-container {
    padding: 0 clamp(16px, 4vw, 40px);
    margin-bottom: 24px;
}

.filter-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
}

.filter-scroll::-webkit-scrollbar {
    display: none;
}

.chip {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.86rem;
    font-weight: 600;
    font-family: inherit;
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.chip:hover {
    color: #fff;
    background: var(--bg-card);
}

.chip.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 2px 12px var(--accent-glow);
}

/* ------------------- CONTENT GRID ------------------- */
.content-section {
    padding: 0 clamp(16px, 4vw, 40px);
}

.section-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 18px;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.section-count {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

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

.media-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease;
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
}

.media-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.card-poster-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    background: #101018;
    overflow: hidden;
}

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

.media-card:hover .card-poster {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 6px;
    border-radius: 5px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-badge.movie-badge {
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.95), rgba(160, 0, 10, 0.95));
    border-color: rgba(255, 120, 120, 0.5);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(229, 9, 20, 0.35);
}

.card-badge.series-badge {
    background: linear-gradient(135deg, rgba(0, 114, 206, 0.95), rgba(0, 68, 148, 0.95));
    border-color: rgba(120, 180, 255, 0.5);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 114, 206, 0.35);
}

.card-badge.anime-badge {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.95), rgba(107, 33, 168, 0.95));
    border-color: rgba(216, 180, 254, 0.5);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(147, 51, 234, 0.35);
}

.card-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-grow: 1;
}

.card-title {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ------------------- MODAL SHEET (DETAILS) ------------------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 300;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.25s ease-out;
}

.modal-sheet {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    width: 100%;
    max-width: 840px;
    max-height: 88vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
}

.sheet-handle {
    display: none;
    width: 38px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.3);
    margin: 10px auto 4px auto;
    flex-shrink: 0;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    z-index: 20;
    transition: background 0.2s ease;
}

.modal-close:hover {
    background: var(--accent);
}

.detail-hero {
    display: flex;
    gap: 26px;
    padding: 30px;
    background: linear-gradient(180deg, rgba(24, 24, 34, 0.6) 0%, var(--bg-surface) 100%);
}

.detail-poster-wrap {
    width: 180px;
    aspect-ratio: 2 / 3;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.detail-poster-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.detail-meta h2 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.tag-pill {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
}

.detail-meta p {
    font-size: 0.94rem;
    line-height: 1.55;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.btn-fav {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-subtle);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.btn-fav:hover {
    background: rgba(255, 255, 255, 0.16);
}

.detail-body {
    padding: 0 30px 30px 30px;
}

.sub-heading {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

/* Server Buttons */
.server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.server-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: #fff;
    padding: 14px;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.server-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.server-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00e676;
    box-shadow: 0 0 8px #00e676;
}

/* Serien Staffeln & Episoden */
.season-selector {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
}

.season-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
}

.season-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.episode-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 260px;
    overflow-y: auto;
}

.episode-item {
    background: var(--bg-card);
    padding: 12px 16px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.episode-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-subtle);
}

.ep-num {
    font-weight: 800;
    color: var(--accent);
    width: 36px;
}

.ep-name {
    font-weight: 600;
    font-size: 0.92rem;
    flex-grow: 1;
}

.ep-play {
    color: var(--text-muted);
}

/* ------------------- IN-APP CAPTCHA MODAL ------------------- */
.captcha-sheet {
    max-width: 540px;
    padding: 20px;
    background: #101017;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.captcha-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 12px;
}

.captcha-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.captcha-to-player-btn {
    background: rgba(229, 9, 20, 0.18);
    border: 1px solid rgba(229, 9, 20, 0.45);
    color: #ff4d5a;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.captcha-to-player-btn:hover {
    background: #e50914;
    color: #fff;
    transform: translateY(-1px);
}

.captcha-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}

.captcha-subtitle {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.captcha-frame-wrap {
    width: 100%;
    height: 380px;
    border-radius: 12px;
    overflow: hidden;
    background: #09090c;
    border: 1px solid var(--border-subtle);
}

.captcha-frame-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ------------------- NATIVE EXOPLAYER / NETFLIX STYLE PLAYER ------------------- */
.player-overlay {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    user-select: none;
}

.player-embed-frame {
    display: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
    z-index: 50;
}

/* Embed Mode Anpassungen (z.B. für Dropload / externe Hoster) */
.player-overlay.embed-mode .player-center-controls,
.player-overlay.embed-mode .player-bottombar,
.player-overlay.embed-mode .player-tap-zone {
    display: none !important;
}

.player-overlay.embed-mode .player-topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 300;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    pointer-events: auto;
    transition: opacity 0.3s ease;
}

.player-overlay.embed-mode .player-back-btn {
    background: rgba(16, 16, 23, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

.player-overlay.embed-mode #playerHud.hidden {
    opacity: 1 !important;
    pointer-events: none;
}

.player-overlay.embed-mode #playerHud.hidden .player-topbar {
    opacity: 0.85 !important;
    pointer-events: auto !important;
}

.player-overlay.embed-mode #playerHud.hidden .player-topbar:hover {
    opacity: 1 !important;
}




.video-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Tap Zones for Double Tap -10s / +10s */
.player-tap-zone {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40%;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.left-zone { left: 0; }
.right-zone { right: 0; }

.seek-ripple {
    background: rgba(229, 9, 20, 0.4);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    opacity: 0;
    transform: scale(0.6);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.seek-ripple.active {
    opacity: 1;
    transform: scale(1.1);
}

/* Player HUD Overlay */
.player-hud {
    position: absolute;
    inset: 0;
    z-index: 150;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.75) 100%);
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.player-hud.hidden {
    opacity: 0;
    pointer-events: none;
}

.player-hud * {
    pointer-events: auto;
}

/* Top Bar */
.player-topbar {
    padding-top: calc(14px + var(--safe-top));
    padding-left: clamp(16px, 4vw, 32px);
    padding-right: clamp(16px, 4vw, 32px);
    padding-bottom: 20px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.player-info {
    text-align: center;
    flex-grow: 1;
    margin: 0 16px;
}

.player-title {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-status {
    font-size: 0.78rem;
    color: #00e676;
    margin-top: 2px;
}

.player-server-chip {
    background: var(--accent);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 12px;
    letter-spacing: 0.5px;
}

/* Center Controls (Play/Pause & Seek) */
.player-center-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(24px, 6vw, 60px);
}

.hud-center-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    color: #fff;
    width: clamp(52px, 8vw, 68px);
    height: clamp(52px, 8vw, 68px);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.hud-center-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.08);
}

.center-icon {
    font-size: 1.4rem;
    line-height: 1;
}

.btn-subtext {
    font-size: 0.65rem;
    font-weight: 800;
    margin-top: -2px;
}

.hud-play-btn {
    background: var(--accent-gradient);
    border: none;
    color: #fff;
    width: clamp(68px, 11vw, 88px);
    height: clamp(68px, 11vw, 88px);
    border-radius: 50%;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 28px var(--accent-glow);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hud-play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 36px rgba(229, 9, 20, 0.6);
}

/* Bottom Bar & Scrubber */
.player-bottombar {
    padding-bottom: calc(14px + var(--safe-bottom));
    padding-left: clamp(16px, 4vw, 32px);
    padding-right: clamp(16px, 4vw, 32px);
    padding-top: 24px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.scrubber-wrap {
    position: relative;
    width: 100%;
    height: 18px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.scrubber-track {
    position: absolute;
    left: 0;
    right: 0;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    pointer-events: none;
    transition: height 0.15s ease;
}

.scrubber-wrap:hover .scrubber-track {
    height: 8px;
}

.scrubber-buffer {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0%;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 3px;
}

.scrubber-progress {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0%;
    background: var(--accent-gradient);
    border-radius: 3px;
    box-shadow: 0 0 10px var(--accent);
}

.scrubber-wrap input[type="range"] {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    margin: 0;
}

.bottom-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bottom-left, .bottom-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hud-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.hud-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.next-ep-btn {
    background: var(--accent-gradient);
    border: none;
    box-shadow: 0 2px 10px var(--accent-glow);
}

.time-display {
    color: var(--text-secondary);
    font-size: 0.86rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    margin-left: 6px;
}

.volume-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-wrap input[type="range"] {
    width: 75px;
    accent-color: var(--accent);
    cursor: pointer;
}

/* ------------------- BOTTOM NAV (MOBILE) ------------------- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(60px + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    background: rgba(9, 9, 12, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 200;
}

@media (min-width: 900px) {
    .bottom-nav {
        display: none;
    }
}

.nav-item {
    background: none;
    border: none;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    flex-grow: 1;
    padding: 6px 0;
}

.nav-item.active {
    color: var(--accent);
}

.nav-icon {
    font-size: 1.25rem;
}

.nav-label {
    font-size: 0.72rem;
    font-weight: 700;
}

/* Spinner */
.spinner-container {
    display: none;
    text-align: center;
    padding: 60px 0;
}

.spinner {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 14px auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ------------------- RESPONSIVE MOBILE & TABLET LAYOUTS ------------------- */

@keyframes slideUpSheet {
    from {
        transform: translateY(100%);
        opacity: 0.6;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* SMARTPHONE BREAKPOINT (iPhone & Android Handys, < 600px) */
@media (max-width: 599px) {
    body {
        padding-top: calc(56px + var(--safe-top));
        padding-bottom: calc(58px + var(--safe-bottom) + 12px);
        padding-left: var(--safe-left);
        padding-right: var(--safe-right);
    }

    /* Header */
    .app-header {
        height: calc(56px + var(--safe-top));
        padding-top: var(--safe-top);
        padding-left: max(12px, var(--safe-left));
        padding-right: max(12px, var(--safe-right));
        gap: 6px;
    }

    .header-left {
        gap: 0;
        flex-shrink: 0;
    }

    .brand-logo {
        font-size: 1.05rem;
        letter-spacing: -0.3px;
        gap: 4px;
    }

    .flame-icon {
        font-size: 1.15rem;
    }

    .desktop-nav {
        display: none !important;
    }

    .header-right {
        flex: 1;
        justify-content: flex-end;
    }

    .search-wrapper {
        width: 100%;
        max-width: 100%;
        margin-left: 8px;
    }

    .search-wrapper input {
        padding: 7px 28px 7px 30px;
        font-size: 0.82rem;
        height: 36px;
    }

    .search-icon {
        left: 9px;
        font-size: 0.78rem;
    }

    .search-clear {
        right: 8px;
        font-size: 1.05rem;
    }

    /* Hero Billboard */
    .hero-billboard {
        min-height: 320px;
        padding: 14px 14px 16px 14px;
        margin-bottom: 14px;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
    }

    .hero-badge {
        font-size: 0.64rem;
        padding: 2px 7px;
        margin-bottom: 6px;
    }

    .hero-title {
        font-size: 1.55rem;
        line-height: 1.15;
        margin-bottom: 6px;
    }

    .hero-meta {
        font-size: 0.76rem;
        gap: 6px;
        margin-bottom: 8px;
    }

    .hero-description {
        font-size: 0.82rem;
        line-height: 1.35;
        -webkit-line-clamp: 2;
        margin-bottom: 14px;
    }

    .hero-actions {
        display: flex;
        gap: 8px;
        width: 100%;
    }

    .btn-primary, .btn-secondary {
        flex: 1;
        justify-content: center;
        padding: 10px 8px;
        font-size: 0.84rem;
        min-height: 44px;
        border-radius: 9px;
    }

    /* Filter Chips */
    .filter-container {
        padding: 0 12px;
        margin-bottom: 14px;
    }

    .filter-scroll {
        gap: 6px;
    }

    .chip {
        padding: 6px 12px;
        font-size: 0.78rem;
        min-height: 34px;
    }

    /* Content & 2-Spalten Poster Grid */
    .content-section {
        padding: 0 12px;
    }

    .section-header {
        margin-bottom: 10px;
    }

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

    .section-count {
        font-size: 0.78rem;
    }

    .media-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .media-card {
        border-radius: 10px;
    }

    .card-badge {
        font-size: 0.62rem;
        padding: 2px 5px;
        top: 6px;
        right: 6px;
    }

    .card-info {
        padding: 8px 9px 9px 9px;
        gap: 2px;
    }

    .card-title {
        font-size: 0.84rem;
    }

    .card-meta {
        font-size: 0.72rem;
    }

    /* Detail Modal (Native Bottom Sheet) */
    .modal-overlay {
        align-items: flex-end !important;
        padding: 0 !important;
    }

    .modal-sheet {
        border-radius: 20px 20px 0 0 !important;
        max-height: 90vh !important;
        max-width: 100% !important;
        border-left: none !important;
        border-right: none !important;
        border-bottom: none !important;
        animation: slideUpSheet 0.28s cubic-bezier(0.16, 1, 0.3, 1);
        padding-bottom: max(16px, var(--safe-bottom));
    }

    .sheet-handle {
        display: block !important;
    }

    .modal-close {
        top: 10px !important;
        right: 12px !important;
        width: 32px !important;
        height: 32px !important;
        font-size: 1.25rem !important;
    }

    .detail-hero {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        text-align: left !important;
        gap: 14px !important;
        padding: 10px 16px 14px 16px !important;
    }

    .detail-poster-wrap {
        width: 95px !important;
        border-radius: 8px !important;
        flex-shrink: 0 !important;
    }

    .detail-meta {
        flex: 1;
        min-width: 0;
        justify-content: flex-start;
    }

    .detail-meta h2 {
        font-size: 1.18rem !important;
        margin-bottom: 4px !important;
        line-height: 1.25 !important;
    }

    .detail-tags {
        gap: 4px !important;
        margin-bottom: 6px !important;
    }

    .tag-pill {
        font-size: 0.68rem !important;
        padding: 2px 6px !important;
    }

    .detail-meta p {
        display: -webkit-box !important;
        -webkit-line-clamp: 3 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        font-size: 0.8rem !important;
        line-height: 1.35 !important;
        margin-bottom: 10px !important;
    }

    .btn-fav {
        align-self: flex-start !important;
        padding: 6px 12px !important;
        font-size: 0.78rem !important;
        min-height: 36px !important;
    }

    .detail-body {
        padding: 0 16px 16px 16px !important;
    }

    .sub-heading {
        font-size: 0.92rem !important;
        margin-bottom: 8px !important;
    }

    .season-selector {
        gap: 6px !important;
    }

    .season-btn {
        padding: 6px 12px !important;
        font-size: 0.78rem !important;
        min-height: 36px !important;
    }

    .episode-list {
        max-height: 260px !important;
        gap: 6px !important;
    }

    .episode-item {
        padding: 10px 12px !important;
        min-height: 44px !important;
    }

    .ep-num {
        width: 30px !important;
        font-size: 0.82rem !important;
    }

    .ep-name {
        font-size: 0.84rem !important;
    }

    .server-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .server-btn {
        padding: 11px 10px !important;
        font-size: 0.8rem !important;
        min-height: 46px !important;
    }

    /* Player Overlay Phone */
    .player-topbar {
        padding-top: max(10px, var(--safe-top));
        padding-left: max(12px, var(--safe-left));
        padding-right: max(12px, var(--safe-right));
        padding-bottom: 10px;
    }

    .player-back-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .player-title {
        font-size: 0.85rem;
    }

    .player-status {
        font-size: 0.72rem;
    }

    .player-server-chip {
        font-size: 0.65rem;
        padding: 3px 8px;
    }

    .player-center-controls {
        gap: 22px;
    }

    .hud-center-btn {
        width: 50px;
        height: 50px;
    }

    .center-icon {
        font-size: 1.15rem;
    }

    .btn-subtext {
        font-size: 0.6rem;
    }

    .hud-play-btn {
        width: 64px;
        height: 64px;
        font-size: 1.6rem;
    }

    .player-bottombar {
        padding-bottom: max(10px, var(--safe-bottom));
        padding-left: max(12px, var(--safe-left));
        padding-right: max(12px, var(--safe-right));
        padding-top: 10px;
        gap: 6px;
    }

    .volume-wrap {
        display: none !important;
    }

    .time-display {
        font-size: 0.76rem;
        margin-left: 2px;
    }

    .hud-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    /* Bottom Navigation */
    .bottom-nav {
        display: flex !important;
        height: calc(56px + var(--safe-bottom));
        padding-bottom: var(--safe-bottom);
    }

    .nav-item {
        min-height: 46px;
    }

    .nav-icon {
        font-size: 1.15rem;
    }

    .nav-label {
        font-size: 0.68rem;
    }
}

/* TABLET BREAKPOINT (iPad & Android Tablets wie SM-T335, 600px - 1024px) */
@media (min-width: 600px) and (max-width: 1024px) {
    body {
        padding-top: calc(64px + var(--safe-top));
        padding-bottom: calc(20px + var(--safe-bottom));
        padding-left: var(--safe-left);
        padding-right: var(--safe-right);
    }

    .app-header {
        height: calc(64px + var(--safe-top));
        padding-top: var(--safe-top);
        padding-left: max(20px, var(--safe-left));
        padding-right: max(20px, var(--safe-right));
    }

    .header-left {
        gap: 18px;
    }

    .brand-logo {
        font-size: 1.2rem;
    }

    .desktop-nav {
        display: flex !important;
        gap: 6px;
    }

    .dnav-link {
        font-size: 0.9rem;
        padding: 7px 12px;
    }

    .search-wrapper {
        width: clamp(200px, 28vw, 300px);
    }

    .bottom-nav {
        display: none !important;
    }

    .hero-billboard {
        min-height: 380px;
        padding: 24px 28px;
        margin-bottom: 20px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-description {
        -webkit-line-clamp: 2;
        font-size: 0.92rem;
    }

    .filter-container {
        padding: 0 24px;
        margin-bottom: 20px;
    }

    .content-section {
        padding: 0 24px;
    }

    .media-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
        gap: 16px !important;
    }

    .modal-overlay {
        align-items: center !important;
        padding: 24px !important;
    }

    .modal-sheet {
        border-radius: 18px !important;
        max-width: 740px !important;
        max-height: 85vh !important;
    }

    .sheet-handle {
        display: none !important;
    }

    .detail-hero {
        display: flex !important;
        flex-direction: row !important;
        gap: 20px !important;
        padding: 24px !important;
    }

    .detail-poster-wrap {
        width: 140px !important;
    }

    .detail-meta h2 {
        font-size: 1.5rem !important;
    }

    .server-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
        gap: 10px !important;
    }

    .episode-list {
        max-height: 300px !important;
    }
}

/* DESKTOP BREAKPOINT (> 1024px) */
@media (min-width: 1025px) {
    .bottom-nav {
        display: none !important;
    }
}
