@import url("spotgo-v5.css");

:root {
  --bg: #070918;
  --bg-soft: #0b0f21;
  --panel: rgba(14, 19, 39, .88);
  --panel-2: #151c35;
  --line: rgba(184, 200, 255, .11);
  --line-strong: rgba(184, 200, 255, .2);
  --text: #f7f8ff;
  --muted: #9ba7c3;
  --blue: #5d73ff;
  --blue-2: #7ea2ff;
  --violet: #7b4dff;
  --cyan: #63d9ff;
  --shadow: 0 26px 70px rgba(0, 0, 0, .34);
}

html { background: var(--bg); }
body {
  background:
    radial-gradient(circle at 50% -10%, rgba(69, 93, 207, .33), transparent 36%),
    radial-gradient(circle at 5% 50%, rgba(78, 44, 180, .16), transparent 31%),
    linear-gradient(180deg, #080b1c 0%, #060816 60%, #070a18 100%);
}

/* Access control: authenticated-only navigation is never rendered to guests. */
.auth-only { display: none !important; }
.guest-only { display: none !important; }
.is-authenticated .auth-only.rail-item { display: flex !important; }
.is-authenticated .auth-only.rail-rule { display: block !important; }
.is-authenticated .auth-only.topnav,
.is-authenticated .topnav .auth-only,
.is-authenticated .top-actions .auth-only,
.is-authenticated .mobile-bottom-nav .auth-only { display: inline-flex !important; }
.is-authenticated .right-rail .auth-only { display: block !important; }
.is-guest .guest-only { display: block !important; }
.is-guest .mobile-bottom-nav .guest-only { display: inline-flex !important; }

.topbar {
  height: 82px;
  padding: 0 clamp(20px, 3.6vw, 56px);
  gap: clamp(16px, 2.2vw, 30px);
  background: rgba(6, 9, 23, .78);
  border-bottom-color: rgba(191, 205, 255, .1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .12);
}
.brand { font-size: 29px; letter-spacing: -1.9px; }
.brand span { background: linear-gradient(135deg, #f0edff, #95adff 48%, #7f60ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.topnav { gap: clamp(18px, 2.1vw, 30px); margin-left: 8px; }
.nav-link { font-size: 14px; padding: 30px 0 26px; color: #b4bdd3; }
.nav-link:hover, .nav-link.is-active { border-bottom-color: #8d7aff; color: #fff; }
.header-search {
  margin-left: auto;
  width: min(360px, 24vw);
  min-width: 210px;
  height: 46px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid rgba(184, 200, 255, .18);
  border-radius: 14px;
  background: rgba(8, 12, 29, .64);
  color: #c0cbeb;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}
.header-search span { font-size: 22px; line-height: 1; }
.header-search input { min-width: 0; width: 100%; border: 0; outline: none; background: transparent; color: #f8f9ff; font-size: 13px; }
.header-search input::placeholder { color: #77839f; }
.header-search input:disabled { cursor: default; opacity: 1; }
.icon-btn, .user-trigger { border-radius: 13px; }
.user-trigger { border: 1px solid transparent; }
.primary-btn { border-radius: 13px; background: linear-gradient(135deg, #7654ff, #4f91ff); box-shadow: 0 12px 32px rgba(86, 100, 255, .3); }
.primary-btn:hover { transform: translateY(-1px); filter: brightness(1.07); }
.secondary-btn { border-color: rgba(184, 200, 255, .21); background: rgba(255, 255, 255, .035); }

.app-shell {
  width: min(1640px, 100%);
  padding: 34px clamp(20px, 4.1vw, 70px) 78px;
  grid-template-columns: 240px minmax(500px, 710px) minmax(245px, 305px);
  justify-content: center;
  gap: clamp(24px, 3vw, 46px);
}
.left-rail, .right-rail { top: 112px; }
.left-rail { gap: 6px; }
.rail-item { min-height: 46px; border-radius: 14px; padding: 12px 14px; color: #c4cce1; }
.rail-item span { color: #d4ddff; }
.rail-item:hover, .rail-item.is-active { background: linear-gradient(100deg, rgba(87, 87, 219, .35), rgba(71, 97, 201, .15)); }
.rail-item.is-active { box-shadow: inset 2px 0 0 #9788ff, 0 8px 30px rgba(54, 70, 175, .15); }
.rail-rule { margin: 14px 5px; background: rgba(184, 200, 255, .12); }
.guest-cta {
  margin-top: 20px;
  padding: 22px 18px;
  border: 1px solid rgba(174, 190, 255, .14);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(14, 20, 48, .9), rgba(12, 16, 33, .7));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}
.guest-cta-icon { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(116, 151, 255, .45); border-radius: 50%; color: #b9caff; font-size: 25px; background: radial-gradient(circle, rgba(75, 127, 255, .25), transparent 65%); box-shadow: 0 0 25px rgba(71, 109, 255, .2); }
.guest-cta strong { display: block; margin-top: 18px; font-size: 15px; letter-spacing: -.25px; }
.guest-cta p { color: var(--muted); font-size: 12px; line-height: 1.55; margin: 10px 0 18px; }

.feed-heading { padding: 4px 0 21px; }
.eyebrow { color: #95a6d6; }
.feed-heading h1 { font-size: clamp(31px, 2.7vw, 40px); letter-spacing: -1.55px; }
.feed-heading > div > p:not(.eyebrow) { max-width: 480px; color: #aeb8d0; }
.access-chip { background: rgba(12, 18, 42, .72); border-color: rgba(184, 200, 255, .17); }
.pulse { box-shadow: 0 0 0 4px rgba(91,214,155,.13), 0 0 14px rgba(91,214,155,.55); }
.reels { gap: 26px; }
.reel {
  min-height: clamp(650px, 76vh, 810px);
  border-radius: 28px;
  border-color: rgba(190, 205, 255, .18);
  background: #04050b;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .35), 0 0 0 1px rgba(122, 108, 255, .06);
}
.reel::after { content: ""; position: absolute; z-index: -1; inset: auto 8% -34px; height: 74px; background: rgba(90, 76, 255, .27); filter: blur(35px); opacity: .7; }
.reel-gradient { background: linear-gradient(180deg, rgba(4,5,13,.35) 0%, rgba(4,5,13,0) 29%, rgba(3,4,10,.05) 48%, rgba(3,4,10,.93) 100%); }
.reel-top { left: 20px; right: 20px; top: 18px; }
.rating-pill, .video-count { background: rgba(7, 10, 25, .68); border-color: rgba(237, 241, 255, .18); box-shadow: 0 8px 20px rgba(0,0,0,.16); }
.reel-body { left: 24px; right: 96px; bottom: 24px; }
.creator-line { gap: 11px; }
.avatar { background: linear-gradient(145deg, #8d70ff, #4d98ff); border: 2px solid rgba(255,255,255,.1); }
.creator-button { font-size: 15px; }
.follow-mini { border-color: rgba(161, 185, 255, .45); background: rgba(9, 12, 25, .46); }
.reel h2 { font-size: 22px; margin-bottom: 6px; }
.reel-caption { color: #e4e9fa; max-width: 535px; }
.reel-actions { right: 20px; bottom: 24px; gap: 13px; }
.action-stack { min-width: 54px; }
.action-orb { width: 48px; height: 48px; background: rgba(10, 13, 30, .66); border-color: rgba(226, 234, 255, .2); box-shadow: 0 8px 20px rgba(0,0,0,.17); }
.action-stack:hover .action-orb { background: linear-gradient(145deg, rgba(110, 92, 255, .75), rgba(60, 154, 255, .66)); }
.play-prompt span { width: 66px; height: 66px; background: rgba(11, 14, 32, .56); border-color: rgba(255,255,255,.34); box-shadow: 0 12px 40px rgba(0,0,0,.28); }

.glass-card, .quiet-card { border-radius: 21px; border-color: rgba(184, 200, 255, .13); background: linear-gradient(155deg, rgba(17, 24, 50, .9), rgba(9, 13, 29, .79)); box-shadow: inset 0 1px 0 rgba(255,255,255,.025); }
.creators-card { padding: 18px; }
.creator-row { padding: 9px 3px; }
.creator-row:hover { background: rgba(117, 130, 255, .08); }
.view-all-creators { width: 100%; min-height: 42px; margin-top: 12px; border: 0; border-radius: 12px; background: rgba(255,255,255,.06); color: #e4e9f8; font-size: 12px; font-weight: 850; }
.view-all-creators:hover { background: rgba(113, 132, 255, .18); }
.guest-promo, .auth-quick { overflow: hidden; position: relative; text-align: center; padding: 25px 20px; }
.guest-promo::before, .auth-quick::before { content:""; position:absolute; width:190px; height:190px; top:-104px; left:50%; transform:translateX(-50%); border-radius:50%; background: radial-gradient(circle, rgba(112,84,255,.38), rgba(46,123,255,.06) 52%, transparent 72%); }
.guest-promo > *, .auth-quick > * { position:relative; }
.promo-star { width:52px; height:52px; display:grid; place-items:center; margin:0 auto 15px; border-radius:50%; color:#d5ceff; font-size:27px; border:1px solid rgba(137,113,255,.53); background:rgba(72,63,198,.18); box-shadow:0 0 28px rgba(97,82,255,.35); }
.guest-promo h2, .auth-quick h2 { font-size:22px; letter-spacing:-.7px; margin:0 0 10px; }
.guest-promo p, .auth-quick p { color:var(--muted); line-height:1.6; font-size:13px; margin:0 0 19px; }
.quick-secondary { width:100%; margin-top:10px; }
.quiet-card { background: rgba(10, 15, 34, .58); }

.mobile-bottom-nav { display: none; }

/* Existing modals, forms, cards and toasts inherit from v5. */
@media (max-width: 1390px) {
  .app-shell { grid-template-columns: 216px minmax(490px, 710px) minmax(235px, 280px); gap: 25px; padding-inline: clamp(18px, 3vw, 42px); }
  .header-search { width: min(300px, 23vw); }
}
@media (max-width: 1190px) {
  .app-shell { grid-template-columns: 210px minmax(0, 710px); max-width: 1040px; }
  .right-rail { display: none; }
  .header-search { width: min(290px, 26vw); }
}
@media (max-width: 920px) {
  .topbar { height: 72px; padding-inline: 18px; gap: 16px; }
  .brand { font-size: 26px; }
  .topnav { gap: 17px; margin-left: 0; }
  .nav-link { padding: 25px 0 21px; font-size: 13px; }
  .header-search { display: none; }
  .app-shell { grid-template-columns: 178px minmax(0, 1fr); gap: 20px; padding: 20px 18px 56px; }
  .rail-item { padding: 10px 11px; font-size: 12px; }
  .guest-cta { padding: 17px 13px; }
  .reel { min-height: min(76vh, 760px); }
}
@media (max-width: 760px) {
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .topbar { height: 64px; padding: 0 14px; position: sticky; gap: 11px; }
  .brand { font-size: 25px; }
  .topnav { display: none; }
  .top-actions { margin-left: auto; gap: 5px; }
  .user-trigger { padding: 0 8px; font-size: 13px; }
  .primary-btn.compact { padding: 9px 11px; font-size: 12px; }
  .app-shell { display: block; padding: 10px 0 20px; }
  .left-rail { display: none; }
  .feed-stage { width: 100%; }
  .feed-heading { padding: 12px 16px 14px; align-items: flex-start; }
  .feed-heading h1 { font-size: 27px; }
  .feed-heading > div > p:not(.eyebrow) { font-size: 12px; line-height: 1.45; }
  .access-chip { margin-top: 7px; font-size: 10px; padding: 7px 9px; }
  .reels { gap: 14px; scroll-snap-type: y proximity; }
  .reel { min-height: calc(100dvh - 167px); height: calc(100dvh - 167px); border-radius: 0; border-inline: 0; scroll-snap-align: start; box-shadow: none; }
  .reel::after { display: none; }
  .reel-top { left: 14px; right: 14px; top: 14px; }
  .reel-body { left: 15px; right: 72px; bottom: 18px; }
  .reel h2 { font-size: 18px; }
  .reel-caption { font-size: 12px; -webkit-line-clamp: 2; }
  .creator-line { gap: 8px; margin-bottom: 8px; }
  .avatar { width: 34px; height: 34px; }
  .creator-button { font-size: 13px; }
  .follow-mini { padding: 5px 7px; font-size: 10px; }
  .reel-actions { right: 7px; bottom: 18px; gap: 8px; }
  .action-stack { min-width: 46px; font-size: 10px; }
  .action-orb { width: 42px; height: 42px; font-size: 17px; }
  .play-prompt span { width: 58px; height: 58px; }
  .load-more { margin: 14px auto; }
  .mobile-bottom-nav { position: fixed; display: flex; z-index: 40; left: 0; right: 0; bottom: 0; min-height: calc(65px + env(safe-area-inset-bottom)); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); align-items: flex-start; justify-content: space-around; background: rgba(7, 10, 25, .93); border-top: 1px solid rgba(184,200,255,.11); backdrop-filter: blur(20px); }
  .bottom-tab { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 5px 4px; border: 0; background: transparent; color: #9ba7c4; font-size: 10px; font-weight: 800; }
  .bottom-tab span { height: 24px; display: grid; place-items: center; font-size: 20px; color: #d6ddf4; }
  .bottom-tab b { font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 64px; }
  .bottom-tab.is-active { color: #fff; }
  .bottom-tab.is-active span { color: #b5a8ff; }
  .upload-tab-icon { width: 38px; height: 31px!important; margin-top: -10px; border-radius: 11px; background: linear-gradient(135deg,#7a56ff,#5296ff); color:white!important; box-shadow: 0 8px 20px rgba(86,100,255,.3); }
  .modal-shell { padding: 9px; }
  .modal-card { border-radius: 19px; padding: 20px; max-height: calc(100dvh - 18px); }
  .toast-stack { bottom: calc(78px + env(safe-area-inset-bottom)); left: 12px; right: 12px; }
}
@media (max-width: 390px) {
  .topbar { padding-inline: 11px; }
  .brand { font-size: 23px; }
  .top-actions .user-trigger { display: none; }
  .feed-heading { gap: 9px; }
  .feed-heading h1 { font-size: 25px; }
  .access-chip { font-size: 9px; }
  .reel { min-height: calc(100dvh - 154px); height: calc(100dvh - 154px); }
}


/* v7 public platform announcements */
.announcement-host{width:min(1010px,calc(100% - 40px));margin:18px auto -6px;display:grid;gap:10px}.announcement-banner{display:flex;gap:12px;align-items:flex-start;padding:13px 15px;border:1px solid rgba(126,145,255,.32);border-radius:15px;background:linear-gradient(100deg,rgba(66,67,183,.24),rgba(15,22,51,.88));box-shadow:0 14px 38px rgba(0,0,0,.16)}.announcement-banner b{display:block;font-size:13px}.announcement-banner p{margin:3px 0 0;color:#c2cce3;font-size:12px;line-height:1.45}.announcement-spark{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:10px;background:linear-gradient(135deg,#7754ff,#4d98ff);box-shadow:0 8px 18px rgba(85,92,255,.28)}@media(max-width:760px){.announcement-host{width:calc(100% - 28px);margin-top:12px}.announcement-banner{padding:11px 12px}}


/* Spotgo v8 sponsored placement: distinct from organic creator content */
.sponsored-reel{border-color:rgba(128,92,255,.72);box-shadow:0 20px 70px rgba(84,66,215,.22);overflow:hidden}
.sponsored-media,.sponsored-media img,.sponsored-media video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:linear-gradient(135deg,#172955,#3a2065)}
.sponsored-art{position:absolute;inset:0;display:grid;place-items:center;background:radial-gradient(circle at 30% 20%,rgba(67,212,255,.32),transparent 26%),radial-gradient(circle at 80% 70%,rgba(148,80,255,.46),transparent 34%),linear-gradient(130deg,#0c1734,#34205f 52%,#0a2338)}
.sponsored-art span{font-size:120px;opacity:.6;text-shadow:0 0 60px rgba(255,255,255,.4)}
.sponsored-pill{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:7px 10px;background:rgba(110,77,255,.9);color:#fff;font-size:11px;font-weight:900;letter-spacing:.05em;text-transform:uppercase}
.why-ad{border:1px solid rgba(255,255,255,.2);border-radius:999px;background:rgba(8,12,28,.58);color:#fff;padding:7px 10px;font:inherit;font-size:11px;font-weight:800;cursor:pointer}
.sponsored-cta{position:absolute;right:22px;bottom:24px;z-index:3}.sponsored-cta .primary-btn{min-width:136px}
@media(max-width:767px){.sponsored-cta{right:16px;bottom:20px}.sponsored-cta .primary-btn{padding:10px 12px;font-size:12px}}

/* VIVUNE v14 Discover search */
.discover-section{margin:18px 0}.discover-section h3{margin:0 0 9px;font-size:13px;letter-spacing:.04em;text-transform:uppercase;color:#a9b9dc}.discover-list{display:grid;gap:8px}.discover-result{width:100%;display:flex;align-items:center;gap:10px;text-align:left;padding:10px;border:1px solid rgba(114,142,205,.2);border-radius:12px;background:rgba(255,255,255,.025);color:#eef4ff;cursor:pointer}.discover-result:hover{background:rgba(104,125,255,.12)}.discover-result small{display:block;color:#99a8c3;margin-top:3px}.search-video-poster{width:62px;height:48px;border-radius:9px;overflow:hidden;background:#1b2850;display:grid;place-items:center;color:#b9c8ff;font-weight:800;flex:none}.search-video-poster img{width:100%;height:100%;object-fit:cover}.discover-tags{display:flex;flex-wrap:wrap;gap:8px}.discover-tag{border:1px solid rgba(130,105,255,.38);background:rgba(106,80,230,.15);color:#e6ddff;border-radius:999px;padding:8px 10px;cursor:pointer}.discover-tag small{display:block;font-size:10px;color:#baaee8;margin-top:2px}.search-player{width:100%;max-height:68vh;background:#070b12;border-radius:14px;display:block}
