@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;900&display=swap');

/* ═══════════════════════════════════════════════════════
   BASE
═══════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

body {
    background-color: #141414;
    color: #ffffff;
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* ═══════════════════════════════════════════════════════
   SCROLLBAR
═══════════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: #141414; }
::-webkit-scrollbar-thumb { background: #555; border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: #888; }
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* ═══════════════════════════════════════════════════════
   ANTI-COPY
═══════════════════════════════════════════════════════ */
.non-interactable { pointer-events: none; }
.interactable { pointer-events: auto; }

/* ═══════════════════════════════════════════════════════
   SPLASH SCREEN  (Netflix-style animated logo)
═══════════════════════════════════════════════════════ */
.splash-screen {
    position: fixed;
    inset: 0;
    background-color: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease-out;
}
.splash-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.splash-logo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* The red "film strip" bar — like Netflix's N */
.splash-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 10px;
    background: #E50914;
    animation: barReveal 0.4s ease forwards;
    transform-origin: top;
}
@keyframes barReveal {
    from { transform: scaleY(0); }
    to   { transform: scaleY(1); }
}

.splash-text {
    font-size: 7rem;
    font-weight: 900;
    color: #E50914;
    letter-spacing: 8px;
    text-transform: uppercase;
    opacity: 0;
    animation: splashReveal 2.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.2s;
}

@keyframes splashReveal {
    0%   { opacity: 0; transform: scale(1.3) translateY(10px); filter: blur(20px); }
    20%  { opacity: 1; transform: scale(1) translateY(0);       filter: blur(0); }
    70%  { opacity: 1; transform: scale(1.02); }
    90%  { opacity: 1; }
    100% { opacity: 0; transform: scale(1.1); }
}

/* ═══════════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════════ */
.nav-black {
    background: linear-gradient(to bottom, #141414 0%, rgba(20,20,20,0.98) 100%) !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.5);
    transition: all 0.4s ease;
}
.nav-transparent {
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, transparent 100%) !important;
    transition: all 0.4s ease;
}

/* ═══════════════════════════════════════════════════════
   BILLBOARD / HERO
═══════════════════════════════════════════════════════ */
.billboard-gradient {
    background: linear-gradient(77deg, rgba(0,0,0,.75) 0%, transparent 70%);
}
.billboard-bottom-fade {
    background: linear-gradient(180deg, transparent 0%, rgba(20,20,20,.5) 50%, #141414 100%);
}

/* ═══════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════ */
.btn-play {
    background-color: #fff;
    color: #000;
    transition: background-color 0.2s;
}
.btn-play:hover { background-color: rgba(255,255,255,0.75); }

.btn-more {
    background-color: rgba(109,109,110,0.7);
    color: #fff;
    transition: background-color 0.2s;
}
.btn-more:hover { background-color: rgba(109,109,110,0.4); }

/* ═══════════════════════════════════════════════════════
   VIDEO CARDS / ROWS
═══════════════════════════════════════════════════════ */
.row-posters {
    display: flex;
    overflow-y: hidden;
    overflow-x: scroll;
    padding: 12px 0 20px 16px;
    gap: 6px;
}

.card-wrapper {
    position: relative;
    flex: none;
    cursor: pointer;
    transition: transform 400ms ease, z-index 0s 400ms;
    border-radius: 4px;
    overflow: hidden;
}
.card-wrapper:hover {
    transform: scale(1.1);
    z-index: 10;
    transition: transform 400ms ease, z-index 0s;
}

.row-poster {
    display: block;
    object-fit: cover;
    height: 140px;
    aspect-ratio: 16 / 9;
    border-radius: 4px;
    transition: inherit;
}
.row-posterLarge {
    height: 210px;
    aspect-ratio: 2 / 3;
}

/* Card hover overlay */
.card-info-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 300ms ease;
    padding: 8px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.card-wrapper:hover .card-info-overlay { opacity: 1; }

/* ═══════════════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════════════ */
@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.96) translateY(8px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
.animate-fade-in {
    animation: fadeInScale 0.3s ease-out forwards;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-slide-up {
    animation: slideUp 0.4s ease-out forwards;
}

/* ═══════════════════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════════════════ */
.sidebar-link-active {
    border-left-color: #E50914 !important;
    color: #fff !important;
    background: rgba(255,255,255,0.05);
}

/* ═══════════════════════════════════════════════════════
   AUTH — Floating Labels (Netflix-style)
═══════════════════════════════════════════════════════ */
.auth-input {
    height: 58px;
    font-size: 16px;
}
.auth-label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #8c8c8c;
    font-size: 15px;
    pointer-events: none;
    transition: top 0.15s ease, font-size 0.15s ease, color 0.15s ease;
}
.auth-input:focus ~ .auth-label,
.auth-input:not(:placeholder-shown) ~ .auth-label {
    top: 10px;
    transform: none;
    font-size: 11px;
    color: #8c8c8c;
}

/* ═══════════════════════════════════════════════════════
   SEARCH BAR
═══════════════════════════════════════════════════════ */
.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 32px;
}
.search-input-field {
    background: rgba(0,0,0,0.75);
    border: 1px solid rgba(255,255,255,0.85);
    color: #fff;
    font-size: 14px;
    padding: 4px 36px 4px 32px;
    width: 220px;
    transition: width 0.3s ease;
    outline: none;
}
.search-input-field::placeholder { color: #aaa; }
.search-collapsed { width: 0; border-color: transparent; padding: 0; }

/* ═══════════════════════════════════════════════════════
   VIDEO PLAYER
═══════════════════════════════════════════════════════ */
.player-container {
    background: #000;
    cursor: default;
}
.player-controls {
    transition: opacity 0.35s ease;
}
.player-controls.hidden {
    opacity: 0;
    pointer-events: none;
}
.player-container.idle { cursor: none; }

.scrubber-track {
    position: relative;
    height: 4px;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    border-radius: 2px;
    transition: height 0.15s ease;
}
.scrubber-track:hover { height: 6px; }

.scrubber-fill {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    background: #E50914;
    border-radius: 2px;
    pointer-events: none;
}
.scrubber-thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 14px; height: 14px;
    background: #E50914;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    box-shadow: 0 0 6px rgba(229,9,20,0.8);
}
.scrubber-track:hover .scrubber-thumb { opacity: 1; }

.player-btn {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s, background 0.15s;
}
.player-btn:hover {
    transform: scale(1.2);
    background: rgba(255,255,255,0.1);
}

/* ═══════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════ */
.racoon-footer {
    background: #141414;
    border-top: 1px solid #333;
    padding: 40px 48px;
    color: #737373;
    font-size: 13px;
}
.racoon-footer a {
    color: #737373;
    text-decoration: none;
    transition: color 0.2s;
}
.racoon-footer a:hover { color: #fff; }

/* ═══════════════════════════════════════════════════════
   TOAST NOTIFICATION
═══════════════════════════════════════════════════════ */
.toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #fff;
    color: #000;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 99999;
    pointer-events: none;
    white-space: nowrap;
}
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ═══════════════════════════════════════════════════════
   "NEW" BADGE on cards
═══════════════════════════════════════════════════════ */
.new-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: #E50914;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 2px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    pointer-events: none;
    z-index: 5;
}
