/* ==========================================
   LabaFlix — Netflix Mobile Skin
   ONLY applies to screens ≤ 768px
   Desktop is untouched.
   ========================================== */

@media (max-width: 768px) {

  /* ---------- GLOBAL ---------- */
  html, body {
    font-size: 14px;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
  }
  * { -webkit-tap-highlight-color: transparent; }

  /* ---------- NAV — Netflix mobile compact ---------- */
  nav {
    height: 52px !important;
    padding: 0 12px !important;
    gap: .5rem !important;
  }
  .brand {
    font-size: 1.2rem !important;
    letter-spacing: -1px !important;
    flex-shrink: 0;
  }
  .nav-links { display: none !important; }
  .nav-right { gap: .4rem !important; margin-left: auto; }
  .vj-select { display: none !important; }
  .search-wrap { padding: 2px 6px !important; }
  .search-wrap.open input { width: 130px !important; font-size: 14px !important; }
  .avatar, .notif-btn { width: 30px !important; height: 30px !important; }
  .notif-btn svg { width: 20px !important; height: 20px !important; }

  /* ---------- HERO — Netflix mobile ---------- */
  .hero {
    height: 68vh !important;
    min-height: 400px !important;
    padding: 0 1rem 3rem !important;
    align-items: flex-end !important;
  }
  .hero::before {
    background:
      linear-gradient(180deg, rgba(20,20,20,0) 45%, rgba(20,20,20,.95) 92%),
      linear-gradient(0deg, rgba(20,20,20,0) 0%, rgba(20,20,20,.4) 100%) !important;
  }
  .hero-content {
    max-width: 100% !important;
    text-align: center !important;
  }
  .hero-tag {
    justify-content: center !important;
    font-size: .6rem !important;
    letter-spacing: 2px !important;
    margin-bottom: .5rem !important;
  }
  .hero-tag::before { display: none !important; }
  .hero h1 {
    font-size: 1.7rem !important;
    line-height: 1.15 !important;
    margin-bottom: .5rem !important;
    letter-spacing: -.5px !important;
  }
  .hero-meta {
    justify-content: center !important;
    font-size: .75rem !important;
    gap: .5rem !important;
    margin-bottom: .7rem !important;
  }
  .hero-meta .vj-pill {
    font-size: .6rem !important;
    padding: 3px 8px !important;
  }
  .hero-desc {
    font-size: .85rem !important;
    line-height: 1.4 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem !important;
    color: #ccc !important;
  }
  .hero-buttons, .modal-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: .4rem !important;
    width: 100% !important;
  }
  .hero-buttons .btn,
  .modal-actions .btn {
    width: 100% !important;
    justify-content: center !important;
    padding: .8rem 1rem !important;
    font-size: .9rem !important;
    border-radius: 4px !important;
  }

  /* ---------- ROWS — Netflix mobile cards ---------- */
  main {
    padding: 1rem 0 2rem !important;
    margin-top: -50px !important;
  }
  .row { margin-bottom: 1.4rem !important; }
  .row h3 {
    font-size: .95rem !important;
    padding: 0 .9rem !important;
    margin-bottom: .4rem !important;
    font-weight: 700 !important;
  }
  .row h3 .count { display: none !important; }
  .row-scroll {
    gap: .3rem !important;
    padding: .4rem .9rem .8rem !important;
  }

  .card {
    width: 138px !important;
    border-radius: 3px !important;
  }
  .card:hover { transform: none !important; box-shadow: none !important; border-color: transparent !important; }
  .card-info {
    padding: .4rem .5rem .5rem !important;
    opacity: 1 !important;
    max-height: none !important;
  }
  .card-title { font-size: .78rem !important; line-height: 1.2 !important; }
  .card-meta { font-size: .66rem !important; gap: .3rem !important; }
  .vj-tag {
    font-size: .55rem !important;
    padding: 2px 5px !important;
    top: 4px !important;
    left: 4px !important;
  }

  /* ---------- DETAIL PAGES ---------- */
  .wrap {
    padding: 60px .9rem 2rem !important;
    max-width: 100% !important;
  }
  .detail-hero, .series-hero, .hero-section {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
  }
  .poster-box {
    width: 100% !important;
    max-height: 52vh !important;
    border-radius: 6px !important;
  }
  .side-info h1, .series-info h1 { font-size: 1.4rem !important; line-height: 1.15 !important; }
  .side-info, .series-info { gap: .5rem !important; }
  .translated, .size, .ep-count, .now { font-size: .82rem !important; }

  .btn-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: .4rem !important;
  }
  .btn-row .btn {
    flex: 1 1 calc(50% - .3rem) !important;
    min-width: 0 !important;
    width: auto !important;
    padding: .7rem .6rem !important;
    font-size: .82rem !important;
    justify-content: center !important;
  }
  .btn-row .btn-primary { flex-basis: 100% !important; }
  .btn svg { width: 16px !important; height: 16px !important; }

  .section { margin-bottom: 1.4rem !important; }
  .section-title { font-size: .9rem !important; margin-bottom: .6rem !important; }
  .section-title::before { width: 3px; height: 14px; }

  /* ---------- COMMUNITY — single column ---------- */
  .community { grid-template-columns: 1fr !important; gap: .5rem !important; }
  .community-card { padding: .7rem .8rem !important; gap: .6rem !important; }
  .community-card .icon { width: 36px !important; height: 36px !important; }
  .community-card .icon svg { width: 18px !important; height: 18px !important; }
  .community-card .label { font-size: .85rem !important; }
  .community-card .sub { font-size: .7rem !important; }

  /* ---------- RATINGS ---------- */
  .ratings-box, .ratings {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: .8rem !important;
    padding: 1.1rem !important;
    border-radius: 8px !important;
  }
  .rating-num { font-size: 1.8rem !important; }
  .rating-meta { font-size: .78rem !important; }
  .star { font-size: 1.4rem !important; }

  /* ---------- COMMENTS ---------- */
  .comment, .comment-form {
    padding: .8rem .9rem !important;
    border-radius: 8px !important;
  }
  .comment-user { font-size: .8rem !important; }
  .comment-text { font-size: .82rem !important; line-height: 1.4 !important; }
  .comment-form input, .comment-form textarea {
    font-size: 16px !important;
    padding: .6rem .8rem !important;
  }
  .comment-form textarea { min-height: 70px !important; }
  .comment-form .btn { padding: .6rem 1rem !important; font-size: .85rem !important; }

  /* ---------- RELATED GRID — 2 columns ---------- */
  .related-grid, .movie-mini-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: .5rem !important;
  }
  .related-card .title { font-size: .78rem !important; }
  .related-card .meta { font-size: .68rem !important; }
  .related-card .vj-tag, .related-card .age-tag {
    font-size: .55rem !important;
    padding: 2px 5px !important;
  }

  /* ---------- MODAL — Fullscreen on mobile ---------- */
  .modal-backdrop {
    padding: 0 !important;
    align-items: stretch !important;
  }
  .modal {
    max-width: 100% !important;
    max-height: 100vh !important;
    height: 100vh !important;
    border-radius: 0 !important;
  }
  .modal-hero { aspect-ratio: 16 / 9; }
  .modal-body { padding: 1rem 1.1rem 2rem !important; }
  .modal-body h2 { font-size: 1.35rem !important; }
  .modal-close { width: 40px !important; height: 40px !important; top: 10px !important; right: 10px !important; font-size: 1rem !important; }
  .modal-meta { font-size: .78rem !important; gap: .5rem !important; }

  /* ---------- PLAYER ---------- */
  .player-wrap {
    border-radius: 4px !important;
    margin: .5rem 0 1rem 0 !important;
  }

  /* ---------- SEASONS / EPISODES ---------- */
  .seasons-picker, .seasons, .season-tabs {
    display: flex !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    gap: .4rem !important;
    padding-bottom: .5rem !important;
    -webkit-overflow-scrolling: touch;
  }
  .season-btn {
    flex-shrink: 0 !important;
    padding: .5rem .9rem !important;
    font-size: .82rem !important;
    white-space: nowrap !important;
  }
  .season-block { border-radius: 6px !important; }
  .season-header { padding: .7rem .9rem !important; }
  .season-title { font-size: .9rem !important; }
  .season-title span { display: block !important; margin: .15rem 0 0 0 !important; font-size: .72rem !important; }

  .episode-row {
    padding: .7rem .7rem !important;
    gap: .6rem !important;
    border-radius: 6px !important;
  }
  .ep-num, .episode-num-badge {
    width: 42px !important;
    height: 42px !important;
    font-size: .78rem !important;
    border-radius: 6px !important;
  }
  .ep-title, .episode-title { font-size: .85rem !important; }
  .ep-meta, .episode-meta { font-size: .7rem !important; }
  .ep-play, .episode-play { width: 32px !important; height: 32px !important; }

  /* ---------- FOOTER — Stacked Netflix mobile ---------- */
  footer {
    padding: 1.8rem .9rem !important;
    margin-top: 2rem !important;
    border-top: 1px solid #1e1e1e !important;
  }
  .foot-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
  }
  .foot-grid > div:first-child {
    grid-column: 1 / -1 !important;
    margin-bottom: .5rem !important;
  }
  .foot-brand { font-size: 1.1rem !important; }
  .foot-text { font-size: .78rem !important; line-height: 1.5 !important; }
  .foot-col h4 { font-size: .65rem !important; margin-bottom: .5rem !important; }
  .foot-col a { font-size: .78rem !important; padding: 2px 0 !important; }
  .foot-links, .footer-links {
    grid-template-columns: 1fr 1fr !important;
    gap: .4rem 1rem !important;
    font-size: .72rem !important;
  }
  .foot-bottom {
    font-size: .7rem !important;
    padding-top: 1rem !important;
    margin-top: 1rem !important;
  }

  /* ---------- AUTH ---------- */
  .center { padding: 1rem .9rem !important; min-height: 100vh !important; }
  .auth-card, .plan-card, .modal-card {
    max-width: 100% !important;
    padding: 1.5rem 1.2rem !important;
    border-radius: 10px !important;
  }
  .auth-card h1, .modal-card h2 { font-size: 1.35rem !important; }
  .auth-card .subtitle { font-size: .85rem !important; }
  .field input, .field select { font-size: 16px !important; padding: .75rem .9rem !important; }
  .field label { font-size: .65rem !important; }

  /* ---------- PLANS / PAY ---------- */
  .plan-grid { grid-template-columns: 1fr !important; gap: .7rem !important; }
  .plan-card { padding: 1.3rem 1.2rem !important; border-radius: 8px !important; }
  .plan-card .p-title { font-size: 1rem !important; }
  .plan-card .p-price { font-size: 1.6rem !important; }
  .plan-card .p-btn { padding: .8rem 1rem !important; font-size: .9rem !important; }

  .method-grid { grid-template-columns: 1fr !important; gap: .6rem !important; }
  .method { padding: 1rem 1.1rem !important; }
  .dropdown-row, .dropdown-box-row { grid-template-columns: 1fr !important; gap: .6rem !important; }
  .plan-summary { padding: 1rem 1.1rem !important; border-radius: 10px !important; }
  .plan-summary .name { font-size: 1.1rem !important; }
  .plan-summary .amt { font-size: 1.4rem !important; }
  .total .val { font-size: 1.15rem !important; }
  .pay-btn { font-size: .92rem !important; padding: 1rem !important; border-radius: 8px !important; }
  .terms { font-size: .7rem !important; }

  /* ---------- PROFILE ---------- */
  .layout { grid-template-columns: 1fr !important; gap: .9rem !important; }
  .sidebar {
    position: relative !important;
    top: 0 !important;
    padding: .4rem 0 !important;
    border-radius: 8px !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    display: flex !important;
    flex-wrap: nowrap !important;
  }
  .sidebar a {
    padding: 10px 1rem !important;
    font-size: .85rem !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }
  .sb-group { display: contents !important; }
  .sb-group-title { display: none !important; }

  .acct-header { padding: 1.1rem 1.1rem !important; border-radius: 10px !important; }
  .acct-top { gap: 1rem !important; flex-direction: column !important; text-align: center !important; }
  .acct-avatar { width: 64px !important; height: 64px !important; }
  .acct-meta { text-align: center !important; }
  .acct-meta .name { font-size: 1.25rem !important; }
  .acct-meta .email { font-size: .78rem !important; }

  .stats-row {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: .7rem !important;
    padding-top: 1rem !important;
  }
  .stat .value { font-size: 1.2rem !important; }
  .stat .label { font-size: .65rem !important; }

  .sub-strip { padding: .9rem 1rem !important; border-radius: 8px !important; }
  .ref-card { padding: .9rem 1rem !important; border-radius: 8px !important; }
  .ref-card .ref-info .code { font-size: 1.1rem !important; }

  /* ---------- HELP ---------- */
  .help-hero { padding: 70px 1rem 2rem !important; }
  .help-hero h1 { font-size: 1.5rem !important; }
  .help-hero p { font-size: .85rem !important; margin-bottom: 1rem !important; }
  .search-bar input { padding: .8rem 2.5rem .8rem 1rem !important; font-size: 16px !important; }

  .quick-topics { grid-template-columns: 1fr !important; gap: .6rem !important; }
  .topic { padding: .9rem !important; border-radius: 8px !important; }
  .topic-title { font-size: .9rem !important; }
  .topic-desc { font-size: .78rem !important; }
  .topic-icon { width: 36px !important; height: 36px !important; }
  .topic-icon svg { width: 18px !important; height: 18px !important; }

  .contact-grid { grid-template-columns: 1fr !important; gap: .6rem !important; }
  .contact-card { padding: .9rem 1rem !important; gap: .8rem !important; }
  .contact-icon { width: 42px !important; height: 42px !important; }
  .contact-icon svg { width: 20px !important; height: 20px !important; }
  .contact-name { font-size: .9rem !important; }
  .contact-desc { font-size: .72rem !important; }
  .contact-value { font-size: .78rem !important; }

  .info-box { padding: 1.1rem !important; border-radius: 8px !important; }
  .info-box h3 { font-size: 1rem !important; }
  .info-row { font-size: .82rem !important; line-height: 1.5 !important; }

  /* ---------- ADMIN ---------- */
  .tabs {
    display: flex !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    gap: .3rem !important;
    padding: 3px !important;
    -webkit-overflow-scrolling: touch;
  }
  .tab {
    flex-shrink: 0 !important;
    font-size: .82rem !important;
    padding: .55rem .9rem !important;
    white-space: nowrap !important;
  }

  .upload-form { padding: 1rem !important; border-radius: 8px !important; }

  .movie-row {
    grid-template-columns: 24px 56px 1fr !important;
    gap: .5rem !important;
    padding: .6rem !important;
    align-items: center !important;
  }
  .movie-row img { width: 56px !important; }
  .movie-row .title { font-size: .85rem !important; }
  .movie-row .meta { font-size: .7rem !important; }
  .movie-row .actions {
    grid-column: 1 / -1 !important;
    display: flex !important;
    gap: .4rem !important;
    margin-top: .4rem !important;
  }
  .movie-row .actions button { flex: 1 !important; }

  /* ---------- MISC ---------- */
  img { max-width: 100%; height: auto; }
  input, select, textarea { font-size: 16px !important; } /* prevents iOS zoom */

  /* ---------- Hide "Available on" desktop strip on mobile ---------- */
  .available-on { display: none !important; }
}

/* ---------- EXTRA SMALL (≤ 380px) ---------- */
@media (max-width: 380px) {
  .hero h1 { font-size: 1.4rem !important; }
  .card { width: 120px !important; }
  .row h3 { font-size: .85rem !important; }
  .hero-meta { font-size: .7rem !important; }
  .brand { font-size: 1.05rem !important; }
}

/* ==========================================
   MOBILE BOTTOM TAB NAV (Netflix/Instagram style)
   Only on mobile (≤ 768px)
   ========================================== */

/* Hide on desktop */
.mobile-bottom-nav { display: none; }

@media (max-width: 768px) {

  /* Show bottom nav */
  .mobile-bottom-nav {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 62px;
    background: rgba(10, 10, 12, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid #1f1f24;
    z-index: 9999;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .mobile-bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #7a7a85;
    text-decoration: none;
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .3px;
    transition: color .18s ease, transform .18s ease;
    -webkit-tap-highlight-color: transparent;
    position: relative;
  }

  .mobile-bottom-nav a svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.8;
    transition: stroke-width .2s ease;
  }

  .mobile-bottom-nav a:active {
    transform: scale(0.92);
  }

  .mobile-bottom-nav a.active,
  .mobile-bottom-nav a:has(+ a:hover),
  .mobile-bottom-nav a:target {
    color: #fff;
  }

  .mobile-bottom-nav a.active svg {
    stroke-width: 2.4;
  }

  /* Subtle red dot above active tab */
  .mobile-bottom-nav a.active::before {
    content: "";
    position: absolute;
    top: 6px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--red, #e50914);
    box-shadow: 0 0 8px var(--red, #e50914);
  }

  /* Push page content up so bottom nav doesn't cover it */
  body.has-mobile-nav {
    padding-bottom: 74px !important;
  }

  footer {
    padding-bottom: 90px !important;
  }

  /* ---------- HERO PLAY BUTTON — match desktop style ---------- */
  .hero-buttons {
    display: flex !important;
    flex-direction: row !important;
    gap: .6rem !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    width: 100% !important;
  }
  .hero-buttons .btn {
    width: auto !important;
    min-width: 140px !important;
    padding: .8rem 1.6rem !important;
    font-size: .95rem !important;
    font-weight: 700 !important;
    border-radius: 4px !important;
    justify-content: center !important;
  }
  .hero-buttons .btn-play {
    background: #fff !important;
    color: #000 !important;
  }
  .hero-buttons .btn-info {
    background: rgba(109,109,110,.7) !important;
    color: #fff !important;
  }
  .hero-buttons .btn svg {
    width: 18px !important;
    height: 18px !important;
  }

  /* Make sure modal doesn't get hidden by bottom nav */
  .modal-backdrop { z-index: 10000 !important; }
}

/* ==========================================
   FORCE BOTTOM NAV TO BOTTOM
   ========================================== */

@media (max-width: 768px) {
  nav.mobile-bottom-nav,
  .mobile-bottom-nav {
    position: fixed !important;
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 62px !important;
    margin: 0 !important;
    padding: 0 !important;
    padding-bottom: env(safe-area-inset-bottom) !important;
    transform: none !important;
    z-index: 9999 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    justify-content: space-around !important;
    background: rgba(10, 10, 12, 0.96) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border-top: 1px solid #1f1f24 !important;
    border-bottom: none !important;
    box-shadow: 0 -4px 24px rgba(0,0,0,.6) !important;
  }

  /* Kill any inherited top bar styling */
  nav.mobile-bottom-nav {
    top: unset !important;
  }
}

/* ==========================================
   ROCK-SOLID BOTTOM NAV — stays put on scroll
   ========================================== */

@media (max-width: 768px) {

  /* Prevent page-level scroll bounce that lifts fixed elements */
  html, body {
  }

  /* Lock the bottom nav in place with higher z-index */
  .mobile-bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    height: 62px !important;
    padding: 0 !important;
    padding-bottom: calc(env(safe-area-inset-bottom, 0px)) !important;
    margin: 0 !important;
    transform: none !important;
    translate: 0 0 !important;
    will-change: auto !important;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
    z-index: 999999 !important;
    pointer-events: auto !important;
  }

  /* iOS Safari: safe area for the home indicator */
  @supports (padding: env(safe-area-inset-bottom)) {
    .mobile-bottom-nav {
      padding-bottom: env(safe-area-inset-bottom) !important;
      height: calc(62px + env(safe-area-inset-bottom)) !important;
    }
    body.has-mobile-nav {
      padding-bottom: calc(74px + env(safe-area-inset-bottom)) !important;
    }
    footer {
      padding-bottom: calc(90px + env(safe-area-inset-bottom)) !important;
    }
  }

  /* Prevent scroll chaining from the nav itself */
  .mobile-bottom-nav {
    overscroll-behavior: contain !important;
  }
}

   HERO PLAY BUTTON — Match Desktop (Netflix style)
   ========================================== */

@media (max-width: 768px) {

  /* Row layout with two buttons side-by-side, wraps on tiny screens */
  .hero-buttons {
    display: flex !important;
    flex-direction: row !important;
    gap: .55rem !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    width: 100% !important;
    margin-top: .4rem !important;
  }

  /* Base button look — matches desktop */
  .hero-buttons .btn {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: .5rem !important;
    width: auto !important;
    min-width: 120px !important;
    max-width: 100% !important;
    padding: .7rem 1.5rem !important;
    font-size: .95rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    border-radius: 4px !important;
    border: none !important;
    cursor: pointer !important;
    letter-spacing: .2px !important;
    transition: transform .15s ease, background .15s ease !important;
    white-space: nowrap !important;
  }

  .hero-buttons .btn:active {
    transform: scale(0.97) !important;
  }

  /* Play button — white background, black text (exactly like desktop) */
  .hero-buttons .btn-play,
  .hero-buttons .btn.btn-primary:not(.btn-info) {
    background: #ffffff !important;
    color: #000000 !important;
    box-shadow: 0 4px 14px rgba(0,0,0,.5) !important;
  }
  .hero-buttons .btn-play:hover,
  .hero-buttons .btn-play:active {
    background: #e6e6e6 !important;
    color: #000 !important;
  }

  /* More Info button — grey translucent, white text */
  .hero-buttons .btn-info,
  .hero-buttons .btn-secondary {
    background: rgba(109, 109, 110, 0.7) !important;
    color: #ffffff !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
  }
  .hero-buttons .btn-info:hover,
  .hero-buttons .btn-secondary:hover {
    background: rgba(109, 109, 110, 0.5) !important;
  }

  /* Play triangle icon — solid black */
  .hero-buttons .btn-play svg {
    width: 20px !important;
    height: 20px !important;
    fill: #000 !important;
    stroke: none !important;
    flex-shrink: 0 !important;
  }

  /* Info icon — white outline */
  .hero-buttons .btn-info svg {
    width: 20px !important;
    height: 20px !important;
    fill: none !important;
    stroke: #fff !important;
    stroke-width: 2 !important;
    flex-shrink: 0 !important;
  }

  /* Ensure the hero-content doesn't force center alignment */
  .hero-content {
    text-align: left !important;
    align-items: flex-start !important;
  }

  /* Very small screens: full-width stacked buttons like Netflix */
  @media (max-width: 380px) {
    .hero-buttons {
      flex-direction: column !important;
      align-items: stretch !important;
    }
    .hero-buttons .btn {
      width: 100% !important;
      min-width: 0 !important;
    }
  }
}

/* ==========================================
   HERO LAYOUT OVERRIDE — keep buttons inline, left-aligned
   ========================================== */

@media (max-width: 768px) {
  .hero-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    padding: 0 !important;
  }

  .hero-tag {
    justify-content: flex-start !important;
    text-align: left !important;
  }
  .hero-tag::before {
    display: inline-block !important;
    width: 20px !important;
    height: 2px !important;
    background: var(--red, #e50914) !important;
    margin-right: .5rem !important;
  }

  .hero h1 { text-align: left !important; }
  .hero-meta { justify-content: flex-start !important; }
  .hero-desc { text-align: left !important; }
}

/* ==========================================
   HERO PLAY BUTTON — clean SVG icon sizing
   ========================================== */

.btn-play {
  background: #ffffff !important;
  color: #000000 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: .5rem !important;
  font-weight: 700 !important;
  border: none !important;
  cursor: pointer !important;
  padding: .75rem 1.8rem !important;
  font-size: 1rem !important;
  border-radius: 4px !important;
  transition: transform .15s ease, background .15s ease !important;
  font-family: inherit !important;
}
.btn-play:hover  { background: #e6e6e6 !important; }
.btn-play:active { transform: scale(0.97) !important; }

.btn-play svg {
  width: 20px !important;
  height: 20px !important;
  fill: #000 !important;
  stroke: none !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
}

.btn-play span {
  display: inline-block !important;
  line-height: 1 !important;
}

/* ==========================================

/* ==========================================
   MOBILE ONLY — movies.html = 3-column grid
   Vertical scroll, 3 cards per row
   Desktop untouched
   ========================================== */

@media (max-width: 768px) {

  body .wrap .grid,
  .grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: .5rem !important;
    padding: 0 .6rem .8rem !important;
    margin: 0 !important;
    overflow: visible !important;
  }

  .grid .card {
    width: 100% !important;
    border-radius: 4px !important;
  }
  .grid .card:hover {
    transform: none !important;
    box-shadow: none !important;
  }
  .grid .card img {
    aspect-ratio: 2 / 3 !important;
    object-fit: cover !important;
    width: 100% !important;
    display: block !important;
  }
  .grid .card .info,
  .grid .card-info {
    padding: .3rem .35rem .5rem !important;
  }
  .grid .card .title,
  .grid .card-title {
    font-size: .7rem !important;
    line-height: 1.15 !important;
    margin-bottom: .1rem !important;
  }
  .grid .card .meta,
  .grid .card-meta {
    font-size: .6rem !important;
    gap: .2rem !important;
  }

  body .wrap {
    padding: 90px .6rem 5rem !important;
  }
  body .wrap h1 {
    font-size: 1.4rem !important;
    padding: 0 .3rem !important;
  }
  body .wrap .sub {
    font-size: .85rem !important;
    margin-bottom: 1rem !important;
    padding: 0 .3rem !important;
  }
}
