:root{
  --page-bg:#3f3f3f;
  --surface-bg:#f3f3f3;
  --surface-2:#fff;
  --surface-3:#e9e9e9;
  --pill-bg:#e2e2e2;
  --pill-bg-2:#dcdcdc;
  --text-main:#252525;
  --text-muted:#6d6d6d;
  --text-soft:#8d8d8d;
  --icon-main:#2f2f2f;
  --icon-muted:#6c6c6c;
  --border:#d6d6d6;
  --accent:#e34449;
  --accent-dark:#cd3439;
  --accent-green:#22c78a;
  --player-icon:#f5f5f5;
  --player-shadow:rgba(0,0,0,.48);
  --player-circle:rgba(0,0,0,.45);
  --player-bottom-grad:linear-gradient(0deg,rgba(0,0,0,.8) 0%,rgba(0,0,0,.25) 55%,rgba(0,0,0,0) 100%);
  --tab-active:#e34449;
  --tab-line:#d0d0d0;
  --card-bg:#f3f3f3;
  --modal-bg:#fff;
  --modal-text:#252525;
  --modal-muted:#6d6d6d;
  --shadow-main:0 0 15px rgba(0,0,0,.35);
}

html[data-theme="dark"]{
  --page-bg:#3f3f3f;
  --surface-bg:#191919;
  --surface-2:#191919;
  --surface-3:#242424;
  --pill-bg:#2b2b2b;
  --pill-bg-2:#2d2d2d;
  --text-main:#f1f1f1;
  --text-muted:#a7a7a7;
  --text-soft:#8d8d8d;
  --icon-main:#f3f3f3;
  --icon-muted:#b1b1b1;
  --border:#303030;
  --accent:#e34449;
  --accent-dark:#cd3439;
  --accent-green:#22c78a;
  --player-icon:#f5f5f5;
  --player-shadow:rgba(0,0,0,.55);
  --player-circle:rgba(0,0,0,.52);
  --player-bottom-grad:linear-gradient(0deg,rgba(0,0,0,.88) 0%,rgba(0,0,0,.35) 55%,rgba(0,0,0,0) 100%);
  --tab-active:#e34449;
  --tab-line:#343434;
  --card-bg:#191919;
  --modal-bg:#1f1f1f;
  --modal-text:#f1f1f1;
  --modal-muted:#a7a7a7;
  --shadow-main:0 0 15px rgba(0,0,0,.5);
}

*{
  box-sizing:border-box;
}

html,
body{
  margin:0;
  padding:0;
  background:var(--page-bg);
  font-family:Arial,Helvetica,sans-serif;
  color:var(--text-main);
  overflow-x:hidden;
}

body{
  display:flex;
  justify-content:center;
  align-items:flex-start;
  padding:0 12px;
}

.fade-in-wrapper{
  animation:fadeInPage .35s ease-out forwards;
  opacity:0;
  width:100%;
  max-width:420px;
  min-height:100vh;
  margin:0 auto;
  background:var(--surface-bg);
  box-shadow:var(--shadow-main);
  display:flex;
  flex-direction:column;
}

@keyframes fadeInPage{
  to{opacity:1}
}

/* ===== CLONE MODE — ПРИГЛУШЕН ===== */
html.clone-mode,
.clone-mode body{
  background:var(--page-bg)!important;
  margin:0!important;
  padding:0!important;
  overflow-x:hidden!important;
  width:auto!important;
  height:auto!important;
}

.clone-mode .fade-in-wrapper{
  width:100%!important;
  max-width:420px!important;
  min-height:100vh!important;
  margin:0 auto!important;
  background:var(--surface-bg)!important;
  box-shadow:var(--shadow-main)!important;
  display:flex!important;
  flex-direction:column!important;
}

.clone-mode .vp-mishura{
  display:block!important;
}

.clone-mode .vp-fake-player{
  position:relative!important;
  inset:auto!important;
  width:100%!important;
  height:auto!important;
  max-width:none!important;
  aspect-ratio:16/9!important;
  background:#000!important;
  z-index:auto!important;
}

.clone-mode .vp-frame{
  object-fit:cover!important;
  width:100%!important;
  height:100%!important;
  background:#000!important;
}

.clone-mode .vp-player-bottom{
  padding-bottom:10px!important;
}

.clone-mode .vp-player-top-right{
  top:12px!important;
}

.clone-mode .vp-clone-back-btn{
  display:none!important;
}

.clone-mode .vp-center-controls .vp-center-btn,
.clone-mode .vp-center-controls .vp-play-btn{
  transform:none!important;
}

.clone-mode .vp-play-btn svg{
  animation:none!important;
}

.vp-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 14px 6px;
  background:var(--surface-bg);
}

.vp-header-left{
  display:flex;
  align-items:center;
  min-width:0;
  gap:8px;
  flex:1;
}

.vp-logo-box{
  display:inline-flex;
  align-items:center;
  flex-shrink:0;
  line-height:0;
}

.vp-logo-box img{
  height:28px;
  width:auto;
  display:block;
}

.vp-region-sex{
  display:flex;
  align-items:flex-start;
  gap:8px;
  min-width:0;
  margin-top:-2px;
}

.vp-region{
  font-size:12px;
  line-height:1;
  color:var(--text-muted);
  margin-top:2px;
  user-select:none;
}

.vp-sex-icons{
  display:inline-flex;
  align-items:flex-end;
  gap:2px;
  line-height:0;
  position:relative;
  top:1px;
}

.vp-sex-icons svg{
  display:block;
  flex-shrink:0;
  fill:currentColor;
}

.vp-sex-icons .i-female{
  color:#E34449;
  width:17px;
  height:17px;
}

.vp-sex-icons .i-straight{
  color:#2D87D4;
  width:17px;
  height:17px;
  margin-left:-2px;
}

.vp-region-arrow{
  width:13px;
  height:13px;
  color:var(--icon-main);
  margin-top:3px;
  flex-shrink:0;
}

.vp-header-right{
  display:flex;
  align-items:center;
  gap:16px;
  flex-shrink:0;
}

.vp-header-icon{
  width:24px;
  height:24px;
  color:var(--icon-main);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  position:relative;
  cursor:pointer;
}

.vp-header-icon svg{
  width:100%;
  height:100%;
  display:block;
  fill:currentColor;
}

.vp-profile-wrap{
  position:relative;
  width:28px;
  height:28px;
  color:var(--icon-main);
  cursor:pointer;
}

.vp-profile-wrap svg{
  width:100%;
  height:100%;
  display:block;
  fill:currentColor;
}

.vp-notif-badge{
  position:absolute;
  top:-8px;
  right:-8px;
  min-width:28px;
  height:28px;
  padding:0 8px;
  border-radius:999px;
  background:var(--accent);
  color:#fff;
  font-size:18px;
  font-weight:700;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:1;
  box-shadow:0 2px 4px rgba(0,0,0,.18);
}

.vp-title-section{
  padding:8px 14px 6px;
  background:var(--surface-bg);
}

.vp-title{
  margin:0 0 10px;
  font-size:21px;
  line-height:1.28;
  font-weight:700;
  color:var(--text-main);
  letter-spacing:-.1px;
}

.vp-tags-row{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-bottom:6px;
}

.vp-pill{
  min-height:24px;
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:0 10px;
  border-radius:6px;
  background:var(--pill-bg);
  color:var(--text-main);
  font-size:12px;
  line-height:1;
  white-space:nowrap;
}

.vp-pill svg{
  width:14px;
  height:14px;
  flex-shrink:0;
  fill:currentColor;
}

.vp-pill.icon-only{
  width:34px;
  justify-content:center;
  padding:0;
}

.vp-pill.red{
  background:var(--accent);
  color:#fff;
  font-weight:700;
}

.vp-pill.red svg{
  fill:currentColor;
}

.vp-pill .creator-play{
  width:18px;
  height:18px;
  border-radius:50%;
  background:var(--accent-green);
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}

.vp-pill .creator-play::before{
  content:"";
  width:0;
  height:0;
  border-top:4px solid transparent;
  border-bottom:4px solid transparent;
  border-left:6px solid #fff;
  margin-left:1px;
}

.vp-fake-player{
  width:100%;
  aspect-ratio:16/9;
  position:relative;
  overflow:hidden;
  background:#000;
  cursor:pointer;
}

.vp-frame{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  opacity:0;
  transition:opacity .25s ease;
  background:#000;
}

.vp-frame.is-ready{
  opacity:1;
}

.hidden-cam-effect{
  filter:grayscale(100%) contrast(118%) brightness(.86)!important;
}

.vp-clone-back-btn{
  display:none;
  position:absolute;
  left:14px;
  top:14px;
  width:38px;
  height:38px;
  border-radius:999px;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,.4);
  z-index:30;
  color:#fff;
  cursor:pointer;
  backdrop-filter:blur(2px);
}

.vp-clone-back-btn svg{
  width:22px;
  height:22px;
  fill:currentColor;
}

.vp-player-top-right{
  position:absolute;
  top:12px;
  right:12px;
  z-index:20;
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--player-icon);
}

.vp-sound-btn{
  width:28px;
  height:28px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:var(--player-icon);
  filter:drop-shadow(1px 1px 2px rgba(0,0,0,.5));
}

.vp-sound-btn svg{
  width:24px;
  height:24px;
  display:block;
  fill:currentColor;
}

.vp-center-controls{
  position:absolute;
  inset:0;
  z-index:15;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:22px;
  pointer-events:none;
}

.vp-center-controls > *{
  pointer-events:auto;
}

.vp-center-btn,
.vp-play-btn{
  border:0;
  padding:0;
  margin:0;
  cursor:pointer;
  border-radius:999px;
  background:var(--player-circle);
  color:var(--player-icon);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 3px 8px rgba(0,0,0,.22);
  backdrop-filter:blur(2px);
}

.vp-center-btn{
  width:58px;
  height:58px;
}

.vp-play-btn{
  width:72px;
  height:72px;
}

.vp-center-btn svg,
.vp-play-btn svg{
  display:block;
  fill:currentColor;
}

.vp-center-btn svg{
  width:22px;
  height:22px;
}

.vp-play-btn svg{
  width:26px;
  height:26px;
}

.vp-player-bottom{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  z-index:18;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  padding:10px 10px 10px 12px;
  background:var(--player-bottom-grad);
  color:var(--player-icon);
}

.vp-player-meta-left,
.vp-player-meta-right{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}

.vp-player-stat{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--player-icon);
  font-size:16px;
  font-weight:700;
  text-shadow:1px 1px 2px rgba(0,0,0,.45);
  white-space:nowrap;
}

.vp-player-stat svg{
  width:24px;
  height:24px;
  fill:currentColor;
  flex-shrink:0;
}

.vp-player-meta-right{
  gap:10px;
  font-size:0;
}

.vp-mini-cycle{
  width:20px;
  height:20px;
  border-radius:999px;
  border:1.5px solid rgba(255,255,255,.78);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:var(--player-icon);
  font-size:13px;
  line-height:1;
  font-weight:700;
  opacity:.95;
  flex-shrink:0;
}

.vp-player-icon-btn{
  width:30px;
  height:30px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:var(--player-icon);
  position:relative;
  flex-shrink:0;
  filter:drop-shadow(1px 1px 2px rgba(0,0,0,.45));
}

.vp-player-icon-btn svg{
  width:28px;
  height:28px;
  display:block;
  fill:currentColor;
}

.vp-settings-wrap{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:6px;
}

.vp-player-badge-4k{
  position:absolute;
  top:-2px;
  right:-4px;
  min-width:18px;
  height:16px;
  border-radius:3px;
  padding:0 3px;
  background:var(--accent);
  color:#fff;
  font-size:11px;
  font-weight:700;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:1;
}

.vp-auto-label{
  font-size:16px;
  color:var(--player-icon);
  font-weight:700;
  text-shadow:1px 1px 2px rgba(0,0,0,.4);
  white-space:nowrap;
}

.vp-action-bar{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:2px;
  padding:10px 6px;
  background:var(--surface-bg);
}

.vp-action-item{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  gap:5px;
  color:var(--text-main);
  text-align:center;
  min-width:0;
  position:relative;
  cursor:pointer;
  user-select:none;
}

.vp-action-icon{
  width:30px;
  height:30px;
  color:var(--icon-main);
  position:relative;
}

.vp-action-icon svg{
  width:100%;
  height:100%;
  display:block;
  fill:currentColor;
}

.vp-action-item.dislike .vp-action-icon{
  transform:rotate(180deg);
}

.vp-action-value,
.vp-action-label{
  font-size:10px;
  line-height:1.05;
  color:var(--text-main);
  white-space:normal;
  text-align:center;
}

.vp-action-value{
  font-size:12px;
}

.vp-comments-badge{
  position:absolute;
  top:-6px;
  right:-6px;
  min-width:22px;
  height:22px;
  padding:0 6px;
  border-radius:999px;
  background:var(--accent);
  color:#fff;
  font-size:10px;
  font-weight:700;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:1;
  box-shadow:0 2px 4px rgba(0,0,0,.15);
}

.vp-tabs{
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:6px;
  padding:8px 14px 0;
  background:var(--surface-bg);
  border-bottom:1px solid var(--tab-line);
}

.vp-tab{
  position:relative;
  padding:4px 4px 10px;
  font-size:13px;
  line-height:1.15;
  font-weight:700;
  color:var(--text-main);
  cursor:pointer;
  white-space:nowrap;
  text-align:left;
}

.vp-tab.active{
  color:var(--tab-active);
}

.vp-tab.active::after{
  content:"";
  position:absolute;
  left:0;
  right:20%;
  bottom:-1px;
  height:4px;
  background:var(--tab-active);
}

.vp-related-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px 4px;
  padding:0 14px 20px;
  background:var(--surface-bg);
}

.vp-card{
  display:flex;
  flex-direction:column;
  min-width:0;
  background:transparent;
  cursor:pointer;
}

.vp-thumb{
  position:relative;
  width:100%;
  aspect-ratio:16/9;
  overflow:hidden;
  background:#d8d8d8;
  margin-bottom:8px;
}

.vp-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.vp-thumb-badge{
  position:absolute;
  bottom:7px;
  right:7px;
  display:inline-flex;
  align-items:center;
  gap:4px;
  font-size:11px;
  line-height:1;
  font-weight:700;
  color:#fff;
  background:rgba(90,90,90,.82);
  padding:4px 6px;
  border-radius:3px;
}

.vp-thumb-badge .k4{
  font-size:16px;
  font-weight:700;
}

.vp-card-title-row{
  display:flex;
  align-items:flex-start;
  gap:8px;
  min-width:0;
}

.vp-card-title{
  flex:1;
  min-width:0;
  font-size:11px;
  line-height:1.16;
  color:var(--text-main);
  margin:0;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.vp-card-menu{
  width:20px;
  height:20px;
  color:var(--icon-muted);
  flex-shrink:0;
  margin-top:1px;
}

.vp-card-menu svg{
  width:100%;
  height:100%;
  display:block;
  fill:currentColor;
}

.vp-card-meta{
  display:flex;
  align-items:center;
  gap:6px;
  color:var(--text-muted);
  font-size:11px;
  line-height:1.2;
  margin-top:4px;
  min-width:0;
  flex-wrap:wrap;
}

.vp-card-avatar{
  width:22px;
  height:22px;
  border-radius:50%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:10px;
  font-weight:700;
  color:#fff;
  background:linear-gradient(135deg,#f090b0 0%,#b14cdc 100%);
  overflow:hidden;
  flex-shrink:0;
}

.vp-card-avatar::before{
  content:"LC";
  letter-spacing:.2px;
}

.vp-card-channel,
.vp-card-views{
  white-space:nowrap;
}

.vp-card-sep{
  color:var(--text-soft);
}

.vp-modal{
  position:fixed;
  inset:0;
  z-index:99999;
  display:none;
  align-items:center;
  justify-content:center;
}

.vp-modal-overlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.72);
  backdrop-filter:blur(4px);
}

.vp-modal-content{
  position:relative;
  z-index:100000;
  width:86%;
  max-width:310px;
  background:var(--modal-bg);
  border:1px solid var(--border);
  border-radius:16px;
  padding:24px;
  text-align:center;
  color:var(--modal-text);
  box-shadow:0 10px 40px rgba(0,0,0,.35);
}

.vp-modal-title{
  font-size:21px;
  font-weight:700;
  margin-bottom:10px;
}

.vp-modal-desc{
  font-size:15px;
  line-height:1.45;
  color:var(--modal-muted);
  margin-bottom:18px;
}

.vp-modal-actions{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.vp-btn{
  border:none;
  outline:none;
  padding:12px;
  border-radius:10px;
  font-size:16px;
  font-weight:700;
  cursor:pointer;
  width:100%;
}

.vp-btn-primary{
  background:var(--accent);
  color:#fff;
}

.vp-btn-secondary{
  background:var(--pill-bg);
  color:var(--text-main);
}

@media (max-width:430px){
  .vp-title{font-size:21px}
  .vp-tab{font-size:13px}
  .vp-card-title{font-size:11px}
  .vp-card-meta{font-size:11px}
}
