:root {
  font-family: Vazirmatn, IRANSans, Tahoma, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  color: #f8f8fd;
  background: #080b12;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --bg: #080b12;
  --surface: #121521;
  --surface-2: #1a1d2a;
  --stroke: #292d3a;
  --soft: #9699ae;
  --pink: #fb5aa5;
  --purple: #8c6cff;
}
* { box-sizing: border-box; }
html, body, #root { margin: 0; width: 100%; min-height: 100%; }
body { background: var(--bg); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; }
a { text-decoration: none; color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid #b6a2ff; outline-offset: 3px; }
::selection { background: #a075ff90; }

.brand { display: inline-flex; align-items: center; gap: 11px; width: max-content; flex-shrink: 0; }
.brand-mark { display: grid; place-items: center; width: 41px; height: 41px; border-radius: 13px; color: white; background: linear-gradient(145deg, #f956a2 5%, #9d66fa 91%); box-shadow: 0 6px 21px #aa54df3d; transform: rotate(-5deg); }
.brand-mark svg { transform: rotate(5deg); }
.brand-label { display: flex; flex-direction: column; font-size: 22px; font-weight: 850; letter-spacing: -.7px; line-height: 1.18; }
.brand-label small { margin-top: 4px; color: #888a9a; font-size: 7px; font-weight: 800; letter-spacing: 2.2px; direction: ltr; text-align: right; }

/* Public feed */
.feed-app { display: flex; height: 100dvh; width: 100%; overflow: hidden; }
.desktop-sidebar { display: flex; flex-direction: column; width: 252px; flex-shrink: 0; padding: 29px 24px 24px; border-left: 1px solid #202330; background: #0b0e16; }
.desktop-sidebar .brand { margin-bottom: 55px; }
.sidebar-nav { display: flex; flex-direction: column; gap: 8px; }
.nav-item { display: flex; gap: 14px; align-items: center; padding: 15px 14px; color: #a2a5b7; font-size: 13px; font-weight: 700; background: transparent; border: 0; border-radius: 14px; text-align: right; transition: .2s; }
.nav-item:hover { color: #fff; background: #181b27; }
.nav-item.selected { color: #fff; background: linear-gradient(90deg, #232135, #242035); }
.nav-item.selected svg { color: #e366c6; }
.sidebar-divider { height: 1px; background: var(--stroke); margin: 25px 4px 23px; }
.section-caption { display: block; margin: 0 5px 17px; font-size: 11px; font-weight: 700; color: #767b8f; }
.sidebar-profile { display: flex; align-items: center; gap: 10px; padding: 6px 4px; }
.profile-circle { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, #e95aa4, #7956e6); font-weight: 900; font-size: 17px; }
.sidebar-profile > div { display: flex; flex-direction: column; gap: 5px; }
.sidebar-profile b { font-size: 12px; }
.sidebar-profile small { font-size: 10px; color: #9599ab; }
.verified { display: grid; place-items: center; background: #6569ed; width: 17px; height: 17px; border-radius: 50%; font-size: 12px; color: white; }
.sidebar-bottom { margin-top: auto; border-top: 1px solid var(--stroke); padding-top: 20px; }
.sidebar-bottom p { font-size: 11px; color: #7c8196; line-height: 2; margin: 0 0 23px; }
.sidebar-bottom a { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; color: #a7aabd; }
.sidebar-bottom a:hover { color: white; }
.sidebar-bottom > small { display: block; color: #626679; font-size: 10px; margin-top: 18px; }
.mobile-head { display: none; }
.feed-layout { display: grid; grid-template-columns: minmax(0, 1fr) 302px; flex: 1; min-width: 0; }
.feed-surface { position: relative; min-width: 0; display: flex; justify-content: center; align-items: center; background: radial-gradient(ellipse at 49% 49%, #181429 0%, #0d0e18 62%, #0a0d14 100%); }
.feed-viewport { width: min(100%, 450px, calc((100dvh - 46px)*.5625)); height: calc(100dvh - 34px); min-width: 0; overflow-y: auto; overscroll-behavior-y: contain; scroll-behavior: smooth; scroll-snap-type: y mandatory; scrollbar-width: none; }
.feed-viewport::-webkit-scrollbar { display: none; }
.slide-shell { height: 100%; width: 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.video-slide { height: 100%; width: 100%; display: flex; align-items: center; justify-content: center; }
.player-frame { position: relative; height: 100%; width: 100%; overflow: hidden; border-radius: 16px; background: #000; box-shadow: 0 18px 58px #00000055; }
.video-element { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: contain; object-position: center center; background: #000; cursor: pointer; }
.player-shade { pointer-events: none; position: absolute; inset: 0; background: linear-gradient(180deg, #0606108c 0%, #05060b00 22%, #05060b00 47%, #03040970 70%, #030409dd 100%); }
.video-topline { display: flex; align-items: center; justify-content: space-between; position: absolute; inset: 19px 19px auto 17px; pointer-events: none; }
.top-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; color: #fff; font-size: 10px; font-weight: 750; border-radius: 24px; border: 1px solid #ffffff26; background: #11131a8c; backdrop-filter: blur(15px); }
.online-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #ff6dba; box-shadow: 0 0 0 3px #fa66ab25; flex-shrink: 0; }
.circle-top { display: grid; place-items: center; height: 34px; width: 34px; background: #11131a83; border: 1px solid #ffffff30; color: #fff; border-radius: 50%; pointer-events: auto; backdrop-filter: blur(14px); }
.circle-top:hover { background: #413b52c9; }
.center-play { position: absolute; top: 46%; right: 50%; transform: translate(50%, -50%); display: grid; place-items: center; height: 72px; width: 72px; background: #0008; border: 1px solid #ffffff66; border-radius: 50%; color: #fff; backdrop-filter: blur(12px); }
.video-side-actions { position: absolute; bottom: 112px; left: 13px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.avatar-badge { position: relative; display: grid; place-items: center; width: 47px; height: 47px; border-radius: 50%; border: 2px solid white; background: linear-gradient(145deg, #e959a0, #6955ef); font-weight: 900; font-size: 19px; box-shadow: 0 8px 30px #0007; margin-bottom: 3px; }
.avatar-tick { position: absolute; bottom: -6px; right: 50%; transform: translateX(50%); width: 15px; height: 15px; display: grid; place-items: center; background: #ee5f9d; border-radius: 50%; }
.side-button { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 51px; background: transparent; color: #fff; border: 0; padding: 0; text-shadow: 0 1px 5px #0009; font-size: 11px; font-weight: 800; }
.side-icon { display: grid; place-items: center; width: 44px; height: 42px; filter: drop-shadow(0 2px 3px #0008); transition: transform .18s ease; }
button.side-button:hover .side-icon { transform: scale(1.13); }
.side-button.liked .side-icon { color: #ff5b9f; }
.side-static { cursor: default; }
.video-details { position: absolute; bottom: 42px; right: 21px; left: 79px; text-shadow: 0 1px 4px #0009; }
.channel-name { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; margin-bottom: 9px; }
.channel-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); }
.video-details h2 { margin: 0 0 6px; color: white; font-size: 19px; line-height: 1.6; max-height: 80px; overflow: hidden; font-weight: 900; }
.video-caption { font-size: 11px; line-height: 1.9; color: #f3f1f4; margin: 0 0 8px; max-height: 46px; overflow: hidden; }
.video-tags { display: flex; flex-wrap: wrap; gap: 8px; font-size: 11px; font-weight: 800; color: #f0d6ff; }
.progress-zone { position: absolute; bottom: 13px; left: 19px; right: 19px; height: 12px; display: flex; align-items: center; }
.progress-zone input { direction: ltr; width: 100%; height: 4px; appearance: none; border-radius: 5px; background: linear-gradient(to right, #fa5baf var(--played), #ffffff6b var(--played)); cursor: pointer; }
.progress-zone input::-webkit-slider-thumb { appearance: none; border: 0; width: 9px; height: 9px; border-radius: 50%; background: #fff; }
.progress-zone input::-moz-range-thumb { border: 0; width: 9px; height: 9px; border-radius: 50%; background: #fff; }
.feed-arrows { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 15px; }
.feed-arrows button { display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid #343344; color: #dddce9; background: #1d1b29; border-radius: 50%; }
.feed-arrows button:hover:not(:disabled) { background: #343048; }
.empty-state { height: 100%; min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; }
.empty-state h2 { font-size: 19px; margin: 15px 0 10px; }
.empty-state p { color: #9295ab; line-height: 1.9; font-size: 12px; }
.empty-state .primary-button { margin-top: 20px; }
.empty-illustration { display: grid; place-items: center; width: 95px; height: 95px; color: #e0a7fa; border: 1px solid #4e3a60; background: #3324409e; border-radius: 30px; box-shadow: 0 0 70px #9c49cd38; }
.loader { height: 29px; width: 29px; border: 3px solid #4c405d; border-top-color: var(--pink); border-radius: 50%; animation: rotate 1s linear infinite; }
@keyframes rotate { to { transform: rotate(360deg); } }
.load-more-indicator { color: #b6abc6; background: #1d1825; font-size: 10px; padding: 9px; text-align: center; }
.mobile-video-count { display: none; }

/* Discovery sidebar */
.discover-panel { min-width: 0; padding: 36px 23px; border-right: 1px solid #1d202b; background: #0c0f17; }
.discover-title { font-size: 18px; font-weight: 900; margin-bottom: 24px; }
.tiny-sparkle { color: #ff66ae; font-size: 20px; margin-right: 6px; }
.search-wrap { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 15px; color: #9da0b4; background: #1b1e2a; border: 1px solid #282a3b; border-radius: 13px; }
.search-wrap:focus-within { border-color: #9474dc; }
.search-wrap input { color: white; background: transparent; border: none; outline: none; width: 100%; font-size: 11px; }
.search-wrap input::placeholder { color: #777b8e; }
.discover-card { position: relative; overflow: hidden; margin-top: 27px; min-height: 238px; padding: 24px 20px; background: radial-gradient(ellipse at 120% -20%, #8b55d35e, transparent 65%), linear-gradient(150deg, #29213a, #1c1929 68%); border: 1px solid #393047; border-radius: 20px; }
.discover-card:before { content: '✦'; position: absolute; font-size: 111px; color: #b16ff018; left: -12px; top: -45px; }
.discover-card-kicker { position: relative; display: flex; align-items: center; gap: 9px; font-size: 10px; font-weight: 800; color: #f5c9e3; }
.discover-card h3 { position: relative; font-weight: 900; font-size: 19px; line-height: 1.65; margin: 22px 0 7px; }
.discover-card p { position: relative; font-size: 11px; line-height: 2; color: #bbb4c9; margin: 0; }
.discover-stats { position: relative; display: flex; flex-direction: column; align-items: start; gap: 11px; border-top: 1px solid #ffffff26; padding-top: 15px; margin-top: 19px; font-size: 10px; color: #d0c8da; }
.discover-stats span { display: flex; align-items: center; gap: 7px; }
.guide { margin-top: 31px; padding: 0 3px; }
.guide-title { display: flex; align-items: center; gap: 9px; color: #c9c7d5; font-size: 12px; font-weight: 800; }
.guide p { color: #85899c; font-size: 11px; line-height: 2.15; margin-top: 13px; }

/* Admin and login */
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 21px; font-size: 12px; font-weight: 850; border-radius: 12px; border: 0; color: white; background: linear-gradient(105deg, #f657a4, #9b65f2); box-shadow: 0 8px 25px #a253cf35; transition: filter .2s, transform .2s; }
.primary-button:hover:not(:disabled) { filter: brightness(1.1); transform: translateY(-1px); }
.admin-loading { display: grid; place-items: center; height: 100dvh; }
.admin-login-page { min-height: 100dvh; background: #090b13; overflow: hidden; position: relative; display: grid; place-items: center; padding: 23px; }
.ambient { position: absolute; width: 530px; height: 530px; filter: blur(90px); opacity: .19; border-radius: 50%; pointer-events: none; }
.ambient-one { background: #af52f2; top: -270px; left: -150px; }
.ambient-two { background: #e959a8; bottom: -310px; right: -150px; }
.login-card { position: relative; width: 100%; max-width: 430px; padding: 34px 36px 32px; border: 1px solid #303042; background: #151725e8; border-radius: 27px; box-shadow: 0 25px 95px #0007; }
.login-brand { margin-bottom: 38px; }
.admin-icon { display: grid; place-items: center; width: 57px; height: 57px; border-radius: 17px; background: #39283f; color: #f78ad1; margin-bottom: 20px; }
.login-tag { color: #f390d0; font-weight: 800; font-size: 11px; }
.login-card h1 { font-size: 30px; margin: 12px 0 10px; }
.login-card > p { line-height: 2; color: #abaec0; font-size: 12px; margin-bottom: 24px; }
.form-label { display: flex; flex-direction: column; gap: 10px; color: #e1e1ec; font-size: 12px; font-weight: 760; }
.form-label span { color: #f76a9e; }
.form-label .optional { color: #888c9d; font-weight: 400; font-size: 10px; }
.form-label input, .form-label textarea { width: 100%; background: #1a1d2a; border: 1px solid #333647; color: #f8f7fa; padding: 13px 14px; font-size: 12px; border-radius: 11px; outline: none; resize: vertical; }
.form-label input:focus, .form-label textarea:focus { border-color: #a66fda; }
.form-label input::placeholder, .form-label textarea::placeholder { color: #797d8c; }
.login-card form { display: flex; flex-direction: column; gap: 21px; }
.login-card form .primary-button { width: 100%; margin-top: 3px; }
.back-home { display: flex; align-items: center; justify-content: center; gap: 8px; color: #a9a9bf; font-size: 11px; margin-top: 28px; }
.back-home:hover { color: white; }
.admin-page { min-height: 100dvh; background: #0a0c15; }
.admin-header { display: flex; align-items: center; justify-content: space-between; height: 88px; padding: 0 max(26px, calc((100vw - 1210px)/2)); border-bottom: 1px solid #222431; background: #10121d; }
.admin-header-actions { display: flex; gap: 10px; }
.outline-button { display: inline-flex; align-items: center; gap: 9px; padding: 11px 17px; background: #1a1d29; border: 1px solid #353746; border-radius: 10px; color: #e4e4ef; font-size: 11px; }
.outline-button:hover { background: #282b38; }
.admin-content { max-width: 1210px; margin: 0 auto; padding: 36px 26px 90px; }
.admin-hero { display: flex; align-items: center; justify-content: space-between; padding: 31px 36px; border: 1px solid #363045; border-radius: 22px; background: radial-gradient(ellipse at 7% 0%, #af56c02a, transparent 46%), linear-gradient(90deg, #2a1e37, #181b29); margin-bottom: 23px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: #f09fd3; font-size: 10px; font-weight: 800; }
.admin-hero h1 { margin: 12px 0 5px; font-size: 27px; font-weight: 900; }
.admin-hero p { color: #bab5c5; font-size: 12px; margin-bottom: 0; }
.hero-graphic { display: grid; place-items: center; width: 89px; height: 89px; border-radius: 26px; background: linear-gradient(145deg, #db5da36b, #8865f05b); border: 1px solid #e5a1e54d; color: #ffd5eb; transform: rotate(-10deg); }
.admin-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 23px; align-items: start; }
.upload-form, .management-card { min-width: 0; border: 1px solid #2d2f40; background: #141724; padding: 27px; border-radius: 21px; }
.upload-form { display: flex; flex-direction: column; gap: 22px; }
.card-heading { display: flex; align-items: center; gap: 13px; }
.heading-icon { display: grid; place-items: center; height: 47px; width: 47px; color: #f3a1ce; background: #3d2943; border-radius: 14px; }
.card-heading h2, .management-heading h2 { margin: 0 0 8px; font-size: 16px; }
.card-heading p, .management-heading p { color: #979bac; font-size: 10px; margin: 0; line-height: 1.8; }
.drop-zone { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 199px; border: 2px dashed #554065; border-radius: 15px; background: #1d1b2c; text-align: center; cursor: pointer; padding: 20px; transition: background .2s; }
.drop-zone:hover, .drop-zone.has-file { background: #292237; }
.drop-zone input { display: none; }
.drop-icon { display: grid; place-items: center; width: 54px; height: 54px; background: #453150; color: #e99fd0; border-radius: 16px; margin-bottom: 13px; }
.drop-zone strong { font-size: 12px; line-height: 1.6; word-break: break-word; }
.drop-zone > span:last-child { color: #a7a3b7; font-size: 10px; margin-top: 9px; }
.publish-button { width: 100%; padding: 15px; }
.progress-card { color: #d9cfe3; font-size: 10px; }
.progress-card > div:first-child { display: flex; justify-content: space-between; margin-bottom: 9px; }
.upload-track { overflow: hidden; height: 7px; background: #2e2b39; border-radius: 9px; }
.upload-track > span { height: 100%; display: block; background: linear-gradient(90deg, var(--pink), var(--purple)); }
.management-heading { display: flex; justify-content: space-between; align-items: start; gap: 8px; margin-bottom: 24px; }
.count-bubble { white-space: nowrap; background: #322540; color: #f5b9df; padding: 7px 10px; border-radius: 10px; font-size: 10px; font-weight: 800; }
.video-management-list { display: flex; flex-direction: column; }
.manage-item { display: flex; align-items: center; gap: 13px; padding: 12px 0; border-bottom: 1px solid #2e3040; }
.manage-item:last-child { border: 0; }
.manage-thumb { display: grid; place-items: center; position: relative; flex-shrink: 0; width: 57px; height: 77px; border-radius: 9px; overflow: hidden; background: #31243f; color: white; }
.manage-thumb img, .manage-thumb video { width: 100%; height: 100%; object-fit: contain; position: absolute; inset: 0; background: #000; }
.manage-thumb:after { content: ''; position: absolute; inset: 0; background: #0004; }
.manage-thumb > svg { position: relative; z-index: 1; }
.manage-info { min-width: 0; flex: 1; }
.manage-info b { font-size: 12px; font-weight: 800; display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.manage-info small { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; font-size: 9px; color: #9fa2b2; margin-top: 12px; }
.manage-info small span { margin: 0 2px; }
.manage-actions { display: flex; gap: 4px; }
.manage-actions a, .manage-actions button { width: 29px; height: 31px; display: grid; place-items: center; background: #232635; border: 0; color: #cdccda; border-radius: 7px; }
.manage-actions a:hover, .manage-actions button:hover { background: #36394a; }
.manage-actions .delete-action:hover { background: #4b2937; color: #ff90a3; }
.muted-text, .manage-empty { color: #9296aa; font-size: 11px; line-height: 2; }
.manage-empty { padding: 50px 10px; display: flex; flex-direction: column; align-items: center; }
.manage-empty svg { color: #a478c7; }
.modal-backdrop { position: fixed; z-index: 20; inset: 0; background: #05060bcd; display: grid; place-items: center; padding: 20px; }
.edit-modal { max-width: 475px; width: 100%; padding: 29px; background: #1b1d2b; border: 1px solid #494053; border-radius: 22px; box-shadow: 0 30px 120px #000b; }
.modal-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.modal-heading h3 { margin: 0; }
.modal-heading button { border: 0; background: transparent; color: white; }
.edit-modal form { display: flex; flex-direction: column; gap: 18px; }
.toast-message { position: fixed; z-index: 100; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 11px; width: max-content; max-width: calc(100vw - 30px); padding: 14px 17px; font-size: 12px; color: #fff; background: #343041f2; border: 1px solid #73617e; border-radius: 13px; box-shadow: 0 13px 35px #0008; }
.toast-message > svg { color: #f88dc4; flex-shrink: 0; }
.toast-message button { margin-right: 15px; display: grid; place-items: center; color: #ccc2d2; background: transparent; border: 0; }

@media (max-width: 1199px) {
  .desktop-sidebar { width: 200px; padding: 27px 17px; }
  .feed-layout { grid-template-columns: minmax(0, 1fr) 240px; }
  .discover-panel { padding: 34px 16px; }
  .feed-arrows { left: 9px; }
}
@media (max-width: 950px) {
  .discover-panel { display: none; }
  .feed-layout { grid-template-columns: minmax(0, 1fr); }
  .feed-viewport { width: min(450px, calc((100dvh - 30px)*.5625)); }
}
@media (max-width: 650px) {
  .feed-app { display: block; height: 100dvh; }
  .desktop-sidebar { display: none; }
  .mobile-head { height: 59px; padding: 0 17px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #242431; background: #0b0d16; }
  .mobile-head a:not(.brand) { color: #b6b4c4; }
  .brand-small .brand-mark { height: 34px; width: 34px; border-radius: 10px; }
  .brand-small .brand-label { font-size: 19px; }
  .brand-small .brand-label small { font-size: 6px; }
  .feed-layout { height: calc(100dvh - 59px); display: block; }
  .feed-surface { height: 100%; width: 100%; background: #030408; }
  .feed-viewport { height: 100%; width: 100%; }
  .player-frame { border-radius: 0; }
  .feed-arrows { display: none; }
  .video-details { right: 17px; left: 78px; bottom: 38px; }
  .video-details h2 { font-size: 18px; }
  .video-side-actions { bottom: 104px; }
  .video-topline { top: 14px; }
  .mobile-video-count { position: fixed; bottom: 10px; left: 12px; font-size: 9px; color: #ffffff70; pointer-events: none; }
  .admin-header { height: 76px; padding: 0 17px; }
  .admin-header-actions .outline-button { padding: 11px 10px; font-size: 0; }
  .admin-header-actions .outline-button svg { width: 20px; height: 20px; }
  .admin-content { padding: 20px 13px 60px; }
  .admin-hero { padding: 21px 19px; margin-bottom: 13px; }
  .admin-hero h1 { font-size: 22px; }
  .admin-hero p { font-size: 11px; line-height: 1.8; }
  .hero-graphic { width: 58px; height: 58px; flex-shrink: 0; border-radius: 15px; }
  .hero-graphic svg { width: 30px; }
  .admin-columns { grid-template-columns: 1fr; gap: 15px; }
  .upload-form, .management-card { padding: 20px 17px; }
  .login-card { padding: 29px 25px; }
  .login-card h1 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation-duration: 0.01ms !important; }
}

/* Native Windows V2 adaptations */
[hidden] { display: none !important; }
.mobile-head-actions { display: flex; align-items: center; gap: 20px; }
.mobile-head-actions button { border: 0; color: #b6b4c4; background: transparent; padding: 4px; }
.mobile-search-row { position: fixed; top: 59px; left: 0; right: 0; z-index: 30; background: #131623; padding: 10px 14px; border-bottom: 1px solid #323346; }
.mobile-search-row input { width: 100%; font: inherit; background: #222636; color: white; padding: 11px 14px; border: 1px solid #4f435b; border-radius: 12px; }
.manage-item button:focus-visible { outline: 2px solid #fa6cb2; }
@media(min-width: 651px) { .mobile-head-actions, .mobile-search-row { display: none; } }
/* Keep the video file chooser clickable and keyboard accessible. */
.drop-zone { position: relative; }
.drop-zone input[type="file"] { display: block; position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop-zone:focus-within { outline: 2px solid #b6a2ff; outline-offset: 2px; }

/* V3: shared links are visible, selectable and copyable. */
.share-modal { width: min(440px, calc(100vw - 30px)); }
.share-help { margin: -4px 0 17px; color: #adaab9; line-height: 1.9; font-size: 12px; }
.share-link-label { display: block; color: #d9d6e1; margin: 0 0 8px; font-size: 12px; font-weight: 750; }
.share-link-input { display: block; width: 100%; box-sizing: border-box; background: #111320; color: #fafafa; border: 1px solid #454355; border-radius: 12px; padding: 13px 12px; font: 13px ui-monospace, Consolas, monospace; direction: ltr; text-align: left; }
.share-buttons { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.share-buttons .primary-button { min-width: 150px; flex: 1; justify-content: center; }
.share-buttons .outline-button { min-width: 160px; flex: 1; justify-content: center; }
.share-modal .modal-heading { margin-bottom: 12px; }
.player-frame { background-color: #000; }

/* CUTINO V4 · Violet / turquoise neon system. */
:root {
  --bg: #090817;
  --surface: #161229;
  --surface-2: #21193a;
  --stroke: #373052;
  --soft: #a7a4c3;
  --pink: #24e9d8;
  --purple: #9562ff;
  --teal: #25ecd7;
  --glow: #9465ff;
}
body { background: #090817; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline-color: #33efdc; }
::selection { background: #28ddca66; color: #fff; }
.brand { gap: 12px; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 14px; transform: none;
  color: #2efbe2; background: linear-gradient(145deg, #241448, #0b1835);
  border: 1px solid #7262ea; box-shadow: 0 0 28px #7e48fa55, inset 0 0 19px #10d9cf19;
}
.brand-mark svg { transform:none; filter:drop-shadow(0 0 5px #39f9d7a8); }
.brand-label { font-family: "Segoe UI", Tahoma, sans-serif; font-size: 24px; font-weight: 900; direction:ltr; text-align:left; color:#fff; letter-spacing: -.9px; text-shadow:0 0 22px #8b66ec3a; }
.brand-label small { font-family: "Segoe UI", sans-serif; font-size: 7px; color: #64e3e2; letter-spacing: 1.4px; text-align:left; }
.desktop-sidebar { background: linear-gradient(180deg,#110d24 0%,#0b0b1b 65%,#09091a 100%); border-color:#2b2349; }
.nav-item { border:1px solid transparent; }
.nav-item.selected { color:#e8fffc; border-color:#5e3d9d; background:linear-gradient(115deg,#322154,#182739); box-shadow: inset 3px 0 0 #29f0e1; }
.nav-item.selected svg { color:#28ecdb; filter:drop-shadow(0 0 9px #27e2da85); }
.nav-item:hover { background:#211b36; }
.profile-circle, .avatar-badge { background:linear-gradient(140deg,#874dff,#16d9d3) !important; }
.verified { background:#1eb5ab; }
.sidebar-bottom p { color:#a09abd; }
.feed-layout { background:#0b091b; }
.feed-surface { background: radial-gradient(ellipse at 53% 54%,#322058 0%,#160f2b 36%,#0c0a1c 80%), linear-gradient(130deg,#180c3d,#0a132b); isolation:isolate; }
.feed-surface:before, .feed-surface:after { content:""; position:absolute; width:45%; height:38%; border-radius:50%; filter:blur(62px); pointer-events:none; opacity:.25; z-index:-1; }
.feed-surface:before { top:5%; right:4%; background:#8f49ff; }
.feed-surface:after { bottom:0; left:1%; background:#15bbce; }
.feed-top-glint { position:absolute; top:16px; right:22px; z-index:2; font:700 10px "Segoe UI",Tahoma,sans-serif; direction:ltr; letter-spacing:.6px; color:#eee9ff; padding:9px 16px; border:1px solid #7770be80; border-radius:999px; background:#100c2880; backdrop-filter:blur(12px); box-shadow:0 0 16px #7245fa15; }
.feed-top-glint span, .feed-top-glint em { color:#2eecdc; font-style:normal; }
.feed-viewport { padding:1px; height:calc(100dvh - 34px); position:relative; }
.player-frame { border:1px solid #7c5aff7a; background:#000; border-radius:20px; box-shadow:0 15px 75px #0009,0 0 37px #8450ff30, 0 0 2px 1px #2edecb3a; }
.player-shade { background:linear-gradient(180deg,#07051e94 0%,#05050b00 20%,#05050b00 55%,#04040d7b 76%,#05050be0 100%); }
.video-topline { top:17px; }
.top-pill { background:#211b45aa; border-color:#a17affa0; color:#eee7ff; }
.online-dot { background:#21e6cf; box-shadow:0 0 0 3px #19e6cc26,0 0 11px #1cf6d5; }
.circle-top { background:#1c153cb8; border-color:#8772c7; box-shadow:0 0 14px #4c30a96e; }
.circle-top:hover { background:#5a3daa; color:#2ffce8; }
.audio-cta { position:absolute; top:67px; right:17px; z-index:3; max-width:calc(100% - 34px); display:flex; align-items:center; gap:9px; border:1px solid #35edc6b8; color:#d8fffa; padding:10px 13px; border-radius:22px; background:linear-gradient(110deg,#0e3b45cc,#261956d9); font-size:11px; font-weight:800; backdrop-filter:blur(14px); box-shadow:0 0 24px #29dfcf25; animation:ctaPop .35s ease-out; }
.audio-cta svg { color:#25f0db; flex-shrink:0; }
.audio-cta:hover { background:#1b5a66; }
@keyframes ctaPop { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }
.video-buffering { display:none; position:absolute; top:46%; left:50%; transform:translate(-50%,-50%); z-index:2; pointer-events:none; }
.video-buffering span { display:block; width:32px; height:32px; border-radius:50%; border:3px solid #ffffff52; border-top-color:#26f0d6; animation:turn 1s linear infinite; }
.is-buffering .video-buffering { display:block; }
@keyframes turn { to {transform:rotate(360deg)} }
.center-play { background:#201a40db; border-color:#80f2dc; box-shadow:0 0 32px #25efda45; }
.video-side-actions .side-icon { background:#201d3bb2; border:1px solid #a787ff66; box-shadow:0 0 19px #8c51f61c; }
.side-button:hover .side-icon { color:#29f6dc; border-color:#2eebd0; }
.side-button.liked .side-icon { color:#26f5d6; background:#1b354b; border-color:#2dd4c6; }
.video-details h2 { text-shadow:0 2px 17px #000; }
.video-title-link { color:inherit; }
.video-title-link:hover { color:#63ffe6; }
.channel-name { color:#a1ffed; }
.channel-dot { background:#29eed6; }
.neon-mini-sparkle { color:#9f7aff; padding-right:5px; }
.video-tags span { color:#92fff0; background:#261e45bb; border:1px solid #6e5ec260; }
.progress-zone input { accent-color:#22efd9; }
.discover-panel { background:linear-gradient(155deg,#110e25,#0b0b1a); border-color:#292045; }
.discover-title { color:#edeafa; }
.tiny-sparkle { color:#28f1dd; }
.discover-card { background: radial-gradient(circle at 25% 0%,#5636a8aa,transparent 67%),linear-gradient(155deg,#302253,#111f32); border:1px solid #654e9b; box-shadow:0 0 40px #6539b229; }
.discover-card:before { color:#36d5de18; }
.discover-card-kicker { color:#bcfff3; }
.discover-star { color:#1feeda; }
.search-wrap { background:#1c1831; border:1px solid #393052; }
.search-wrap:focus-within { border-color:#23e6d1; box-shadow:0 0 0 3px #23e6d11b; }
.guide-title svg { color:#20e4d1; }
.primary-button { background:linear-gradient(115deg,#7d4af8 0%,#4f55e9 48%,#139fbb 100%); box-shadow:0 6px 30px #6146ef46; }
.primary-button:hover:not(:disabled) { box-shadow:0 9px 32px #28dabf55; }
.outline-button:hover { border-color:#30dacc; background:#212544; }
.admin-login-page { background:radial-gradient(ellipse at 15% 12%,#2d215b,#0c0c1b 65%); }
.ambient-one { background:#8248f8; }
.ambient-two { background:#24cbd3; }
.login-card, .upload-form, .management-card { background:#15132aee; border-color:#423664; box-shadow:0 20px 65px #0806116e; }
.admin-icon { color:#3df1dd; background:#143e50; }
.login-tag { color:#50e5dc; }
.form-label input:focus,.form-label textarea:focus { border-color:#21e7d3; box-shadow:0 0 0 3px #27e7d416; }
.admin-page { background:radial-gradient(circle at 70% -10%,#201448,#0b0a19 58%); }
.admin-header { background:#130f29; border-color:#36264f; }
.admin-hero { background:radial-gradient(ellipse at 3% 6%,#6042b97a,transparent 62%),linear-gradient(110deg,#241a47,#102a3a); border-color:#6b50a2; }
.eyebrow { color:#65f8e5; }
.hero-graphic { background:linear-gradient(140deg,#643bc1,#0d8d9d); color:#9cfff1; border-color:#7e7ce9; box-shadow:0 0 35px #34cddc33; }
.heading-icon { color:#50fff0; background:#233959; }
.drop-zone { border-color:#6553a3; background:#211b3c; }
.drop-zone:hover,.drop-zone.has-file { background:#2e2553; border-color:#38dbd2; }
.drop-icon { color:#50fff0; background:#273f6a; }
.count-bubble { color:#96fff0; background:#26395b; }
.manage-item:hover { background:#1e1a38; border-radius:11px; }
.manage-thumb { background:#141b38; }
.edit-modal { background:#1d1838; border-color:#7355a2; box-shadow:0 25px 100px #000b,0 0 65px #7d45ff28; }
.share-modal .primary-button { background:linear-gradient(120deg,#8859fa,#138fbd); }
.share-link-input { background:#100d25; border-color:#6b53a6; }
.seo-upload-tip { font-size:11px; line-height:1.9; color:#7cf9ec; margin:-7px 0 -6px; padding:12px 14px; border:1px solid #31aaad55; border-radius:12px; background:#19354670; }
.initial-discovery { max-width:650px; margin:8vh auto; padding:2rem; background:#14122c; border:1px solid #58439c; border-radius:20px; }
.initial-discovery a { display:inline-block; padding:10px; color:#77f5e8; }
@media(max-width:1199px) { .feed-top-glint { display:none; } }
@media(max-width:650px) {
 .mobile-head { background:linear-gradient(90deg,#191135,#090f22); border-color:#543b86; }
 .mobile-head .brand-label { font-size:20px; }
 .brand-small .brand-mark { height:35px; width:35px; border-radius:11px; }
 .brand-small .brand-mark svg { width:28px; height:28px; }
 .feed-surface { background:#050411; }
 .feed-viewport { width:100%; height:100%; padding:0; }
 .player-frame { border:0; border-radius:0; box-shadow:none; }
 .video-topline { top:12px; }
 .audio-cta { top:57px; right:12px; font-size:10px; padding:9px 11px; }
 .video-details { right:14px; left:74px; bottom:37px; }
 .mobile-video-count { bottom:11px; color:#b9e7ef; background:#1b174fa9; border:1px solid #4f478f; padding:5px 9px; border-radius:12px; }
 .admin-header { background:#16102d; }
}
@media(prefers-reduced-motion: reduce) { .audio-cta { animation:none; } }

@media(min-width:1200px) { .feed-top-glint { left:17px; right:auto; top:11px; } }


/* CUTINO V6: Instagram-like round controls, always on right of the clip. */
.video-side-actions {
  position:absolute; z-index:12; right:12px; left:auto; bottom:116px;
  width:60px; gap:13px; display:flex; flex-direction:column; align-items:center;
  direction:rtl;
}
.video-side-actions .avatar-badge { width:45px; height:45px; border-radius:50%; margin-bottom:3px; }
.video-side-actions .side-button {
  width:58px; min-width:0; padding:0; border:0; border-radius:0; background:transparent;
  display:flex; flex-direction:column; align-items:center; gap:5px; color:#fff;
  font-size:10px; line-height:1.35; cursor:pointer;
}
.video-side-actions .side-icon {
  width:49px; height:49px; box-sizing:border-box; border-radius:50%;
  display:grid; place-items:center; color:#fff;
  background:rgba(23,16,52,.86); border:1px solid rgba(151,127,255,.72);
  box-shadow:0 7px 21px rgba(0,0,0,.48), inset 0 0 15px rgba(127,74,255,.08);
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
  transition:transform .16s ease, background .16s ease, border-color .16s ease;
}
.video-side-actions .side-button:is(:hover,:focus-visible) .side-icon { border-color:#38f7df; background:#252052; transform:scale(1.06); }
.video-side-actions .side-button.liked .side-icon { background:#572047; color:#ff78af; border-color:#ff7eb5; }
.video-side-actions .side-sound.sound-on .side-icon { color:#5ffde7; border-color:#5ffde7; }
.video-details { right:88px; left:17px; bottom:43px; }
.player-frame { position:relative; }
.speed-hold-zone {
  position:absolute; z-index:6; top:14%; bottom:25%; right:0;
  width:35%; background:transparent; cursor:default;
  touch-action:none; -webkit-user-select:none; user-select:none; -webkit-touch-callout:none;
}
.video-speed-indicator {
  position:absolute; z-index:13; pointer-events:none; top:25%; left:50%;
  transform:translate(-50%,-9px) scale(.94); opacity:0;
  padding:12px 18px; display:flex; align-items:center; gap:9px;
  white-space:nowrap; border-radius:999px; border:1px solid #67efd5;
  background:rgba(19,17,49,.88); box-shadow:0 0 32px #4df3dc42;
  backdrop-filter:blur(13px); color:#e7fffa; transition:opacity .14s ease, transform .14s ease;
}
.video-speed-indicator svg { color:#62ffdf; }
.video-speed-indicator strong { font-size:21px; }
.video-speed-indicator span { font-size:11px; }
.video-slide.is-speeding .video-speed-indicator { opacity:1; transform:translate(-50%,0) scale(1); }
.video-slide.speed-locked .video-speed-indicator { border-color:#bc84ff; background:#332056e8; }
.video-slide.speed-locked .video-speed-indicator svg { color:#b8a2ff; }
@media(max-width:650px) {
  .video-side-actions { right:9px; left:auto; bottom:max(101px,env(safe-area-inset-bottom) + 89px); gap:11px; width:54px; }
  .video-side-actions .side-button { width:54px; font-size:9px; }
  .video-side-actions .side-icon { width:44px; height:44px; }
  .video-side-actions .avatar-badge { width:42px; height:42px; }
  .video-details { right:76px; left:14px; bottom:max(38px,env(safe-area-inset-bottom) + 26px); }
  .video-speed-indicator { font-size:11px; padding:10px 12px; }
}
@media(max-width:650px) and (max-height:650px) {
  .video-side-actions { gap:5px; bottom:70px; }
  .video-side-actions .side-icon { width:39px; height:39px; }
  .video-side-actions .avatar-badge { width:38px; height:38px; }
}
@media(prefers-reduced-motion:reduce) { .video-speed-indicator { transition:none; } }


/* Cutino SEO Studio V7 */
.seo-settings-card {
  margin:26px 0 34px; padding:25px; border:1px solid rgba(122,104,218,.46);
  border-radius:22px; background:linear-gradient(132deg,rgba(34,25,77,.96),rgba(11,14,40,.96));
  box-shadow:0 12px 38px rgba(0,0,0,.15);
}
.seo-settings-card .card-heading { margin-bottom:19px; }
.seo-settings-card form { display:grid; gap:13px; }
.seo-settings-card textarea, .video-seo-fields textarea { resize:vertical; }
.video-seo-fields { padding:15px; margin:10px 0; background:rgba(52,37,103,.24);border:1px solid rgba(130,103,228,.36);border-radius:14px; }
.video-seo-fields summary { font-weight:750; color:#aefdf0; cursor:pointer; margin-bottom:11px; }
.video-seo-fields .form-label { display:block; margin:10px 0; }
.seo-hint {color:#b5b5d6;font-size:12px;line-height:1.8;margin:8px 0 12px;}
.manage-seo-rating {color:#66f5df!important;}
.site-topic-line {font-size:11px;line-height:1.8;color:#c0b4ed;}
.watch-extra-caption {opacity:.84;font-size:.95em;}
@media(max-width:680px) {.seo-settings-card{padding:16px;margin:20px 0}.video-seo-fields{padding:10px}}
