  /* ════════════════════════════════════════════════
     RESET & VARIÁVEIS
  ════════════════════════════════════════════════ */
  *, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

  :root {
    --bg:          #0b0b10;
    --bg-card:     #141420;
    --bg-header:   #0e0e18;
    --bg-hover:    #1c1c2e;
    --bg-input:    #1a1a2c;
    --border:      #26263a;
    --primary:     #e41054;
    --primary-dk:  #b80040;
    --primary-glow:#e4105444;
    --text:        #ececf4;
    --text2:       #8e8ea6;
    --text3:       #55556a;
    --green:       #00c853;
    --blue:        #2979ff;
    --purple:      #aa00ff;
    --radius:      6px;
    --radius-lg:   10px;
    --ease:        .3s cubic-bezier(.4,0,.2,1);
    --header-h:    64px;
    --bottom-nav-h: 62px;
  }

  html { scroll-behavior: smooth; }
  body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
  }
  a   { text-decoration: none; color: inherit; }
  ul  { list-style: none; }
  img { display: block; max-width: 100%; }
  button { font-family: inherit; }

  ::-webkit-scrollbar { width: 6px; height:2px }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
  ::-webkit-scrollbar-thumb:hover { background: var(--text3); }

  /* ════════════════════════════════════════════════
     HEADER
  ════════════════════════════════════════════════ */
  .header {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--header-h);
    background: var(--bg-header);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: transform .3s ease, height .3s ease;
    will-change: transform;
  }

  /* Estado de busca ativa no mobile */
  .header.search-active {
    height: var(--header-h);
    z-index: 1100;
  }
  .header.search-active .header-inner {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
  }
  .header.search-active .search-mobile-bar {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .header.hide { transform: translateY(-100%); }

  .header-inner {
    max-width: 1480px; margin: 0 auto;
    height: 100%; padding: 0 18px;
    display: flex; align-items: center; gap: 16px;
    transition: transform .3s ease, opacity .3s ease;
  }
  .logo {
    display: flex; align-items: center; gap:2px;
    font-family: 'Poppins', sans-serif;
    font-weight: 800; font-size: 1.45rem;
    flex-shrink: 0; cursor: pointer;
  }
  .logo-icon {
    width: 30px; height: 30px;
    background: linear-gradient(135deg, var(--primary), #ff4081);
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; color: #fff;
    box-shadow: 0 4px 14px var(--primary-glow);
  }
  .logo span { color: var(--primary); }

  .nav-desktop {
    display: flex; align-items: center; gap: 2px; margin-left: 0;
  }
  .nav-desktop a {
    padding: 7px 14px; border-radius: var(--radius);
    font-size: .88rem; font-weight: 500;
    color: var(--text2); transition: var(--ease); white-space: nowrap;
  }
  .nav-desktop a:hover, .nav-desktop a.active {
    background: var(--bg-hover); color: var(--text);
  }
  .nav-desktop a.active { color: var(--primary); }

  .search-desktop { flex: 1; max-width: 320px; display: flex; align-items: center; margin-left:auto; }
  .search-desktop .search-input-wrap {
    flex: 1; display: flex; align-items: center;
    background: var(--bg-input); border: 1px solid var(--border);
    border-right: none; border-radius: var(--radius) 0 0 var(--radius);
    padding: 0 16px; height: 40px; transition: border-color var(--ease);
  }
  .search-desktop .search-input-wrap:focus-within { border-color: var(--primary); }
  .search-desktop .search-input-wrap input {
    flex: 1; height: 100%; background: transparent; border: none;
    color: var(--text); font-size: .9rem; font-family: inherit; outline: none;
  }
  .search-desktop .search-input-wrap input::placeholder { color: var(--text3); }
  .search-desktop .search-input-wrap .search-clear {
    background: none; border: none; color: var(--text3);
    cursor: pointer; padding: 4px; font-size: .85rem;
    display: none; transition: var(--ease);
  }
  .search-desktop .search-input-wrap .search-clear.visible { display: block; }
  .search-desktop .search-input-wrap .search-clear:hover { color: var(--text); }
  .search-desktop .search-btn {
    height: 40px; width: 58px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-hover); border: 1px solid var(--border);
    border-radius: 0 var(--radius) var(--radius) 0; color: var(--text2);
    cursor: pointer; font-size: 1rem; transition: var(--ease); flex-shrink: 0;
  }
  .search-desktop .search-btn:hover { background: var(--bg-card); color: var(--text); border-color: var(--primary); }

  .header-actions {
    display: flex; align-items: center; gap: 8px; margin-left: auto;
  }
  .btn-upload {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary-dk), var(--primary));
    color: #fff; border: none; border-radius: var(--radius);
    font-size: .84rem; font-weight: 600; cursor: pointer; transition: var(--ease);
  }
  .btn-upload:hover { transform: translateY(-1px); box-shadow: 0 4px 14px var(--primary-glow); }
  .icon-btn {
    width: 38px; height: 38px; display: grid; place-items: center;
    background: none; border: 1px solid var(--border);
    border-radius: var(--radius); color: var(--text2); cursor: pointer;
    font-size: .95rem; transition: var(--ease); position: relative;
  }
  .icon-btn:hover { background: var(--bg-hover); color: var(--text); }
  .icon-btn .badge {
    position: absolute; top: -4px; right: -4px;
    width: 16px; height: 16px; background: var(--primary);
    border-radius: 50%; font-size: .6rem; font-weight: 700;
    display: grid; place-items: center; color: #fff;
  }

  .hamburger {
    display: none; background: none; border: none; margin-right: auto;
    color: var(--text); font-size: 1.2rem; cursor: pointer;
    padding: 8px; border-radius: var(--radius); transition: var(--ease);
  }
  .hamburger:hover { background: var(--bg-hover); }

  .search-mobile-toggle {
    display: none; background: none; border: none;
    color: var(--text); font-size: 1.1rem; cursor: pointer;
    padding: 8px; border-radius: var(--radius); transition: var(--ease);
  }
  .search-mobile-toggle:hover { background: var(--bg-hover); }

  /* ── Mobile Search Bar ── */
  .search-mobile-bar {
    position: absolute; top: 0; left: 0; right: 0;
    height: var(--header-h);
    background: var(--bg-header);
    display: flex; align-items: center;
    padding: 0 14px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform .3s ease, opacity .3s ease;
  }
  .search-mobile-bar .search-input-wrap {
    flex: 1; display: flex; align-items: center;
    background: var(--bg-input); 
    border: 1px solid var(--border);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    padding: 0 14px; height: 40px;
  }
  .search-mobile-bar .search-input-wrap input {
    flex: 1; height: 100%; background: transparent; border: none;
    color: var(--text); font-size: .88rem; font-family: inherit; outline: none;
  }
  .search-mobile-bar .search-input-wrap input::placeholder { color: var(--text3); }
  .search-mobile-bar .search-input-wrap input:focus { color: var(--text); }
  .search-mobile-bar .search-btn {
    height: 40px; width: 52px; display: flex; align-items: center; justify-content: center;
    background: var(--bg-hover); 
    border: 1px solid var(--border);
    border-left: none;
    border-radius: 0 var(--radius) var(--radius) 0; 
    color: var(--text2);
    cursor: pointer; font-size: 1rem; transition: var(--ease); flex-shrink: 0;
  }

  /* ── Search Overlay (escuro, cobre conteúdo) ── */
  .search-overlay {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1050;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
  }
  .search-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }

  /* ════════════════════════════════════════════════
     MOBILE MENU
  ════════════════════════════════════════════════ */
  .mobile-overlay {
    position: fixed; inset: 0; z-index: 1100;
    background: rgba(0,0,0,.55);
    opacity: 0; visibility: hidden; transition: var(--ease);
  }
  .mobile-overlay.active { opacity: 1; visibility: visible; }
  .mobile-overlay .overlay-close {
    position: absolute; top: 0; left: 90%; right: 0; bottom: 0; cursor: pointer;
  }
  .mobile-menu {
    position: fixed; top: 0; left: -92%;
    width: 90%; max-width: 340px; height: 100%;
    background: var(--bg-header); z-index: 1200;
    border-right: 1px solid var(--border); overflow-y: auto;
    transition: left .35s cubic-bezier(.4,0,.2,1);
  }
  .mobile-menu.active { left: 0; }
  .mm-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px; border-bottom: 1px solid var(--border);
  }
  .mm-close {
    width: 34px; height: 34px; display: grid; place-items: center;
    background: var(--bg-hover); border: none; border-radius: var(--radius);
    color: var(--text); cursor: pointer; font-size: 1rem;
  }
  .mm-nav a {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 18px; font-size: .92rem; font-weight: 500;
    color: var(--text2); transition: var(--ease);
  }
  .mm-nav a:hover, .mm-nav a.active { background: var(--bg-hover); color: var(--text); }
  .mm-nav a.active { color: var(--primary); border-left: 3px solid var(--primary); }
  .mm-nav a i { width: 20px; text-align: center; }
  .mm-divider { height: 1px; background: var(--border); margin: 8px 18px; }
  .mm-footer { padding: 18px; border-top: 1px solid var(--border); }
  .mm-footer .btn-login {
    display: grid; place-items: center; gap: 8px; width: 100%; padding: 12px;
    background: linear-gradient(135deg, var(--primary-dk), var(--primary));
    color: #fff; border: none; border-radius: var(--radius);
    font-size: .92rem; font-weight: 600; cursor: pointer; margin-bottom: 10px;
  }
  .mm-footer p { text-align: center; font-size: .78rem; color: var(--text3); }
  .mm-footer p a { color: var(--primary); }

  /* ════════════════════════════════════════════════
     CATEGORY BAR
  ════════════════════════════════════════════════ */
  .cat-bar {
    margin-top: var(--header-h); background: var(--bg-header);
    border-bottom: 1px solid var(--border);
    overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .cat-bar::-webkit-scrollbar { display: none; }
  .cat-bar-inner {
    max-width: 1480px; margin: 0 auto;
    padding: 30px 18px; display: flex; gap: 6px; white-space: nowrap;
  }
  .cat-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 15px; background: var(--bg-hover);
    border: 1px solid transparent; border-radius: var(--radius);
    font-size: .8rem; font-weight: 500; color: var(--text2);
    cursor: pointer; transition: var(--ease); flex-shrink: 0;
  }
  .cat-pill:hover { background: var(--bg-card); color: var(--text); }
  .cat-pill.active { background: var(--primary); color: #fff; border-color: var(--primary); }
  .cat-pill i { font-size: .7rem; }

  /* ════════════════════════════════════════════════
     CATEGORY OVERLAY
  ════════════════════════════════════════════════ */
  .cat-overlay {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(0,0,0,.8);
    display: none; align-items: center; justify-content: center;
    padding: 20px; animation: fadeIn .25s ease;
  }
  .cat-overlay.active { display: flex; }
  @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
  .cat-overlay__close {
    position: fixed; top: 16px; right: 16px;
    width: 32px; height: 32px; display: grid; place-items: center;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); color: var(--text); font-size: 1.2rem;
    cursor: pointer; z-index: 2100; transition: var(--ease);
    box-shadow: 0 4px 18px rgba(0,0,0,.5);
  }
  .cat-overlay__close:hover { background: var(--primary); border-color: var(--primary); transform: rotate(90deg) scale(1.1); }
  .cat-overlay__box {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); width: 100%;
    max-height: 80vh; overflow-y: auto; animation: scaleUp .3s ease;
  }
  @keyframes scaleUp { from { opacity: 0; transform: scale(.92) translateY(16px); } to { opacity: 1; transform: scale(1) translateY(0); } }
  .cat-overlay__header { display: flex; align-items: center; gap: 10px; padding: 20px 24px 14px; border-bottom: 1px solid var(--border); }
  .cat-overlay__header i { font-size: 1.2rem; color: var(--primary); }
  .cat-overlay__header h3 { font-family: 'Poppins', sans-serif; font-size: 1.2rem; font-weight: 700; }
  .cat-overlay__list { padding: 14px; display: grid; gap: 6px; }
  .cat-overlay__item {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px;
    background: var(--bg-hover); border: 1px solid transparent;
    border-radius: var(--radius); font-size: .88rem; font-weight: 500;
    color: var(--text2); cursor: pointer; transition: var(--ease);
  }
  .cat-overlay__item:hover { background: var(--bg-card); color: var(--text); border-color: var(--primary); transform: translateX(4px); }
  .cat-overlay__item i { width: 22px; text-align: center; color: var(--primary); }
  .cat-overlay__item .cat-count { margin-left: auto; font-size: .75rem; color: var(--text3); font-weight: 400; }

  /* ════════════════════════════════════════════════
     BOTTOM NAV
  ════════════════════════════════════════════════ */
  .bottom-nav {
    display: none; position: fixed; left: 0; right: 0; bottom: 0;
    height: var(--bottom-nav-h); background: var(--bg-header);
    border-top: 1px solid var(--border); z-index: 1050;
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  }
  .bottom-nav__inner {
    max-width: 1480px; margin: 0 auto; height: 100%;
    display: flex; align-items: center; justify-content: space-around; padding: 0 8px;
  }
  .bottom-nav__item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px; padding: 6px 12px; border-radius: var(--radius);
    color: var(--text3); font-size: .45rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .4px;
    transition: var(--ease); cursor: pointer; position: relative;
    -webkit-tap-highlight-color: transparent;
  }
  .bottom-nav__item i { font-size: 1.15rem; transition: var(--ease); }
  .bottom-nav__item::before {
    content: ''; position: absolute; top: 0; left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 24px; height: 2px; background: var(--primary);
    border-radius: 0 0 2px 2px; transition: transform .25s ease;
  }
  .bottom-nav__item:hover, .bottom-nav__item.active { color: var(--primary); }
  .bottom-nav__item.active::before { transform: translateX(-50%) scaleX(1); }
  .bottom-nav__item:active { transform: scale(.92); }
  .bottom-nav__item .b-badge {
    position: absolute; top: 2px; right: 6px;
    width: 14px; height: 14px; background: var(--primary);
    border-radius: 50%; font-size: .55rem; font-weight: 700;
    display: grid; place-items: center; color: #fff;
  }

  /* ════════════════════════════════════════════════
     FOOTER
  ════════════════════════════════════════════════ */
  .footer { background: var(--bg-header); border-top: 1px solid var(--border); margin-top: 40px; }
  .footer-main { max-width: 1480px; margin: 0 auto; padding: 48px 18px 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; }
  .footer-col h4 { font-family: 'Poppins', sans-serif; font-size: .95rem; font-weight: 700; margin-bottom: 16px; }
  .footer-col a { display: block; padding: 4px 0; font-size: .83rem; color: var(--text3); transition: var(--ease); }
  .footer-col a:hover { color: var(--primary); padding-left: 5px; }
  .footer-col p { font-size: .83rem; color: var(--text3); line-height: 1.7; }
  .footer-social { display: flex; gap: 8px; margin-top: 14px; }
  .footer-social a { width: 38px; height: 38px; display: grid; place-items: center; background: var(--bg-hover); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text3); font-size: .95rem; transition: var(--ease); }
  .footer-social a:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: translateY(-2px); }
  .footer-bottom { max-width: 1480px; margin: 0 auto; padding: 18px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
  .footer-bottom p { font-size: .78rem; color: var(--text3); }
  .footer-bottom-links { display: flex; gap: 18px; }
  .footer-bottom-links a { font-size: .78rem; color: var(--text3); transition: var(--ease); }
  .footer-bottom-links a:hover { color: var(--primary); }

  

  /* ════════════════════════════════════════════════
     TOAST
  ════════════════════════════════════════════════ */
  .toast { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 20px; font-size: .85rem; font-weight: 500; color: var(--text); box-shadow: 0 8px 24px rgba(0,0,0,.4); z-index: 5000; opacity: 0; pointer-events: none; transition: all .3s ease; display: flex; align-items: center; gap: 8px; }
  .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
  .toast i { color: var(--green); }

  /* ════════════════════════════════════════════════
     AGE GATE
  ════════════════════════════════════════════════ */
  .age-gate { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; padding: 20px; }
  .age-gate.hidden { display: none; }
  .age-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; max-width: 440px; width: 100%; text-align: center; }
  .age-box .a-icon { width: 64px; height: 64px; background: var(--primary); border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; color: #fff; margin: 0 auto 18px; box-shadow: 0 8px 28px var(--primary-glow); }
  .age-box h2 { font-family: 'Poppins', sans-serif; font-size: 1.4rem; margin-bottom: 8px; }
  .age-box p { font-size: .86rem; color: var(--text2); margin-bottom: 24px; line-height: 1.6; }
  .age-btns { display: flex; gap: 10px; }
  .age-btns button { flex: 1; padding: 12px; border-radius: var(--radius); font-size: .9rem; font-weight: 600; cursor: pointer; transition: var(--ease); }
  .btn-enter { background: linear-gradient(135deg, var(--primary-dk), var(--primary)); color: #fff; border: none; }
  .btn-enter:hover { transform: translateY(-2px); box-shadow: 0 6px 18px var(--primary-glow); }
  .btn-leave { background: transparent; color: var(--text2); border: 1px solid var(--border); }
  .btn-leave:hover { background: var(--bg-hover); color: var(--text); }

  /* ════════════════════════════════════════════════
     ANIMATIONS
  ════════════════════════════════════════════════ */
  @keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
  .card { animation: fadeUp .5s ease forwards; opacity: 0; }
  .card:nth-child(1)  { animation-delay: .04s; }
  .card:nth-child(2)  { animation-delay: .08s; }
  .card:nth-child(3)  { animation-delay: .12s; }
  .card:nth-child(4)  { animation-delay: 0.16s; }
  .card:nth-child(5)  { animation-delay: 0.2s; }
  .card:nth-child(6)  { animation-delay: 0.24s; }
  .card:nth-child(7)  { animation-delay: 0.28s; }
  .card:nth-child(8)  { animation-delay: 0.32s; }
  .card:nth-child(9)  { animation-delay: 0.36s; }
  .card:nth-child(10) { animation-delay: 0.4s; }
  .card:nth-child(11) { animation-delay: 0.44s; }
  .card:nth-child(12) { animation-delay: 0.48s; }

  /* ════════════════════════════════════════════════
     RESPONSIVE — MOBILE (≤768px)
  ════════════════════════════════════════════════ */
  @media (max-width: 768px) {

    .logo {
      font-size: 1.2rem; gap: 4px;
    }

    .nav-desktop          { display: none; }
    .search-desktop       { display: none; }
    .hamburger            { display: grid; }
    .search-mobile-toggle { display: grid; }

    .bottom-nav { display: block; }
    .footer { margin-bottom: var(--bottom-nav-h); }

    .header-actions .btn-upload,
    .header-actions .icon-btn { display: none; }

    /* Quando header some, player sobe para o topo */
    .header.hide + .page-wrapper .player-area,
    .header.hide ~ .page-wrapper .player-area {
      top: 0;
    }

    .footer-main { grid-template-columns: 1fr 1fr; padding: 28px 12px; gap: 24px; }
    .footer-bottom { flex-direction: column; text-align: center; padding: 14px 12px; }
    .cat-overlay { padding: 14px; }
    .cat-overlay__box { max-height: 75vh; }
    .cat-overlay__header { padding: 16px 18px 12px; }
    .cat-overlay__list { grid-template-columns: 1fr; padding: 10px; }
    .age-box { padding: 24px 18px; }
  }