:root{--bg:#0f1216;--panel:#131820;--text:#e8e8e8;--muted:#a0a7b4;--accent:#FF8A00}
*{box-sizing:border-box}
img,video,canvas{max-width:100%;height:auto}
html,body{margin:0;padding:0;background:var(--bg);color:var(--text);font-family:'Inter',system-ui,-apple-system,Segoe UI,Roboto,'Helvetica Neue',Arial,sans-serif;overflow-x:hidden}
body.no-scroll{overflow:hidden}
a{color:var(--accent);text-decoration:none}
.layout{display:grid;grid-template-columns:260px 1fr;min-height:100vh}
.sidebar{background:#0c0f14;border-right:1px solid #1f2630;padding:24px;position:sticky;top:0;height:100vh;overflow-y:auto}
.sidebar .logo{display:flex;align-items:center;gap:12px;margin-bottom:20px}
.sidebar .menu{display:flex;flex-direction:column;gap:12px}
.menu-title{color:var(--muted);font-size:12px;margin-top:8px;margin-bottom:6px;text-transform:uppercase;letter-spacing:.08em}
.menu a{display:flex;align-items:center;gap:10px;padding:10px 8px;border-radius:8px;color:#cfd7e6;font-weight:600}
.menu a:hover{background:#1a1f27;color:#fff}
.icon{width:18px;height:18px;background:linear-gradient(135deg,var(--accent),#b8ff48);border-radius:4px;display:inline-block;box-shadow:0 0 8px rgba(154,236,47,.6)}
.brand-go{color:#ffffff}
.icon-text{color:var(--accent);font-size:18px;line-height:1}
.topbar{display:flex;align-items:center;gap:8px;padding:10px 12px;background:#0c0f14;border-bottom:1px solid #1f2630;position:sticky;top:0;z-index:5;flex-wrap:wrap}
.brand-logo{width:28px;height:28px;border-radius:6px}
.hamburger{background:#171c24;color:#e8e8e8;border:1px solid #242b36;border-radius:8px;padding:8px 12px;cursor:pointer}
.search{flex:1 1 460px;max-width:460px;display:flex;align-items:center;background:#171c24;border:1px solid #242b36;border-radius:18px;padding:8px 10px}
.search input{flex:1;background:transparent;border:none;color:#e8e8e8;outline:none}
.pill{color:var(--accent);margin-left:8px;display:flex;gap:8px;flex-wrap:wrap;max-width:100%;overflow:visible;white-space:normal}
.pill a{background:#171c24;border:1px solid #242b36;color:#e8e8e8;border-radius:20px;padding:6px 10px;font-weight:600}
.content{padding:16px;max-width:1200px;margin:0 auto;width:100%}
.mobile-menu{display:none;position:fixed;right:16px;top:60px;background:#131820;border:1px solid #242b36;border-radius:10px;padding:12px;z-index:10;max-height:calc(100vh - 80px);overflow-y:auto}
.mobile-menu a{display:block;padding:8px 10px;color:#cfd7e6}
.mobile-menu a:hover{background:#1a1f27;color:#fff;border-radius:8px}
.banner{position:relative;background:#1a2029;border:1px solid #242b36;border-radius:10px;display:flex;align-items:center;justify-content:center;margin-bottom:24px;max-width:100%;overflow:hidden}
.banner-img{width:100%;height:180px;object-fit:cover;display:block;border-radius:10px}
.banner-text{position:absolute;left:0;right:0;top:0;bottom:0;display:flex;align-items:center;justify-content:center;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.6);padding:8px}
.section-title{font-size:28px;font-weight:800;margin:18px 0}
.section-title{word-wrap:normal;overflow-wrap:normal;word-break:normal;white-space:normal;hyphens:auto;line-height:1.3}
.link-all{display:inline-block;margin-left:12px;color:var(--accent)}
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:14px}
.slider{position:relative}
.slider-track{display:flex;gap:10px;overflow-x:auto;scroll-behavior:smooth;padding:8px 14px;scroll-snap-type:x mandatory;scroll-padding-left:14px;scroll-padding-right:14px}
.slider-track{-webkit-overflow-scrolling:touch}
.slider-track::-webkit-scrollbar{height:8px}
.slider .arrow{position:absolute;top:42%;transform:translateY(-50%);background:#181d26;border:1px solid #242b36;color:#e8e8e8;width:26px;height:26px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer}
.slider .arrow.left{left:6px}
.slider .arrow.right{right:6px}
.card{background:#141922;border:1px solid #242b36;border-radius:10px;overflow:hidden;scroll-snap-align:start;flex:0 0 auto;position:relative}
.card img{width:100%;height:100px;object-fit:contain;background:#0f141a}
.card .meta{padding:10px;font-size:14px}
.card .meta div{overflow:hidden;text-overflow:ellipsis}
.tag{position:absolute;top:6px;left:6px;background:var(--accent);color:#101418;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:800}
.tag-recommended{background:var(--accent)}
.badge{display:inline-block;background:var(--accent);color:#101418;border-radius:999px;padding:4px 8px;font-size:12px;font-weight:800;margin-left:8px;vertical-align:middle}
.badge-recommended{background:var(--accent)}
.chips{display:flex;flex-wrap:wrap;gap:10px}
.chip{background:var(--accent);color:#101418;padding:8px 14px;border-radius:999px;font-weight:600}
.pricing{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:14px}
.plan{background:#141922;border:1px solid #242b36;border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:10px}
.plan.highlight{border-color:var(--accent);box-shadow:0 0 0 3px rgba(154,236,47,.15)}
.plan-head{display:flex;justify-content:space-between;align-items:center}
.plan-name{font-size:20px;font-weight:800;color:#cfd7e6}
.plan-price{font-size:24px;font-weight:800;color:var(--accent)}
.plan-price span{color:#9aa6b2;font-size:14px;margin-left:4px}
.plan-features{list-style:none;padding:0;margin:0;color:#cfd7e6}
.plan-features li{padding:6px 0;border-bottom:1px dashed #2a3340}
.plan-features li:last-child{border-bottom:none}
.footer{margin-top:40px;padding:24px;border-top:1px solid #242b36;color:#9aa6b2;background:#0c1016}
.footer-columns{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px}
.footer-title{color:#cfd7e6;font-weight:800;margin-bottom:8px}
.footer-links a{display:block;color:#cfd7e6;padding:4px 0}
.footer-links a:hover{color:#fff}
.footer-text{max-width:420px;overflow-wrap:anywhere;word-break:break-word}
.footer-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:14px;border-top:1px solid #242b36;padding-top:12px;gap:10px;flex-wrap:wrap}
.footer-legal{display:flex;gap:8px;flex-wrap:wrap}
.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}
.grid-4{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}
@media(min-width:1200px){.grid-4{grid-template-columns:repeat(4,1fr)}}
.list{background:#131820;border:1px solid #242b36;border-radius:12px;padding:14px}
.list{overflow-wrap:normal;word-break:normal;white-space:normal;overflow:visible;hyphens:auto}
.list p{margin:8px 0;line-height:1.6}
.hero{max-width:820px;margin-left:0;margin-right:auto;display:block;text-align:left}
.hero .title,.hero p{word-break:normal;overflow-wrap:break-word;hyphens:none}
.hero .title{color:#ffffff!important}
.hero p{color:#e8e8e8!important}
.list .title{color:var(--accent);font-size:22px;font-weight:800;margin-bottom:8px;word-wrap:normal;overflow-wrap:normal;word-break:normal;white-space:normal;hyphens:auto;line-height:1.35}
.list ul{list-style:none;padding:0;margin:0}
.list li{padding:6px 0;border-bottom:1px dashed #2a3340}
.list li:last-child{border-bottom:none}
.btn{background:var(--accent);color:#0f1216;border:none;padding:10px 16px;border-radius:8px;font-weight:700;cursor:pointer}
.btn:hover{filter:brightness(1.05)}
.btn:active{transform:translateY(1px)}
.btn-secondary{background:#1a2029;color:#e8e8e8;border:1px solid #2a3340}
.btn-danger{background:#ff4d4f;color:#fff}
.hint{color:#9aa6b2;font-size:12px;margin-top:6px}
.select-multi{width:100%;min-height:140px;border:1px solid #2a3340;border-radius:8px;background:#0f141a;color:#e8e8e8;padding:8px}
.form input:focus,.form select:focus,.form textarea:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px rgba(154,236,47,.2)}
.list{background:#131820;border:1px solid #242b36;border-radius:12px;padding:14px;box-shadow:0 6px 16px rgba(0,0,0,.25)}
.form{max-width:780px;margin:0 auto;background:#131820;border:1px solid #242b36;border-radius:12px;padding:18px}
.form .field{margin-bottom:14px}
.form label{display:block;margin-bottom:6px;color:#cfd7e6}
.form input,.form select,.form textarea{width:100%;padding:10px 12px;border-radius:8px;border:1px solid #2a3340;background:#0f141a;color:#e8e8e8}
.form .radios{display:flex;gap:14px}
.player{padding:12px;background:#131820;border:1px solid #242b36;border-radius:12px;margin-top:10px}

/* Sticky global player */
.global-player{position:fixed;left:0;right:0;bottom:0;background:#0c0f14;border-top:1px solid #1f2630;display:flex;align-items:center;gap:12px;padding:8px 12px;z-index:50}
.global-player .title{color:#cfd7e6;font-weight:700}
.global-player .controls button{background:#171c24;border:1px solid #242b36;color:#e8e8e8;border-radius:8px;padding:6px 10px}
.global-player img{width:28px;height:28px;border-radius:6px}

/* Mobile */
@media(max-width: 768px){
  .content{padding-bottom:80px}
  .layout{grid-template-columns:1fr}
  .sidebar{position:fixed;left:0;top:0;height:100vh;transform:translateX(-100%);transition:transform .2s ease;z-index:20;width:0;padding:0;overflow:hidden}
  .sidebar.open{transform:translateX(0);width:85%;max-width:360px;padding:24px;overflow-y:auto}
  .topbar{gap:10px;align-items:flex-start;flex-wrap:wrap;padding:8px 10px}
  .brand-logo{width:24px;height:24px}
  .search{order:3;width:100%;flex-basis:100%;padding:6px 8px}
  .pill{order:2;margin-left:0;flex-wrap:wrap;white-space:normal;overflow:visible;width:100%;flex-basis:100%}
  .pill{gap:6px}
  .pill a{padding:5px 8px}
  .brand{order:1}
  .cards{grid-template-columns:repeat(2,1fr)}
  .grid-2{grid-template-columns:1fr}
  .grid-4{grid-template-columns:1fr}
  .slider .arrow{display:none}
  .slider-track{gap:8px;padding:6px 12px;scroll-padding-left:12px;scroll-padding-right:12px}
  .card{min-width:140px}
  .card img{height:96px}
  .card .meta{font-size:13px}
  .banner{height:auto;min-height:120px}
  .banner-img{height:140px}
  .link-all{display:block;margin:6px 0 0 0;font-size:14px}
  .section-title{font-size:22px}
  .list .title{font-size:18px}
  .list{padding:12px}
  .list p{font-size:16px;line-height:1.7}
  .pricing{grid-template-columns:1fr}
  .plan{padding:12px;gap:8px}
  .plan-head{flex-wrap:wrap}
  .plan-name{font-size:18px}
  .plan-price{font-size:20px}
  .pricing .plan form{flex-wrap:wrap}
  .pricing .plan form select{width:100%}
  .pricing .plan .btn{width:100%}
  .chips{display:grid;grid-template-columns:repeat(2,auto);gap:10px;justify-content:space-between}
  .chips .chip{display:flex;justify-content:center;align-items:center;width:auto;justify-self:start;padding:6px 12px}
  .hero{max-width:94vw;margin-left:0;margin-right:auto}
  .hero{display:block!important;visibility:visible!important}
  .hero .title{font-size:19px;line-height:1.35;color:#ffffff!important}
  .hero p{font-size:15px;line-height:1.9;margin:6px 0;color:#e8e8e8!important;overflow-wrap:break-word}
  .footer{padding-bottom:100px}
  .footer-columns{gap:14px;grid-template-columns:1fr}
  .footer a{word-break:normal;overflow-wrap:anywhere}
}

@media(min-width: 768px){
  .footer-columns{grid-template-columns:repeat(3,1fr)}
}
.mobile-menu.show{display:block}
.chips-box{display:flex;flex-wrap:wrap;gap:8px;padding:8px;border:1px solid #2a3340;border-radius:8px;background:#0f141a}
.chips-box .chip{background:var(--accent);color:#101418;border-radius:999px;padding:6px 10px;font-weight:700;display:flex;align-items:center;gap:6px}
.chips-box .chip button{background:transparent;border:none;color:#101418;cursor:pointer}
.chips-input{flex:1;min-width:160px;border:none;background:transparent;color:#e8e8e8}
.chips-suggest{position:absolute;background:#131820;border:1px solid #242b36;border-radius:8px;margin-top:4px;max-height:180px;overflow:auto;z-index:30}
.chips-suggest div{padding:8px 10px;cursor:pointer}
.chips-suggest div:hover{background:#1a1f27}
.overlay{position:fixed;left:0;top:0;right:0;bottom:0;background:rgba(0,0,0,.35);backdrop-filter:blur(2px);display:none;z-index:15}
.overlay.show{display:block}
.dropdown.open .dropdown-menu{display:block}
@media(max-width: 768px){
  #accountDropdown{width:100%}
  #accountMenu{right:auto;left:0}
}
.mobile-submenu{display:none;background:#131820;border:1px solid #242b36;border-radius:10px;padding:8px;margin-top:6px}
.mobile-submenu a{display:block;padding:8px 10px;color:#cfd7e6}
.mobile-submenu a:hover{background:#1a1f27;color:#fff;border-radius:8px}
@media(min-width: 768px){
  .footer-title{font-size:16px;margin-bottom:6px}
  .footer-links a{padding:3px 0}
}
