/* Tesla TV Cybercab header preview. Content and player layout are unchanged. */
.brand-back-arrow,.brand .rikustar-mark{display:none}
html.cybercab-preview .topbar{
  z-index:100;
  overflow:visible;
  height:64px;
  border-bottom-color:#454536;
  background:linear-gradient(90deg,rgba(216,182,107,.035) 1px,transparent 1px) 0 0/52px 100%,linear-gradient(180deg,rgba(31,33,29,.98),rgba(20,22,19,.95));
  box-shadow:0 10px 32px rgba(0,0,0,.28),0 1px 20px rgba(216,182,107,.08);
  -webkit-backdrop-filter:blur(24px) saturate(120%);
  backdrop-filter:blur(24px) saturate(120%);
}
html.cybercab-preview .nav{width:min(1440px,calc(100% - 40px))}
html.cybercab-preview .brand{
  position:relative;
  display:flex;
  height:44px;
  padding:0 14px;
  gap:12px;
  border:1px solid rgba(216,182,107,.42);
  border-radius:10px;
  background:linear-gradient(145deg,rgba(226,193,123,.13),rgba(216,182,107,.045));
  color:#e2c17b;
  box-shadow:inset 0 1px 0 rgba(255,245,216,.08),0 8px 24px rgba(0,0,0,.18);
}
html.cybercab-preview .brand i{display:none}
html.cybercab-preview .simple-brand-mark{display:none}
html.cybercab-preview .brand-back-arrow{display:block;width:24px;height:24px;padding-right:10px;border-right:1px solid rgba(216,182,107,.38);overflow:visible;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:square;stroke-linejoin:miter}
html.cybercab-preview .brand .rikustar-mark{display:block;width:88px;height:20px;overflow:visible;color:#e2c17b;filter:drop-shadow(0 0 5px rgba(216,182,107,.14))}
html.cybercab-preview .brand-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
html.cybercab-preview .style-switch{position:relative;width:88px!important;min-width:88px!important;max-width:88px!important;height:44px!important;min-height:44px!important;max-height:44px!important;overflow:hidden;border-color:rgba(226,193,123,.58);border-radius:7px;background:linear-gradient(118deg,rgba(226,193,123,.22) 0 18%,rgba(216,182,107,.055) 18.5% 72%,rgba(226,193,123,.13) 72.5%);color:#efd18c;font-family:Rajdhani,"Noto Sans JP",sans-serif;font-size:14px;font-weight:800;letter-spacing:.12em;box-shadow:inset 0 1px 0 rgba(255,245,216,.12),inset 3px 0 rgba(226,193,123,.42),0 0 18px rgba(216,182,107,.08)}
html.cybercab-preview .style-switch:before,html.cybercab-preview .style-switch:after{content:"";position:absolute;width:18px;height:1px;background:#e2c17b;opacity:.7;transform:rotate(-45deg);pointer-events:none}html.cybercab-preview .style-switch:before{top:5px;right:-5px}html.cybercab-preview .style-switch:after{bottom:5px;left:-5px}
html.cybercab-preview .style-switch:hover,html.cybercab-preview .style-switch:focus-visible{border-color:#e8c979;box-shadow:inset 0 1px 0 rgba(255,245,216,.16),inset 3px 0 #e2c17b,0 0 22px rgba(216,182,107,.2)}
.cybercab-tv-mark{display:none}
html.cybercab-preview .legacy-tesla-tv-mark{display:none}
html.cybercab-preview .cybercab-tv-mark{display:block}
html.cybercab-preview .langs{display:none}
html.cybercab-preview .controls{position:relative;z-index:110;overflow:visible}
html.cybercab-preview .language-menu{position:relative;z-index:120;display:block;flex:0 0 44px;width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;min-height:44px!important;max-height:44px!important;overflow:visible}
html.cybercab-preview .language-menu-toggle{box-sizing:border-box;display:flex;flex:0 0 44px;width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;min-height:44px!important;max-height:44px!important;padding:0!important;align-items:center;justify-content:center;border:1px solid rgba(216,182,107,.4);border-radius:10px;background:linear-gradient(145deg,rgba(226,193,123,.13),rgba(216,182,107,.045));color:#e2c17b;font:750 13px/1 Inter,"Noto Sans JP",sans-serif;cursor:pointer}
html.cybercab-preview .language-menu.open .language-menu-toggle{border-color:#e2c17b;box-shadow:inset 0 0 0 1px rgba(226,193,123,.24),0 0 16px rgba(216,182,107,.2)}
html.cybercab-preview .language-menu-panel{position:absolute;z-index:130;top:50px;right:0;width:44px;padding:0;border:0;background:transparent;box-shadow:none;opacity:0;visibility:hidden;transform:translateY(-6px);transition:opacity .18s ease,transform .18s ease,visibility .18s}
html.cybercab-preview .language-menu.open .language-menu-panel{opacity:1;visibility:visible;transform:translateY(0)}
html.cybercab-preview .language-menu-panel button{box-sizing:border-box;display:grid;place-items:center;width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;min-height:44px!important;max-height:44px!important;padding:0!important;border:1px solid rgba(216,182,107,.4);border-radius:10px;background:#292c24;color:#e2c17b;text-align:center;cursor:pointer;box-shadow:0 10px 26px rgba(0,0,0,.28)}
html.cybercab-preview .language-menu-panel button+button{margin-top:6px}
html.cybercab-preview .language-menu-panel button span{display:grid;place-items:center;width:100%;height:100%;color:inherit;font:750 13px/1 Inter,"Noto Sans JP",sans-serif;text-align:center}
html.cybercab-preview .language-menu-panel button small{display:none}
html.cybercab-preview .language-menu-panel button:hover{border-color:#e2c17b;background:#32362d}
html.cybercab-preview .language-menu-panel button.active{display:none}
html.cybercab-preview body #themeButton{width:44px!important;height:44px!important;border-radius:10px!important;border-color:rgba(216,182,107,.4)!important;background:#292c24!important;color:#e2c17b!important}
html.cybercab-preview.light .topbar,html.cybercab-preview[data-theme="light"] .topbar{border-bottom-color:#ded4be;background:rgba(250,248,243,.94)}
html.cybercab-preview[data-theme="light"] .brand{border-color:#ded4be;background:#fffdf8;color:#91651e}
html.cybercab-preview[data-theme="light"] .style-switch{border-color:#ded4be;background:#fffdf8;color:#91651e}
html.cybercab-preview[data-theme="light"] .brand-back-arrow{border-right-color:#cbb178}
html.cybercab-preview[data-theme="light"] .langs{border-color:#ded4be;background:#fffdf8}
html.cybercab-preview[data-theme="light"] .language-menu-toggle{border-color:#ded4be;background:#fffdf8;color:#91651e}
html.cybercab-preview[data-theme="light"] .language-menu-panel{background:transparent;box-shadow:none}
html.cybercab-preview[data-theme="light"] .language-menu-panel button{border-color:#ded4be;background:#fffdf8;color:#91651e;box-shadow:0 10px 26px rgba(73,58,30,.16)}
html.cybercab-preview[data-theme="light"] .language-menu-panel button span{color:inherit}
html.cybercab-preview[data-theme="light"] body #themeButton{border-color:#ded4be!important;background:#f1eadb!important;color:#91651e!important}

/* Cybercab content skin: preserve the existing portal and card dimensions. */
html.cybercab-preview body{background:#171915;color:#f3f0e7}
html.cybercab-preview body:before{
  background:radial-gradient(ellipse at 74% -12%,rgba(216,182,107,.16),transparent 39%),radial-gradient(ellipse at 8% 62%,rgba(120,99,54,.08),transparent 34%),linear-gradient(180deg,#1d1f1b 0,#11130f 58%,#090a08 100%);
}
html.cybercab-preview .portal-head{
  border-color:rgba(216,182,107,.34);
  border-radius:10px;
  background:linear-gradient(118deg,rgba(35,37,32,.96),rgba(17,19,16,.91) 55%,rgba(73,63,39,.54));
  box-shadow:inset 0 1px 0 rgba(255,245,216,.07),0 24px 70px rgba(0,0,0,.34),0 0 34px rgba(216,182,107,.07);
}
html.cybercab-preview .portal-head:before{content:"";position:absolute;top:0;right:0;bottom:0;width:38%;border-left:1px solid rgba(216,182,107,.13);background:linear-gradient(135deg,transparent 0 34%,rgba(216,182,107,.055) 34.2% 64%,transparent 64.2%);pointer-events:none}
html.cybercab-preview .portal-head:after{background:radial-gradient(ellipse,rgba(216,182,107,.18),transparent 66%)}
html.cybercab-preview .tesla-tv-logo{width:clamp(275px,29vw,380px);color:#e2c17b;overflow:visible;transform:none;filter:drop-shadow(0 1px 0 rgba(255,245,216,.22)) drop-shadow(0 9px 22px rgba(0,0,0,.32)) drop-shadow(0 0 9px rgba(216,182,107,.11))}
html.cybercab-preview .info-row .eyebrow,
html.cybercab-preview .vehicle-only,
html.cybercab-preview .notice{border-radius:8px}
html.cybercab-preview .info-row .eyebrow{border-color:rgba(216,182,107,.34);background:rgba(216,182,107,.1);color:#e2c17b}
html.cybercab-preview .portal-head .info-row .eyebrow{font-size:11px;font-weight:850;letter-spacing:.105em;text-shadow:0 1px 8px rgba(0,0,0,.28)}
html.cybercab-preview .vehicle-only{border-color:rgba(216,182,107,.34);background:rgba(216,182,107,.09);color:#f1e8d3}
html.cybercab-preview .portal-head .vehicle-only,html.cybercab-preview .portal-head .notice{font-size:13px;font-weight:750;letter-spacing:0}
html.cybercab-preview .vehicle-only:before{border:1px solid rgba(216,182,107,.28);border-radius:3px;background:rgba(216,182,107,.13);color:#e2c17b}
html.cybercab-preview .portal-head .vehicle-only:before{font-size:8px;letter-spacing:.06em}
html.cybercab-preview .notice{border-color:rgba(219,103,76,.58);background:rgba(151,52,37,.2);color:#ffd9cf}
html.cybercab-preview .notice b{border-radius:5px;background:#a8432e;box-shadow:0 0 0 2px rgba(168,67,46,.13)}
html.cybercab-preview .catalog-head h2{color:#f3f0e7}
html.cybercab-preview .catalog-head span,html.cybercab-preview .footer-note{color:#98988e}
html.cybercab-preview .tv-card,
html.cybercab-preview .tv-card.live{
  border-color:rgba(216,182,107,.25);
  border-radius:9px!important;
  background:linear-gradient(145deg,color-mix(in srgb,var(--card-color) 17%,#262821),rgba(10,11,9,.97) 68%);
  box-shadow:inset 0 1px 0 rgba(255,245,216,.055),0 18px 48px rgba(0,0,0,.31);
}
html.cybercab-preview .tv-card.youtube{--brand-deep:#3a1015;--brand-mid:#a51f2e;--brand-light:#ff5d68}
html.cybercab-preview .tv-card.bilibili{--brand-deep:#0c2931;--brand-mid:#087ea4;--brand-light:#55cbe9}
html.cybercab-preview .tv-card.random{--brand-deep:#20113b;--brand-mid:#6530b8;--brand-light:#aa78f6}
html.cybercab-preview .tv-card.hongguo{--brand-deep:#3b190d;--brand-mid:#ad3c13;--brand-light:#f47a2c}
html.cybercab-preview .tv-card.vod{--brand-deep:#171a45;--brand-mid:#4f46b8;--brand-light:#8f96ff}
html.cybercab-preview .tv-card.lyrics{--brand-deep:#332807;--brand-mid:#9b7608;--brand-light:#e5bd2d}
html.cybercab-preview .tv-card.bilibili-live{--brand-deep:#092636;--brand-mid:#087ba8;--brand-light:#40bde9}
html.cybercab-preview .tv-card.douyin-live{--brand-deep:#351126;--brand-mid:#a51f68;--brand-light:#ef5ca7}
html.cybercab-preview .tv-card.iptv{--brand-deep:#0b301b;--brand-mid:#17723d;--brand-light:#49b96f}
html.cybercab-preview .tv-card.sports{--brand-deep:#3a1d0b;--brand-mid:#a94712;--brand-light:#ed873a}
html.cybercab-preview .tv-card[data-brand-mark]{background:linear-gradient(145deg,color-mix(in srgb,var(--brand-mid) 48%,#24261f),var(--brand-deep) 46%,#080907 88%)}
html.cybercab-preview .tv-card:before{background:radial-gradient(circle at 79% 13%,color-mix(in srgb,var(--card-color) 66%,#d8b66b 12%),transparent 50%),linear-gradient(0deg,rgba(8,9,7,.94),rgba(12,13,10,.2) 76%);opacity:.78}
html.cybercab-preview .tv-card[data-brand-mark]:before{background:radial-gradient(circle at 78% 12%,color-mix(in srgb,var(--brand-light) 82%,#f0d999 10%),transparent 52%),linear-gradient(0deg,rgba(5,6,5,.95),rgba(8,9,7,.08) 74%);opacity:.84}
html.cybercab-preview .tv-card:after{content:attr(data-brand-mark);position:absolute;z-index:0;top:18%;right:-3%;max-width:86%;overflow:hidden;color:color-mix(in srgb,var(--card-color) 72%,#f0d999 28%);font:800 clamp(34px,4.6vw,70px)/.86 Rajdhani,"Noto Sans JP",sans-serif;letter-spacing:-.075em;white-space:nowrap;opacity:.14;transform:skewX(-8deg) scaleX(1.08);transform-origin:right center;text-shadow:0 0 24px color-mix(in srgb,var(--card-color) 42%,transparent);pointer-events:none}
html.cybercab-preview .tv-card.live:after,html.cybercab-preview .tv-card.sports:after{content:attr(data-brand-mark);top:18%;right:-3%;padding:0;border:0;border-radius:0;background:transparent;color:color-mix(in srgb,var(--card-color) 72%,#f0d999 28%);font:800 clamp(34px,4.6vw,70px)/.86 Rajdhani,"Noto Sans JP",sans-serif;letter-spacing:-.075em;box-shadow:none;opacity:.14;transform:skewX(-8deg) scaleX(1.08)}
html.cybercab-preview .tv-card-inner:after{content:"";position:absolute;z-index:-1;right:-28px;bottom:-28px;left:-28px;height:58%;background:linear-gradient(180deg,transparent,rgba(4,5,4,.72) 48%,rgba(4,5,4,.94));pointer-events:none}
html.cybercab-preview .platform-title-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
html.cybercab-preview .platform-wordmark{display:inline-flex;align-items:center;gap:.08em;color:#fff;font-family:Inter,"Noto Sans JP",sans-serif;font-weight:900;letter-spacing:-.055em;filter:drop-shadow(0 2px 8px rgba(0,0,0,.42))}
html.cybercab-preview .youtube-wordmark{gap:0;font-size:.82em;letter-spacing:-.065em}html.cybercab-preview .youtube-wordmark b{font:inherit}html.cybercab-preview .youtube-wordmark b:last-child{margin-left:.1em;padding:.1em .22em .12em;border-radius:.2em;background:#f03;color:#fff;letter-spacing:-.07em}
html.cybercab-preview .bilibili-wordmark{font-family:Rajdhani,Inter,sans-serif;font-size:1.12em;font-weight:800;letter-spacing:-.07em}
html.cybercab-preview .douyin-wordmark{font-size:1em;letter-spacing:-.04em;text-shadow:-2px 0 #25f4ee,2px 0 #fe2c55}
html.cybercab-preview .platform-wordmark small{margin-left:.42em;padding:.28em .42em;border:1px solid rgba(255,255,255,.38);border-radius:3px;font:800 .38em/1 Inter,sans-serif;letter-spacing:.08em}
html.cybercab-preview .tv-card h2{z-index:2;color:#fff;text-shadow:0 2px 18px rgba(0,0,0,.82)}
html.cybercab-preview .tv-card.live .tv-card-inner:before,html.cybercab-preview .tv-card.sports .tv-card-inner:before{content:"●  LIVE";position:absolute;z-index:3;top:0;right:0;padding:6px 9px;border:1px solid rgba(226,193,123,.42);border-radius:5px;background:#b64c33;color:#fff;font-size:9px;font-weight:900;line-height:1;letter-spacing:.09em;box-shadow:0 7px 20px rgba(0,0,0,.25)}
html.cybercab-preview .tv-card:hover,html.cybercab-preview .tv-card:focus-visible{transform:none;border-color:#d8b66b;box-shadow:inset 0 1px 0 rgba(255,245,216,.1),0 22px 58px rgba(0,0,0,.38),0 0 25px rgba(216,182,107,.16)}
html.cybercab-preview .service-icon{border:1px solid rgba(216,182,107,.24);border-radius:9px!important;background:color-mix(in srgb,var(--card-color) 23%,#24261f);box-shadow:inset 0 1px 0 rgba(255,245,216,.1)}
html.cybercab-preview .tv-card.live:after,html.cybercab-preview .tv-card.sports:after{border-color:rgba(226,193,123,.42);border-radius:5px;background:#b64c33;box-shadow:0 7px 20px rgba(0,0,0,.25)}
html.cybercab-preview .sort-toolbar,html.cybercab-preview .sort-toast{border-color:rgba(216,182,107,.38);border-radius:10px;background:rgba(26,29,24,.95)}
html.cybercab-preview .sort-toolbar button{border-radius:7px}
html.cybercab-preview .sort-toolbar .sort-done{border-color:#d8b66b;background:#a77e34;color:#fff8e8}

html.cybercab-preview[data-theme="light"] body{background:#e9e5da;color:#252620}
html.cybercab-preview[data-theme="light"] body:before{background:radial-gradient(ellipse at 74% -12%,rgba(168,121,37,.14),transparent 39%),linear-gradient(180deg,#f5f1e8 0,#e9e5da 62%,#dfd9cc 100%)}
html.cybercab-preview[data-theme="light"] .portal-head{border-color:#cfba8a;background:linear-gradient(118deg,#fbf8f0,#eee8da 56%,#e5d8bc);box-shadow:inset 0 1px 0 #fff,0 24px 60px rgba(73,58,30,.12)}
html.cybercab-preview[data-theme="light"] .tesla-tv-logo{color:#8d6828;filter:drop-shadow(0 1px 0 #fff) drop-shadow(0 9px 20px rgba(73,58,30,.18))}
html.cybercab-preview[data-theme="light"] .catalog-head h2{color:#252620}
html.cybercab-preview[data-theme="light"] .info-row .eyebrow{border-color:#cfba8a;background:#f1e7d0;color:#79561c}
html.cybercab-preview[data-theme="light"] .vehicle-only{border-color:#d7c7a4;background:#f8f3e8;color:#5c4a29}
html.cybercab-preview[data-theme="light"] .notice{border-color:#d9a899;background:#fff0eb;color:#8f3525}
html.cybercab-preview[data-theme="light"] .tv-card{border-color:rgba(105,83,42,.38);box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 18px 46px rgba(73,58,30,.18)}
html.cybercab-preview[data-theme="light"] .catalog-head span,html.cybercab-preview[data-theme="light"] .footer-note{color:#706c60}
@media(max-width:520px){
  html.cybercab-preview .nav{width:calc(100% - 24px);gap:8px}
  html.cybercab-preview .brand{width:138px;padding:0 10px;gap:9px}
  html.cybercab-preview .brand .rikustar-mark{width:82px;height:19px}
}

/* Keep hover and keyboard focus visible over the light-theme card styles. */
html.cybercab-preview[data-theme="light"] .tv-card:hover,
html.cybercab-preview[data-theme="light"] .tv-card:focus-visible{border-color:#a77e34;box-shadow:inset 0 1px 0 rgba(255,255,255,.3),0 22px 58px rgba(73,58,30,.24),0 0 25px rgba(216,182,107,.24)}
