:root {
  --bg: #101010;
  --bg-overlay: rgba(16, 16, 16, 0.92);
  --bg-hex: #242424;
  --bg-soft: #1a1a1af4;
  --card: #131313f4;
  --line: #181818;
  --text: #d3d3d3;
  --muted: #a7a7a7;
  --primary: #f4002d;
  --primary-rgb: 244, 0, 45;
  --primary-2: #3f3f3f;
  --border: #595959;
  --shadow: 0 10px 30px rgba(0,0,0,.45);
  --radius: 18px;
  --btn-text: #fff;
  --input-border: #242424;
  --input-icon: #c7c7c7;
  --gradient-bg: radial-gradient(circle at 20% 80%, #3e3e3e 0%, transparent 50%), radial-gradient(circle at 80% 20%, #282828 0%, transparent 50%), radial-gradient(circle at 40% 40%, #3a3a3a 0%, transparent 50%);
  --watched-badge-bg: #565656e6;
  --watched-overlay-bg: #14141480;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
}


::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--card);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-2);
  background-clip: content-box;
}

::-webkit-scrollbar-corner {
  background: transparent;
}


html {
  scrollbar-width: thin;
  scrollbar-color: var(--card) transparent;
}


.video-card, .video-thumb, .video-info {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}


input, textarea, [contenteditable] {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}


@media print {
  body { display: none !important; }
}


@media (max-device-width: 1px) {
  body::before {
    content: "devtools-open";
    display: none;
  }
}

@font-face{font-family:Inter;src:local("Inter"),local("Inter Variable")}
::selection{background:var(--primary);color:#000}
::-moz-selection{background:var(--primary);color:#000}
html,body{height:100%}
body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;position:relative;overflow-x:hidden;opacity:1!important;visibility:visible!important;transition:opacity .12s ease-out}

.admin-topbar{position:fixed;top:0;left:0;right:0;z-index:2147483647;background:var(--bg);border-bottom:1px solid var(--line);padding:6px 16px;display:flex;align-items:center;justify-content:flex-end}
.admin-topbar-link{display:inline-flex;align-items:center;gap:6px;color:var(--muted);text-decoration:none;font-size:0.8rem;font-weight:500;padding:4px 10px;border-radius:6px;transition:all 0.2s ease}
.admin-topbar-link:hover{color:var(--text);background:var(--bg-soft)}
.admin-topbar-link svg{flex-shrink:0}
body:has(.admin-topbar){padding-top:36px}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: -50%;
  width: 200%;
  height: 60vh;
  background: var(--gradient-bg);
  opacity: 0.03;
  z-index: -1;
  animation: blobFloat 20s ease-in-out infinite;
  filter: blur(40px);
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: -50%;
  width: 200%;
  height: 50vh;
  background: var(--gradient-bg);
  opacity: 0.02;
  z-index: -1;
  animation: blobFloat 25s ease-in-out infinite reverse;
  filter: blur(60px);
}

@keyframes blobFloat {
  0%, 100% {
    transform: translate(0px, 0px) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

a{color:inherit;text-decoration:none}
.container{max-width:1400px;margin:0 auto;padding:20px;position:relative;z-index:10}
@media(max-width:768px){.container{padding:8px}}
.header{display:flex;align-items:center;justify-content:space-between;padding:16px 0;gap:20px;flex-wrap:wrap;position:relative;z-index:100}
@media(max-width:768px){.header{padding:3px 0;gap:8px}}
.header-user{display:flex;align-items:center;gap:6px;position:relative;z-index:100}

.user-profile-container{position:relative;z-index:200}
.user-profile{display:flex;align-items:center;gap:10px;padding:8px 12px;background:var(--card);border:1px solid var(--input-border);border-radius:12px;cursor:pointer;transition:all 0.2s ease}
.user-profile:hover{border-color:var(--primary);background:var(--bg-soft)}
.user-avatar{width:36px;height:36px;border-radius:50%;background:var(--primary);color:var(--btn-text);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:1rem;flex-shrink:0}
.user-name{font-weight:600;color:var(--text);font-size:0.95rem}
.user-dropdown-arrow{width:16px;height:16px;color:var(--muted);transition:transform 0.2s ease;margin-left:4px}
.user-profile-container.active .user-dropdown-arrow{transform:rotate(180deg)}
.user-dropdown{position:absolute;top:calc(100% + 12px);right:0;background:var(--card);border:1px solid var(--line);border-radius:16px;min-width:220px;box-shadow:0 20px 40px rgba(0,0,0,0.5);opacity:0;visibility:hidden;transform:translateY(-10px);transition:all 0.3s cubic-bezier(0.4, 0, 0.2, 1);z-index:1000;padding:8px;backdrop-filter:blur(10px)}
.user-profile-container.active .user-dropdown{opacity:1;visibility:visible;transform:translateY(0)}
.user-dropdown::before{content:'';position:absolute;top:-6px;right:20px;width:12px;height:12px;background:var(--card);border-left:1px solid var(--line);border-top:1px solid var(--line);transform:rotate(45deg)}
.user-dropdown-item{display:flex;align-items:center;gap:12px;padding:11px 16px;color:var(--text);text-decoration:none;transition:all 0.2s ease;border-radius:12px;margin:0;font-weight:500;font-size:0.95rem;position:relative;overflow:hidden}
.user-dropdown-item::before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,var(--primary),var(--primary-2));opacity:0;transition:opacity 0.2s ease}
.user-dropdown-item:hover{background:var(--bg-soft);color:var(--primary);transform:translateX(4px)}
.user-dropdown-item:hover::before{opacity:0.05}
.user-dropdown-item svg{width:20px;height:20px;flex-shrink:0;z-index:1}
.user-dropdown-item span{z-index:1}
.user-dropdown-divider{height:1px;background:var(--line);margin:2px 8px}
.user-dropdown-toggle{display:flex;align-items:center;justify-content:space-between;padding:9px 16px;gap:12px;cursor:pointer;border-radius:12px;transition:background 0.2s}
.user-dropdown-toggle:hover{background:var(--bg-soft)}
.user-dropdown-toggle-info{display:flex;align-items:center;gap:10px;color:var(--text);font-size:0.95rem;font-weight:500}
.user-dropdown-toggle-info svg{width:18px;height:18px;flex-shrink:0}
.user-dropdown-toggle-right{display:flex;align-items:center;gap:8px;flex-shrink:0}
.user-dropdown-toggle-status{font-size:0.8rem;color:var(--muted);font-weight:500;white-space:nowrap}
.dropdown-toggle-switch{position:relative;display:inline-block;width:36px;height:20px;flex-shrink:0}
.dropdown-toggle-switch input{opacity:0;width:0;height:0}
.dropdown-toggle-slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background:var(--line);transition:0.25s;border-radius:20px}
.dropdown-toggle-slider:before{position:absolute;content:"";height:14px;width:14px;left:3px;bottom:3px;background:var(--muted);transition:0.25s;border-radius:50%}
.dropdown-toggle-switch input:checked + .dropdown-toggle-slider{background:var(--text)}
.dropdown-toggle-switch input:checked + .dropdown-toggle-slider:before{transform:translateX(16px);background:var(--bg)}
.dropdown-labeled-toggle{position:relative;display:inline-block;width:68px;height:24px;flex-shrink:0;cursor:pointer}
.dropdown-labeled-toggle input{opacity:0;width:0;height:0}
.dropdown-labeled-slider{position:absolute;top:0;left:0;right:0;bottom:0;background:var(--bg-soft);border:1px solid var(--line);border-radius:12px;transition:0.3s;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:0 8px}
.toggle-label-off,.toggle-label-on{position:absolute;font-size:0.65rem;font-weight:600;transition:0.3s;letter-spacing:0}
.toggle-label-off{opacity:1;color:var(--muted)}
.toggle-label-on{opacity:0;color:var(--text)}
.dropdown-labeled-toggle input:checked ~ .dropdown-labeled-slider{background:var(--text);border-color:var(--text)}
.dropdown-labeled-toggle input:checked ~ .dropdown-labeled-slider .toggle-label-off{opacity:0}
.dropdown-labeled-toggle input:checked ~ .dropdown-labeled-slider .toggle-label-on{opacity:1;color:var(--bg)}

.hamburger-menu-btn{display:none;width:40px;height:40px;background:transparent;border:none;flex-direction:column;align-items:center;justify-content:center;gap:5px;cursor:pointer;transition:all 0.2s ease;position:relative;z-index:101;padding:0;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.hamburger-line{width:22px;height:2px;background:var(--text);border-radius:2px;transition:all 0.3s ease}
.hamburger-menu-btn.active{z-index:1001}
.hamburger-menu-btn.active .hamburger-line:nth-child(1){transform:translateY(7px) rotate(45deg)}
.hamburger-menu-btn.active .hamburger-line:nth-child(2){opacity:0}
.hamburger-menu-btn.active .hamburger-line:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
.support-unread-badge{position:absolute;top:2px;right:2px;min-width:18px;height:18px;background:var(--primary);color:#fff;font-size:11px;font-weight:600;border-radius:50%;display:flex;align-items:center;justify-content:center;padding:0 4px}
.support-menu-badge{position:absolute;right:12px;top:50%;transform:translateY(-50%);min-width:20px;height:20px;background:var(--primary);color:#fff;font-size:11px;font-weight:600;border-radius:50%;display:flex;align-items:center;justify-content:center;padding:0 5px}

.side-menu-close{position:absolute;top:14px;right:14px;width:32px;height:32px;background:var(--bg-soft);border:1px solid var(--line);border-radius:50%;color:var(--text);cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:19px;line-height:1;transition:all 0.2s cubic-bezier(0.4, 0, 0.2, 1);padding:0}
.side-menu-close:hover{background:var(--bg);border-color:var(--input-border);color:var(--primary);transform:rotate(90deg) scale(1.05)}

.side-menu-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:var(--bg);opacity:0;visibility:hidden;transition:all 0.3s ease;z-index:2147483649;pointer-events:none}
.side-menu-overlay.active{opacity:0.95;visibility:visible;pointer-events:auto}

.side-menu{position:fixed;top:0;right:-100%;width:100%;max-width:260px;height:100%;background:var(--card);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border-left:1px solid var(--line);z-index:2147483650;display:flex;flex-direction:column;transition:right 0.35s cubic-bezier(0.4, 0, 0.2, 1);box-shadow:-12px 0 48px rgba(0,0,0,0.25)}
.side-menu.active{right:0}

.side-menu-header{padding:18px 16px 14px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:12px;background:var(--bg-soft);position:relative}
.side-menu-avatar{width:46px;height:46px;border-radius:50%;background:var(--primary);color:var(--btn-text);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:1.15rem;flex-shrink:0;box-shadow:0 2px 8px rgba(0,0,0,0.12)}
.side-menu-user-info{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.side-menu-username{font-weight:600;color:var(--text);font-size:0.95rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:-0.01em}
.side-menu-status{font-size:0.78rem;color:var(--muted);white-space:nowrap;font-weight:500}
.side-menu-status.visitor{color:var(--primary);font-weight:600}

.side-menu-content{display:flex;flex-direction:column;height:100%;overflow:hidden;padding:10px 12px}
.side-menu-section{margin-bottom:4px}
.side-menu-section:last-child{margin-bottom:0}
.side-menu-section-title{display:none;height:0;margin:0;padding:0}
.side-menu-settings-section{border-bottom:none;padding-bottom:0;margin-bottom:0}
.side-menu-settings-section + .side-menu-section{margin-top:0}
.side-menu-toggle-item{display:flex;align-items:center;justify-content:space-between;padding:9px 10px;border-radius:10px;cursor:pointer;transition:background 0.2s;margin-bottom:2px}
.side-menu-toggle-item:hover{background:var(--bg-soft)}
.side-menu-toggle-info{display:flex;align-items:center;gap:10px;color:var(--text);font-size:0.92rem;font-weight:500}
.side-menu-toggle-info svg{width:19px;height:19px;flex-shrink:0;stroke-width:2;opacity:0.8}
.side-menu-toggle-right{display:flex;align-items:center;gap:8px;flex-shrink:0}
.side-menu-toggle-status{font-size:0.75rem;color:var(--muted);font-weight:500;white-space:nowrap}
.side-menu-toggle{position:relative;display:inline-block;width:40px;height:22px;flex-shrink:0}
.side-menu-toggle input{opacity:0;width:0;height:0}
.side-menu-toggle-slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background:var(--line);transition:0.3s;border-radius:22px}
.side-menu-toggle-slider:before{position:absolute;content:"";height:16px;width:16px;left:3px;bottom:3px;background:var(--muted);transition:0.3s;border-radius:50%}
.side-menu-toggle input:checked + .side-menu-toggle-slider{background:var(--text)}
.side-menu-toggle input:checked + .side-menu-toggle-slider:before{transform:translateX(18px);background:var(--bg)}
.side-menu-labeled-toggle{position:relative;display:inline-block;width:68px;height:22px;flex-shrink:0;cursor:pointer}
.side-menu-labeled-toggle input{opacity:0;width:0;height:0}
.side-menu-labeled-slider{position:absolute;top:0;left:0;right:0;bottom:0;background:var(--bg-soft);border:1px solid var(--line);border-radius:11px;transition:0.3s;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:0 8px}
.side-menu-labeled-slider .toggle-label-off,.side-menu-labeled-slider .toggle-label-on{position:absolute;font-size:0.6rem;font-weight:600;transition:0.3s;letter-spacing:0}
.side-menu-labeled-slider .toggle-label-off{opacity:1;color:var(--muted)}
.side-menu-labeled-slider .toggle-label-on{opacity:0;color:var(--text)}
.side-menu-labeled-toggle input:checked ~ .side-menu-labeled-slider{background:var(--text);border-color:var(--text)}
.side-menu-labeled-toggle input:checked ~ .side-menu-labeled-slider .toggle-label-off{opacity:0}
.side-menu-labeled-toggle input:checked ~ .side-menu-labeled-slider .toggle-label-on{opacity:1;color:var(--bg)}
.short-video-dialog-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,0.85);z-index:2147483651;display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity 0.2s ease}
.short-video-dialog-overlay.show{opacity:1}
.short-video-dialog{background:var(--card);border-radius:16px;padding:32px;max-width:420px;width:90%;text-align:center;transform:scale(0.9);transition:transform 0.2s ease}
.short-video-dialog-overlay.show .short-video-dialog{transform:scale(1)}
.short-video-dialog-icon{width:64px;height:64px;margin:0 auto 20px;background:var(--bg-soft);border-radius:50%;display:flex;align-items:center;justify-content:center}
.short-video-dialog-icon svg{width:32px;height:32px;stroke:var(--muted)}
.short-video-dialog-icon.vpn-warning svg{stroke:var(--primary)}
.short-video-dialog-title{font-size:1.2rem;font-weight:600;color:var(--text);margin-bottom:12px}
.short-video-dialog-message{font-size:0.95rem;color:var(--muted);line-height:1.6;margin-bottom:24px}
.short-video-dialog-message strong{color:var(--text);font-weight:600}
.short-video-dialog-btn{padding:12px 32px;background:var(--bg-soft);color:var(--text);border:1px solid var(--line);border-radius:10px;font-size:0.95rem;font-weight:600;cursor:pointer;transition:all 0.2s}
.short-video-dialog-btn:hover{background:var(--line)}
.side-menu-item{display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:10px;color:var(--text);text-decoration:none;transition:all 0.2s cubic-bezier(0.4, 0, 0.2, 1);font-weight:500;font-size:0.92rem;margin-bottom:2px;letter-spacing:-0.01em}
.side-menu-item:last-child{margin-bottom:0}
.side-menu-item:hover{background:var(--bg-soft);color:var(--primary);transform:translateX(-2px)}
.side-menu-item:active{transform:translateX(-2px) scale(0.98)}
.side-menu-item svg{width:19px;height:19px;flex-shrink:0;opacity:0.8;stroke-width:2}
.side-menu-item.danger{color:var(--primary);font-weight:600}
.side-menu-item.danger:hover{background:rgba(255,59,48,0.1)}

.side-menu-categories-section{flex:1;overflow:hidden;display:flex;flex-direction:column;min-height:0;margin-top:4px;padding-top:6px;border-top:1px solid var(--line)}
.side-menu-categories-title{display:block!important;height:auto!important;font-size:0.72rem;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:0.05em;margin:0 0 8px 10px!important;padding:0!important}
.side-menu-categories-scroll{overflow-y:auto;overflow-x:hidden;padding-right:4px;scrollbar-width:thin;scrollbar-color:var(--line) transparent}
.side-menu-categories-scroll::-webkit-scrollbar{width:5px}
.side-menu-categories-scroll::-webkit-scrollbar-track{background:transparent}
.side-menu-categories-scroll::-webkit-scrollbar-thumb{background:var(--line);border-radius:10px}
.side-menu-categories-scroll::-webkit-scrollbar-thumb:hover{background:var(--input-border)}

.side-menu-category-badge{display:block;padding:4px 10px;margin:0;color:var(--text);text-decoration:none;font-size:0.8rem;font-weight:500;transition:all 0.2s cubic-bezier(0.4, 0, 0.2, 1);letter-spacing:-0.01em;text-align:left}
.side-menu-category-badge:hover{color:var(--primary)}
.side-menu-category-badge:active{transform:scale(0.98)}

.side-menu-footer-section{margin-top:10px;border-top:1px solid var(--line);padding-top:10px}
.side-menu-logout-section{margin-top:auto;padding-top:8px;border-top:1px solid var(--line)}

.side-menu-category-popup-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,0.7);z-index:2147483651;justify-content:center;align-items:center;padding:20px;backdrop-filter:blur(4px)}
.side-menu-category-popup-overlay.active{display:flex}
.side-menu-category-popup{background:var(--card);border:1px solid var(--line);border-radius:16px;width:100%;max-width:340px;max-height:70vh;overflow:hidden;display:flex;flex-direction:column;animation:sideMenuPopupIn 0.2s ease}
@keyframes sideMenuPopupIn{from{opacity:0;transform:scale(0.95)}to{opacity:1;transform:scale(1)}}
.side-menu-category-popup-header{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid var(--line);font-weight:600;font-size:0.95rem;color:var(--text)}
.side-menu-category-popup-close{background:none;border:none;font-size:1.5rem;color:var(--muted);cursor:pointer;padding:0;line-height:1;transition:color 0.2s}
.side-menu-category-popup-close:hover{color:var(--text)}
.side-menu-category-popup-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:6px;padding:12px;overflow-y:auto}
.side-menu-category-popup-item{display:flex;align-items:center;justify-content:center;padding:10px 8px;background:var(--bg-soft);border-radius:8px;color:var(--text);text-decoration:none;font-size:0.8rem;font-weight:500;text-align:center;transition:all 0.2s}
.side-menu-category-popup-item:hover{background:var(--primary);color:var(--btn-text)}
.side-menu-category-popup-item:active{transform:scale(0.97)}

.side-menu-footer{padding:12px 16px;border-top:1px solid var(--line);background:var(--bg-soft)}
.side-menu-version{text-align:center;font-size:0.72rem;color:var(--muted);opacity:0.6;font-weight:500}

.header-btn{padding:8px 16px;border-radius:12px;font-weight:600;font-size:0.9rem;transition:all 0.2s ease;text-decoration:none;border:none;cursor:pointer;white-space:nowrap}
.header-btn-login{background:var(--bg-soft);border:1px solid #4a4848;color:var(--muted)}
.header-btn-login:hover{background:var(--card);border-color:var(--text);color:var(--text)}
.header-btn-register{background:var(--primary);color:var(--btn-text)}
.header-btn-register:hover{background:var(--primary-2);transform:translateY(-1px)}
.lang-dropdown{position:relative;z-index:200}
.lang-dropdown-btn{display:flex;align-items:center;gap:6px;padding:6px 10px;background:var(--bg-soft);border:1px solid #4a4848;border-radius:8px;color:var(--muted);font-weight:500;font-size:0.8rem;cursor:pointer;transition:all 0.2s ease;height:32px}
.lang-dropdown-btn svg{width:14px;height:14px;flex-shrink:0}
.lang-dropdown-btn svg:first-child{opacity:0.7}
.lang-dropdown-arrow{width:12px!important;height:12px!important;transition:transform 0.2s}
.lang-dropdown.active .lang-dropdown-arrow{transform:rotate(180deg)}
.lang-dropdown-btn:hover{border-color:var(--muted);color:var(--text)}
.lang-dropdown-menu{position:absolute;top:calc(100% + 6px);right:0;min-width:120px;background:var(--card);border:1px solid var(--line);border-radius:10px;box-shadow:0 8px 24px rgba(0,0,0,0.3);opacity:0;visibility:hidden;transform:translateY(-8px);transition:all 0.2s ease;z-index:300;overflow:hidden}
.lang-dropdown.active .lang-dropdown-menu{opacity:1;visibility:visible;transform:translateY(0)}
.lang-dropdown-item{display:flex;align-items:center;justify-content:space-between;padding:10px 14px;color:var(--text);font-size:0.85rem;font-weight:500;transition:background 0.15s;text-decoration:none}
.lang-dropdown-item:hover{background:var(--bg-soft)}
.lang-dropdown-item.active{background:var(--bg-soft)}
@media(max-width:768px){.lang-dropdown-guest{display:none}}

.lang-toggle-btn{display:flex;align-items:center;background:var(--bg-soft);border:1px solid var(--line);border-radius:8px;padding:2px;text-decoration:none;height:26px;overflow:hidden}
.lang-toggle-slider{display:flex;align-items:center}
.lang-option{padding:4px 8px;font-size:0.7rem;font-weight:600;color:var(--muted);border-radius:6px;transition:all 0.2s}
.lang-option.active{background:var(--text);color:var(--bg)}

.user-dropdown-lang-accordion{position:relative}
.user-dropdown-lang-accordion-header{display:flex;align-items:center;gap:10px;padding:9px 16px;color:var(--text);cursor:pointer;transition:background 0.2s;font-weight:500;font-size:0.95rem;border-radius:12px}
.user-dropdown-lang-accordion.open .user-dropdown-lang-accordion-header{background:var(--bg-soft);border-radius:12px 12px 0 0}
.user-dropdown-lang-accordion-header:hover{background:var(--bg-soft)}
.user-dropdown-lang-accordion-header>svg:first-child{width:18px;height:18px;flex-shrink:0}
.user-dropdown-lang-accordion-header>span{flex:1}
.user-dropdown-lang-accordion-arrow{margin-left:auto;opacity:0.5;transition:transform 0.25s ease}
.user-dropdown-lang-accordion.open .user-dropdown-lang-accordion-arrow{transform:rotate(90deg)}
.user-dropdown-lang-accordion-content{max-height:0;overflow:hidden;transition:max-height 0.25s ease;background:var(--bg-soft);border-radius:0 0 12px 12px;margin:0}
.user-dropdown-lang-accordion.open .user-dropdown-lang-accordion-content{max-height:100px}
.user-dropdown-lang-opt{display:flex;align-items:center;gap:10px;padding:8px 16px;color:var(--muted);text-decoration:none;font-size:0.88rem;font-weight:500;transition:all 0.2s}
.user-dropdown-lang-opt:last-child{border-radius:0 0 12px 12px;padding-bottom:10px}
.user-dropdown-lang-opt:hover{background:var(--line);color:var(--text)}
.user-dropdown-lang-opt.active{color:var(--text)}
.user-dropdown-lang-opt .lang-flag{font-size:0.88rem;font-weight:500;min-width:22px}

.side-menu-lang-item{display:flex;align-items:center;justify-content:space-between}
.side-menu-lang-item:hover{color:var(--text);background:transparent}
.side-menu-lang-text{flex:1}
.side-menu-lang-switch{display:flex;align-items:center;background:var(--bg-soft);border:1px solid var(--line);border-radius:8px;padding:2px;margin-left:auto;gap:2px}
.side-menu-lang-opt{padding:4px 10px;font-size:0.72rem;font-weight:500;color:var(--muted);border-radius:6px;transition:all 0.2s;cursor:pointer;text-decoration:none}
.side-menu-lang-opt:hover{color:var(--text)}
.side-menu-lang-opt.active{background:#3a3a3af4;color:var(--text);pointer-events:none}

.side-menu-lang-accordion{margin-bottom:2px}
.side-menu-lang-accordion-header{display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:10px;color:var(--text);cursor:pointer;transition:all 0.2s;font-weight:500;font-size:0.92rem}
.side-menu-lang-accordion.open .side-menu-lang-accordion-header{background:var(--bg-soft);border-radius:10px 10px 0 0}
.side-menu-lang-accordion-header:hover{background:var(--bg-soft)}
.side-menu-lang-accordion-header svg:first-child{width:19px;height:19px;flex-shrink:0;opacity:0.8;stroke-width:2}
.side-menu-lang-accordion-header span{flex:1}
.side-menu-lang-accordion-arrow{margin-left:auto;opacity:0.5;transition:transform 0.25s ease}
.side-menu-lang-accordion.open .side-menu-lang-accordion-arrow{transform:rotate(90deg)}
.side-menu-lang-accordion-content{max-height:0;overflow:hidden;transition:max-height 0.25s ease;background:var(--bg-soft);border-radius:0 0 10px 10px;margin:0}
.side-menu-lang-accordion.open .side-menu-lang-accordion-content{max-height:120px}
.side-menu-lang-accordion-opt{display:flex;align-items:center;gap:10px;padding:8px 10px;color:var(--muted);text-decoration:none;font-size:0.88rem;font-weight:500;transition:all 0.2s}
.side-menu-lang-accordion-opt:last-child{border-radius:0 0 10px 10px;padding-bottom:10px}
.side-menu-lang-accordion-opt:hover{background:var(--line);color:var(--text)}
.side-menu-lang-accordion-opt.active{color:var(--text)}
.side-menu-lang-accordion-opt .lang-flag{font-size:0.88rem;font-weight:500;min-width:22px}

.request-btn{display:inline-flex;align-items:center;gap:6px;padding:8px 16px;background:var(--bg-soft);color:#757171;border:1px solid #616161;border-radius:12px;font-weight:500;font-size:0.85rem;text-decoration:none;transition:all 0.2s ease;white-space:nowrap;cursor:pointer;height:40px;box-sizing:border-box}
.request-btn:hover{background:var(--bg-hex);color:var(--text);border-color:var(--text);transform:translateY(-1px)}
.request-btn:active{transform:translateY(0)}

@media(max-width:768px){
  .user-profile-container{display:none}
  .hamburger-menu-btn{display:flex;pointer-events:auto}
  .header-btn{padding:6px 10px;font-size:0.75rem;position:relative;z-index:99}
  .header-btn-register{padding:6px 10px;margin-left:6px}
  .mobile-search-toggle{pointer-events:auto;display:flex}
  .header{z-index:100}
  .header-user{display:flex;align-items:center;gap:4px;position:relative;z-index:100;margin-right:0}
  .mobile-search-toggle{position:relative;z-index:105;pointer-events:auto;margin-right:0}
  .hamburger-menu-btn{position:relative;z-index:100;pointer-events:auto}
  .brand{padding-right:0}
  .request-btn{padding:6px 12px;font-size:0.75rem;order:-1;height:32px;border-radius:12px}
}
.search-wrapper{flex:1;max-width:500px;margin:0 auto}
.search-box{position:relative;width:100%}
.search-input{width:100%;padding:12px 20px 12px 44px;background:var(--bg-soft);border:1px solid var(--input-border);border-radius:25px;color:var(--text);font-size:0.95rem;transition:all 0.3s ease;outline:none}
.search-input:focus{border-color:var(--primary)}
.search-input::placeholder{color:var(--input-icon);opacity:1}
.search-icon{position:absolute;left:16px;top:50%;transform:translateY(-50%);color:var(--input-icon);pointer-events:none}
.search-submit-btn{position:absolute;right:40px;top:50%;transform:translateY(-50%);background:var(--bg-soft);border:none;color:var(--muted);padding:5px 12px;border-radius:8px;cursor:pointer;display:none;align-items:center;justify-content:center;font-size:0.75rem;font-weight:500;transition:all 0.2s;white-space:nowrap}
.search-submit-btn:hover{color:var(--text);background:var(--card)}
.search-clear{position:absolute;right:10px;top:50%;transform:translateY(-50%);background:transparent;border:none;color:var(--muted);width:24px;height:24px;border-radius:50%;cursor:pointer;display:none;align-items:center;justify-content:center;font-size:16px;font-weight:bold;transition:all 0.2s}
.search-clear:hover{color:var(--text);transform:translateY(-50%) scale(1.1)}
.search-clear.visible{display:flex}

.mobile-search-toggle{display:none;width:32px;height:32px;background:transparent;border:none;align-items:center;justify-content:center;cursor:pointer;transition:all 0.2s ease;padding:0;color:var(--text);position:relative;z-index:101;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.mobile-search-toggle svg{width:20px;height:20px;transition:all 0.3s ease}
.mobile-search-toggle.active svg.search-icon-svg{display:none}
.mobile-search-toggle svg.close-icon-svg{display:none}
.mobile-search-toggle.active svg.close-icon-svg{display:block}

@media(max-width:768px){
  .search-wrapper{flex:1 1 100%;order:3;max-width:100%;display:none;position:relative;z-index:100}
  .search-wrapper.mobile-visible{display:block;position:absolute;top:100%;left:0;right:0;z-index:100;padding:8px 12px;background:var(--bg)}
  .search-input{font-size:0.9rem;padding:10px 16px 10px 38px}
  .search-submit-btn{right:40px;font-size:0.8rem;padding:5px 10px}
  .mobile-search-toggle{display:flex}
}
.brand{display:flex;align-items:center;gap:10px;position:relative;z-index:1}
.logo{width:var(--logo-width, 180px);height:auto;object-fit:contain}
@media(max-width:768px){
  .logo{width:var(--logo-width-mobile, 120px);height:auto}
  .brand{margin-left:0}
}
.brand span{font-weight:700;letter-spacing:.2px}
.btn{background:var(--primary);color:var(--btn-text);border:none;padding:10px 16px;border-radius:14px;font-weight:700;cursor:pointer;transition:all .2s}
.btn:hover{background:var(--primary-2);transform:translateY(-1px)}
.btn:active{transform:translateY(0)}
.card{background:var(--card);border-radius:var(--radius);border:1px solid var(--line);box-shadow:var(--shadow);position:relative;overflow:hidden}

.card::before {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: var(--gradient-bg);
  opacity: 0.015;
  z-index: -1;
  animation: cardBlob 30s ease-in-out infinite;
  filter: blur(80px);
}

@keyframes cardBlob {
  0%, 100% {
    transform: translate(0px, 0px) rotate(0deg);
  }
  50% {
    transform: translate(20px, -20px) rotate(180deg);
  }
}
.grid{display:grid;gap:18px}
.main-content{padding:5px 0;position:relative;z-index:1}
.section-header{text-align:center;margin-bottom:32px}
.section-title{font-size:2rem;font-weight:800;margin:0 0 8px 0;background:linear-gradient(90deg,var(--primary),var(--primary-2));-webkit-background-clip:text;background-clip:text;color:transparent}
@media(max-width:768px){.section-title{font-size:1.5rem}}
.section-desc{opacity:.7;font-size:1.1rem;margin:0}
@media(max-width:768px){.section-desc{font-size:1rem}}
.video-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:6px;position:relative;z-index:1}
@media(min-width:768px){.video-grid{grid-template-columns:repeat(3,1fr);gap:8px}}
@media(min-width:1200px){.video-grid{grid-template-columns:repeat(5,1fr);gap:10px}}
@media(min-width:1600px){.video-grid{grid-template-columns:repeat(5,1fr);gap:12px}}
.video-card{display:block;background:var(--card);border-radius:8px;border:1px solid var(--line);overflow:hidden;transition:all .3s ease;box-shadow:var(--shadow);position:relative;-webkit-user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;user-select:none}
.video-card-link{display:block;text-decoration:none;color:inherit}
.video-title-link{display:block;text-decoration:none;color:inherit}

.video-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: var(--gradient-bg);
  opacity: 0;
  z-index: 0;
  transition: opacity 0.3s ease;
  animation: videoBlob 35s ease-in-out infinite;
  filter: blur(60px);
}

.video-card:hover::before {
  opacity: 0.02;
}

@keyframes videoBlob {
  0%, 100% {
    transform: translate(0px, 0px) scale(1) rotate(0deg);
  }
  25% {
    transform: translate(15px, -15px) scale(1.1) rotate(90deg);
  }
  50% {
    transform: translate(-10px, 10px) scale(0.9) rotate(180deg);
  }
  75% {
    transform: translate(10px, -5px) scale(1.05) rotate(270deg);
  }
}
.video-card{--watched-opacity:1}
.video-card:hover{transform:translateY(-4px);box-shadow:0 20px 40px rgba(0,0,0,.6);border-color:var(--card)}
.video-card.watched .video-thumb::before{content:'';position:absolute;inset:0;background:var(--watched-overlay-bg);z-index:1;opacity:var(--watched-opacity);transition:opacity .2s ease}
.video-card.watched .play-overlay{z-index:15}
.video-card.watched .view-count-overlay .view-icon,.video-card.watched .view-count-overlay .view-count-text{display:none}
.video-card.watched .view-count-overlay::after{content:'İzlendi';font-size:0.65rem;font-weight:600;color:var(--text);letter-spacing:0.02em}
html[lang="en"] .video-card.watched .view-count-overlay::after{content:'Watched'}
.skeleton-card{background:var(--card);border-radius:12px;border:1px solid var(--line);overflow:hidden;box-shadow:var(--shadow);position:relative}
.skeleton-item{animation:fadeIn 0.3s ease;pointer-events:none}
@keyframes fadeIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
.skeleton-thumb{aspect-ratio:16/9;background:linear-gradient(110deg,var(--bg-soft) 0%,var(--bg-soft) 40%,var(--line) 50%,var(--bg-soft) 60%,var(--bg-soft) 100%);background-size:200% 100%;animation:shimmer 2s infinite linear;position:relative;overflow:hidden}
.skeleton-thumb::after{content:'';position:absolute;top:0;left:0;right:0;bottom:0;background:linear-gradient(90deg,transparent 0%,rgba(255,255,255,0.03) 50%,transparent 100%);animation:shimmerGlow 2s infinite}
.skeleton-info{padding:16px}
.skeleton-title{height:18px;background:linear-gradient(110deg,var(--bg-soft) 0%,var(--bg-soft) 40%,var(--line) 50%,var(--bg-soft) 60%,var(--bg-soft) 100%);background-size:200% 100%;animation:shimmer 2s infinite linear;border-radius:6px;margin-bottom:12px;width:90%}
.skeleton-date{height:14px;width:60%;background:linear-gradient(110deg,var(--bg-soft) 0%,var(--bg-soft) 40%,var(--line) 50%,var(--bg-soft) 60%,var(--bg-soft) 100%);background-size:200% 100%;animation:shimmer 2s infinite linear;border-radius:6px}
@keyframes shimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}
@keyframes shimmerGlow{0%{transform:translateX(-100%)}100%{transform:translateX(100%)}}
.video-thumb{position:relative;aspect-ratio:16/9;background:#000;overflow:hidden;z-index:1}
.video-thumb img{width:100%;height:100%;object-fit:contain;transition:transform .3s ease}
.video-thumb.vertical-thumb img.video-thumb-img{position:relative;z-index:2}
.video-thumb.vertical-thumb .thumb-blur-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:blur(10px);transform:scale(1.1);z-index:1}
.video-card:hover .video-thumb img{transform:scale(1.05)}
.video-card:hover .video-thumb.vertical-thumb img.video-thumb-img{transform:scale(1.05)}
.video-card:hover .video-thumb.vertical-thumb .thumb-blur-bg{transform:scale(1.15)}
.play-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.4);opacity:0;transition:opacity .2s ease;pointer-events:none}
.video-card:hover .play-overlay{opacity:1}
.thumbnail-timeline-progress{position:absolute;bottom:0;left:0;height:4px;background:linear-gradient(90deg,var(--primary) 0%,var(--primary) 50%,var(--primary) 100%);width:0%;transition:width .4s linear;display:none;z-index:20;border-radius:0 2px 2px 0;box-shadow:0 0 10px rgba(203,13,30,0.8),0 0 20px rgba(203,13,30,0.4);animation:progressPulse 2s ease-in-out infinite}
@keyframes progressPulse{0%,100%{opacity:1;box-shadow:0 0 10px rgba(203,13,30,0.8),0 0 20px rgba(203,13,30,0.4)}50%{opacity:0.85;box-shadow:0 0 15px rgba(203,13,30,1),0 0 30px rgba(203,13,30,0.6)}}
.play-icon{width:50px;height:50px;border-radius:50%;background:var(--primary);color:var(--btn-text);display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:bold;transform:scale(.8);transition:transform .2s ease;opacity:0.9}
.video-card:hover .play-icon{transform:scale(1)}
.video-info{
  padding:12px 10px;
  position:relative;
  z-index:1;
  display:flex;
  flex-direction:column;
  gap:2px;
}
@media(max-width:768px){.video-info{padding:10px 12px}}
.video-title{font-size:0.9rem;font-weight:600;margin:0;line-height:1.4;color:var(--text);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}
.video-meta{display:flex;align-items:center;gap:6px;margin-top:2px;margin-bottom:2px;font-size:0.7rem;color:var(--muted);opacity:0.85}
.video-meta-item{display:inline-flex;align-items:center;padding:2px 6px 0 6px;background:var(--bg-soft);border-radius:4px;font-weight:600;letter-spacing:0.3px;font-size:0.65rem}
.video-meta-icon{padding:2px 4px 0 4px}
.video-meta-icon svg{display:block;opacity:0.8}
/* Video kartlarındaki meta bilgilerini gizle (ana sayfa, kategori, kanal, öneriler) */
.video-card .video-meta{display:none!important}
@media(max-width:768px){.video-title{font-size:0.85rem}}
.video-date{font-size:.85rem;opacity:.7}
.video-upload-date{display:block;margin-top:2px;font-size:0.7rem;color:var(--muted);opacity:0.6;text-decoration:none;transition:opacity 0.2s ease}
.video-upload-date:hover{opacity:0.8}
@media(max-width:768px){.video-upload-date{font-size:0.65rem}}
@media(max-width:768px){.video-date{font-size:0.8rem}}
.empty-state{grid-column:1/-1;text-align:center;padding:60px 20px;opacity:.7}
.app-footer{background:var(--card);border-top:1px solid var(--line);margin-top:60px;position:relative;z-index:1}
.footer-container{max-width:1400px;margin:0 auto;padding:40px 20px 24px 20px}
.footer-logo{margin-bottom:24px}
.footer-logo-img{height:32px;width:auto;opacity:0.9}
.footer-links{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:28px;margin-bottom:32px}
.footer-section-title{font-size:0.8rem;font-weight:700;color:var(--text);margin:0 0 12px 0;text-transform:uppercase;letter-spacing:0.5px;opacity:0.9}
.footer-link{display:block;color:var(--muted);text-decoration:none;font-size:0.88rem;padding:6px 0;transition:all 0.2s ease;opacity:0.8}
.footer-link:hover{color:var(--text);opacity:1;padding-left:4px}
.footer-telegram-link{display:inline-flex;align-items:center;gap:8px;color:var(--text);text-decoration:none;font-size:0.88rem;padding:8px 14px;background:var(--bg-soft);border:1px solid var(--line);border-radius:10px;transition:all 0.2s ease}
.footer-telegram-link:hover{background:var(--bg-hex);border-color:var(--border);transform:translateY(-1px)}
.footer-telegram-link svg{opacity:0.85}
.footer-lang-switcher{display:flex;align-items:center;gap:6px;margin-top:12px}
@media(max-width:768px){.footer-lang-switcher{width:100%;justify-content:center;margin-top:16px}}
.footer-lang-item{color:var(--muted);text-decoration:none;font-size:0.82rem;padding:4px 8px;border-radius:6px;transition:all 0.2s}
.footer-lang-item:hover{color:var(--text)}
.footer-lang-item.active{color:var(--text);background:var(--bg-soft)}
.footer-lang-divider{color:var(--line);font-size:0.75rem}
@media(min-width:769px){.footer-section:last-child{text-align:left}.footer-section:last-child .footer-telegram-link{justify-content:flex-start}.footer-lang-switcher{justify-content:flex-start}}
.footer-bottom{margin-top:32px}
.footer-divider{height:1px;background:var(--line);margin-bottom:20px;opacity:0.5}
.footer-copyright{text-align:center;font-size:0.8rem;color:var(--muted);opacity:0.6;margin:0}
@media(max-width:768px){
.app-footer{margin-top:40px}
.footer-container{padding:32px 16px 20px 16px}
.footer-logo{text-align:left;margin-bottom:20px}
.footer-links{grid-template-columns:repeat(2,1fr);gap:20px 16px}
.footer-section{text-align:left}
.footer-section:last-child{grid-column:1/-1;text-align:center;margin-top:12px}
.footer-section-title{font-size:0.75rem}
.footer-link{font-size:0.82rem;padding:5px 0}
.footer-telegram-link{font-size:0.82rem;padding:8px 12px;max-width:280px;margin:0 auto;justify-content:center}
.footer-bottom{margin-top:24px}
}
.card-in{padding:16px}
.player{position:relative;background:#000;border-radius:16px;overflow:hidden}
video{width:100%;height:auto;display:block}
.controls{position:absolute;left:0;right:0;bottom:0;display:flex;align-items:center;gap:10px;background:linear-gradient(180deg,rgba(0,0,0,0) 0%,rgba(0,0,0,.65) 80%);padding:10px}
.control-btn{appearance:none;border:1px solid var(--line);background:rgba(15,20,17,.65);backdrop-filter:blur(6px);color:var(--text);border-radius:12px;padding:8px 10px;font-size:14px;cursor:pointer}
.seek{flex:1;height:8px;background:rgba(255,255,255,.1);border-radius:999px;position:relative}
.seek input{appearance:none;width:100%;height:8px;background:transparent;position:absolute;left:0;top:0}
.seek-fill{position:absolute;left:0;top:0;height:8px;background:linear-gradient(90deg,var(--primary),var(--primary-2));border-radius:999px;width:0%}
.time{font-variant-numeric:tabular-nums;font-size:12px;opacity:.85}
.skel{display:none;width:100%;aspect-ratio:16/9;background:linear-gradient(100deg,var(--bg-soft) 20%,var(--line) 40%,var(--bg-soft) 60%);background-size:200% 100%;animation:shimmer 1.1s infinite;border-radius:16px}
@keyframes shimmer{to{background-position:-200% 0}}
.video-grid.list-view .skeleton-card{display:flex;flex-direction:row;align-items:stretch;gap:0;padding:0;background:var(--card);border-radius:10px;overflow:hidden}
.video-grid.list-view .skeleton-thumb{width:260px;aspect-ratio:16/9;flex-shrink:0;border-radius:0}
.video-grid.list-view .skeleton-info{flex:1;padding:12px 16px}
@media (max-width:768px){
.video-grid.list-view .skeleton-card{flex-direction:row;border-radius:10px}
.video-grid.list-view .skeleton-thumb{width:220px;flex-shrink:0;border-radius:10px 0 0 10px}
.video-grid.list-view .skeleton-info{flex:1;padding:8px 10px}
}
.page{display:grid;grid-template-columns:1fr;gap:18px}
.card-title{font-size:1.4rem;font-weight:800;margin:0}
.card-desc{opacity:.85;line-height:1.6}
.row{display:flex;gap:10px;flex-wrap:wrap}
.input,.file{width:100%;padding:12px;border-radius:12px;border:1px solid var(--input-border);background:var(--bg-soft);color:var(--text)}
.label{font-size:.9rem;opacity:.8;margin-bottom:6px}
.form-card{max-width:640px}
.notice{padding:12px 16px;border-radius:12px;border:1px solid var(--primary);background:rgba(111,92,255,0.1);color:var(--text)}
.table{width:100%;border-collapse:collapse}
.table th,.table td{border-bottom:1px solid var(--line);padding:10px;text-align:left}
.badge{background:var(--primary);color:var(--btn-text);border:none;border-radius:8px;padding:6px 12px;font-size:.8rem;font-weight:600;transition:all .2s}
.badge:hover{background:var(--primary-2);transform:translateY(-1px)}
@media(min-width:860px){.page{grid-template-columns:1.2fr .8fr}}


.video-page{max-width:1200px;margin:0 auto;padding:20px}
.video-container{width:100%}
.video-player-wrapper{position:relative;width:100%;background:#000;border-radius:16px;overflow:hidden;margin-bottom:24px;box-shadow:0 4px 12px rgba(0,0,0,0.3)}
.embed-player{position:relative;width:100%;padding-bottom:56.25%;height:0;overflow:hidden;border-radius:16px}
.embed-player iframe{position:absolute;top:0;left:0;width:100%;height:100%;border:none}
@media(max-width:768px){.video-player-wrapper{border-radius:12px;margin-bottom:16px}.embed-player{border-radius:12px}}
.video-info-section{padding:0 8px}
.video-info-section .video-page-title{font-size:1.5rem;font-weight:700;margin:0 0 8px 0;line-height:1.3;color:var(--text);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}
.video-info-section .video-page-title{font-size:1.5rem;font-weight:700;margin:0 0 4px 0;line-height:1.3;color:var(--text);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}
.video-info-section .video-meta{margin:2px 0 10px 0;opacity:.7}
.video-info-section .video-description{margin-top:0}
.video-info-section .video-description{font-size:1rem;line-height:1.6;color:var(--muted);opacity:.7;white-space:pre-wrap;position:relative;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden;mask-image:linear-gradient(to bottom,black 80%,transparent 100%);-webkit-mask-image:linear-gradient(to bottom,black 80%,transparent 100%)}

/* Video Teknik Bilgileri - Minimal */
.video-tech-info{display:flex;flex-wrap:wrap;align-items:center;gap:16px;margin-top:14px;padding:0;opacity:0.7}
.tech-info-item{display:inline-flex;align-items:center;gap:6px;font-size:0.82rem;color:var(--muted);font-weight:500}
.tech-info-item svg{width:15px;height:15px;opacity:0.6;flex-shrink:0}
@media(max-width:768px){
.video-tech-info{gap:12px;margin-top:10px}
.tech-info-item{font-size:0.75rem;gap:5px}
.tech-info-item svg{width:13px;height:13px}
}

.video-page-fade-overlay{position:fixed;left:0;right:0;bottom:0;height:30vh;background:linear-gradient(to bottom,transparent 0%,rgba(10,10,10,0.3) 30%,rgba(10,10,10,0.7) 60%,var(--bg) 100%);pointer-events:none;z-index:50;opacity:1;transition:opacity 0.3s ease}
@media(max-width:768px){.video-page-fade-overlay{bottom:56px}}
.video-page-fade-overlay.hidden{opacity:0}

.video-navigation{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:32px;padding-top:24px;border-top:1px solid var(--line)}

.nav-btn{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:16px;
  transition:all .3s ease;
  text-decoration:none;
  color:var(--text);
  overflow:hidden;
}

.nav-btn:hover{
  background:var(--bg);
  border-color:var(--input-border);
  transform:translateY(-2px);
  box-shadow:0 4px 12px rgba(0,0,0,0.1);
}

.nav-thumbnail{
  position:relative;
  width:80px;
  height:45px;
  border-radius:8px;
  overflow:hidden;
  flex-shrink:0;
}

.nav-thumbnail img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.nav-arrow{
  display:flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  background:rgba(var(--primary-rgb), 0.1);
  border-radius:50%;
  flex-shrink:0;
}

.nav-arrow .nav-icon{
  font-size:1.2rem;
}

.nav-content{
  flex:1;
  min-width:0;
  overflow:hidden;
}

.nav-label{
  font-size:0.7rem;
  color:var(--primary);
  font-weight:600;
  margin-bottom:4px;
  text-transform:uppercase;
  letter-spacing:0.5px;
}

.nav-title{
  font-size:0.9rem;
  font-weight:600;
  margin-bottom:2px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  line-height:1.3;
}

.nav-duration{
  display: none;
}

.nav-icon{
  color:var(--primary);
  font-size:1.5rem;
  font-weight:bold;
}
@media(max-width:768px){
  .video-page{padding:0;margin:0 -8px}
  .video-container{padding:0 3px}
  .video-player-wrapper{margin-bottom:12px;border-radius:6px}
  .video-info-section{padding:0 10px;text-align:left}
  .video-info-section .video-page-title{font-size:1.1rem;-webkit-line-clamp:2;margin-bottom:8px;text-align:left}
  .video-info-section .video-description{font-size:0.70rem;-webkit-line-clamp:5;line-height:1.5;margin-bottom:12px}
  
  .video-navigation{
    grid-template-columns:1fr 1fr;
    gap:8px;
    margin:16px 0 0 0;
  }
  
  .nav-btn{
    padding:8px;
    gap:8px;
    flex-direction:column;
  }
  
  .nav-thumbnail{
    width:100%;
    height:60px;
    order:1;
  }
  
  .nav-content{
    order:2;
    text-align:center;
  }
  
  .nav-arrow{
    display:none;
  }
  
  .nav-label::before{
    font-size:1rem;
    color:var(--primary);
    font-weight:bold;
    margin-right:6px;
  }
  
  .nav-label::after{
    font-size:1rem;
    color:var(--primary);
    font-weight:bold;
    margin-left:6px;
  }
  
  .prev-btn .nav-label::before{
    content:"←";
  }
  
  .next-btn .nav-label::after{
    content:"→";
  }
  
  .nav-arrow .nav-icon{
    font-size:1rem;
  }
  
  .nav-label{
    font-size:0.8rem;
    margin-bottom:4px;
    font-weight:700;
  }
  
  .nav-title{
    font-size:0.75rem;
    -webkit-line-clamp:1;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  
  .nav-duration{
    display:none;
  }
  
  .nav-icon{
    font-size:1.2rem;
  }
}


.video-count-overlay-old {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  border-radius: 6px;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 2;
}

.video-duration-overlay {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  font-family: monospace;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.view-count-overlay .view-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.view-count-text {
  font-size: 12px;
  font-weight: 500;
}


.video-header .video-meta,
.video-info-section .video-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 6px 0 12px 0;
  flex-wrap: nowrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}


.video-meta.desktop-only {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
}

.view-count-meta {
  font-weight: 500;
  color: var(--btn-text);
}

.view-count-meta .view-icon {
  fill: var(--btn-text);
  stroke: var(--btn-text);
}

.view-count-meta .view-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.video-date {
  color: var(--btn-text);
  font-size: 14px;
  font-weight: 500;
}


.video-meta .video-date {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}


.mobile-only { display: none; }


@media(max-width:768px){
  .video-count-overlay {
    top: 5px !important;
    left: 5px !important;
    gap: 2px !important;
  }
  
  .view-count-overlay {
    padding: 1px 3px !important;
    font-size: 0.5rem !important;
    border-radius: 4px !important;
  }
  
  .view-count-overlay .view-icon {
    width: 8px !important;
    height: 8px !important;
  }
  
  .view-count-text {
    font-size: 8px !important;
  }
  
  .video-card.watched .view-count-overlay::after {
    font-size: 0.5rem !important;
  }
  
  .video-card-category-badge {
    padding: 1px 3px !important;
    font-size: 0.45rem !important;
  }
  
  .video-duration-overlay {
    bottom: 5px !important;
    right: 5px !important;
    padding: 1px 4px !important;
    font-size: 8px !important;
  }
  
  .video-premium-badge {
    top: 5px !important;
    right: 5px !important;
    padding: 1px 3px !important;
    font-size: 0.4rem !important;
    border-radius: 3px !important;
  }
  
  .video-meta {
    gap: 12px;
    margin: 6px 0;
  }
  
  .meta-item {
    font-size: 13px;
  }
  
  .view-count-meta .view-icon {
    width: 14px;
    height: 14px;
  }
  
  
  .mobile-only {
    display: flex;
  }
  
  
  
  
  .desktop-only {
    display: none !important;
  }
}


.comments-section {
  margin: 24px 0 16px 0;
  padding: 0;
}

.comments-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 24px 0;
  color: var(--text);
  border-bottom: 2px solid var(--line);
  padding-bottom: 12px;
}


.comment-form-container {
  margin-bottom: 24px;
  margin-top: 24px;
}

.comment-form {
  background: transparent;
  border: none;
  padding: 0;
}

.comment-input-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.comment-user-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.comment-username {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.logout-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.logout-btn:hover {
  background: var(--bg);
  color: var(--text);
  border-color: var(--input-border);
}

.comment-textarea {
  width: 100%;
  min-height: 100px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.6;
  resize: none;
  transition: all 0.25s ease;
}

.comment-textarea::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.comment-textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-soft);
  min-height: 120px;
}

.comment-textarea:read-only {
  cursor: pointer;
  opacity: 0.85;
  min-height: 56px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comment-textarea:read-only:hover {
  border-color: var(--primary);
  opacity: 1;
}

.comment-form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}

.char-counter {
  font-size: 0.85rem;
  color: var(--muted);
}

.char-counter.warning {
  color: var(--primary);
}

.char-counter.error {
  color: var(--primary);
}

.comment-submit-btn {
  background: var(--primary);
  color: var(--btn-text);
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.comment-submit-btn.telegram-style {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: var(--btn-text);
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.comment-submit-btn.telegram-style:hover:not(:disabled) {
  background: var(--primary-2);
  transform: translateY(-2px);
}

.comment-submit-btn.telegram-style:disabled {
  background: var(--line);
  color: var(--muted);
  cursor: not-allowed;
  transform: none;
}

.comment-submit-btn:hover:not(:disabled) {
  background: var(--primary-2);
  transform: translateY(-1px);
}

.comment-submit-btn:disabled {
  background: var(--line);
  color: var(--muted);
  cursor: not-allowed;
  transform: none;
}


.comment-login-prompt {
  margin-bottom: 16px;
}

.comment-login-prompt .comment-textarea {
  min-height: 56px;
  cursor: pointer;
}

.comment-login-prompt .comment-textarea:hover {
  border-color: var(--primary);
}

.login-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
  color: var(--text);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.login-input:focus {
  outline: none;
  border-color: var(--primary-2);
}

.login-help {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
  opacity: 0.8;
}


.comments-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comment-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  transition: all 0.2s ease;
  margin-bottom: 16px;
}

.comment-item:hover {
  border-color: var(--primary);
}

.comment-main {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--btn-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.comment-content-wrapper {
  flex: 1;
  min-width: 0;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.comment-author {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.comment-date {
  color: var(--muted);
  font-size: 0.85rem;
}

.delete-comment-btn {
  margin-left: auto;
  background: transparent;
  border: none;
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.delete-comment-btn:hover {
  background: var(--card);
  transform: scale(1.1);
}

.edit-comment-btn {
  display: none;
}

.editable-comment {
  cursor: pointer;
  border-radius: 8px;
  padding: 4px;
  margin: -4px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
}

.editable-comment:hover {
  background-color: var(--bg-soft);
  border-color: var(--card);
}

.comment-actions {
  margin-top: 8px;
  display: flex;
  gap: 12px;
}

.reply-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.reply-btn:hover {
  background: var(--bg);
  color: var(--primary);
  border-color: var(--input-border);
}


.comment-replies {
  margin-top: 16px;
  padding-left: 20px;
  border-left: 2px solid var(--line);
}

.reply-item {
  margin-bottom: 12px;
  background: var(--bg-soft);
}

.reply-item .comment-avatar {
  width: 32px;
  height: 32px;
  font-size: 0.9rem;
}

.reply-form {
  margin-top: 12px;
  padding: 16px;
    border-radius: 8px;
  border: 1px solid var(--line);
}

.reply-input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reply-textarea {
  width: 100%;
  min-height: 80px;
  padding: 12px;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
  transition: all 0.3s ease;
}

.reply-textarea:focus {
  outline: none;
  border-color: var(--card);
}

.reply-buttons {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.reply-submit-btn {
  background: var(--primary);
  color: var(--btn-text);
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.reply-submit-btn:hover:not(:disabled) {
  background: var(--primary-2);
  transform: translateY(-1px);
}

.reply-submit-btn:disabled {
  background: var(--line);
  color: var(--muted);
  cursor: not-allowed;
}

.reply-cancel-btn {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.reply-cancel-btn:hover {
  background: var(--bg-soft);
  color: var(--text);
  border-color: var(--primary);
}

.comment-content {
  color: var(--text);
  line-height: 1.6;
  font-size: 0.95rem;
  white-space: pre-wrap;
}

.no-comments {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  font-style: italic;
}


.custom-dialog {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}


.login-dialog-content {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  max-width: 400px;
  width: 90%;
  animation: scaleIn 0.3s ease;
  overflow: hidden;
}

.login-dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.login-dialog-header h4 {
  margin: 0;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  flex: 1;
}

.dialog-close-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
  line-height: 1;
}

.dialog-close-btn:hover {
  background: rgba(244, 67, 54, 0.1);
  color: var(--primary);
  transform: scale(1.1);
}

.login-dialog-body {
  padding: 24px;
}

.login-inputs-vertical {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.login-btn-full {
  width: 100%;
  background: var(--primary);
  color: var(--btn-text);
  border: none;
  padding: 14px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.login-btn-full:hover {
  background: var(--primary-2);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(75,229,22,.3);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.dialog-content {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.dialog-content h4 {
  margin: 0 0 16px 0;
  color: var(--text);
  font-size: 1.1rem;
}

.dialog-content p {
  margin: 0 0 20px 0;
  color: var(--muted);
  line-height: 1.5;
}

.dialog-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.dialog-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.dialog-btn.primary {
  background: var(--primary);
  color: var(--btn-text);
  border: none;
}

.dialog-btn.primary:hover {
  background: var(--primary-2);
  transform: translateY(-1px);
}

.dialog-btn.secondary {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}

.dialog-btn.secondary:hover {
  background: var(--bg);
  color: var(--text);
  border-color: var(--input-border);
}


@media(max-width:768px){
  .comments-section {
    padding: 0 4px;
    margin-top: 16px;
  }
  
  .comment-form-container {
    padding: 0;
    margin: 0 0 16px 0;
  }
  
  .comments-title {
    font-size: 1.2rem;
    margin-bottom: 16px;
  }
  
  .comment-form, .login-form {
    padding: 8px 4px;
    border-radius: 12px;
  }
  
  .comment-textarea {
    min-height: 100px;
    padding: 12px;
    font-size: 0.9rem;
  }
  
  .comment-submit-btn.telegram-style {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
  
  .login-input {
    padding: 12px 14px;
    font-size: 0.9rem;
  }
  
  .comment-form-container {
    margin-bottom: 16px;
  }
  
  .comment-item {
    padding: 12px;
    margin: 0 4px 12px 4px;
  }
  
  .comment-main {
    gap: 8px;
  }
  
  .comment-avatar {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
  
  .reply-item .comment-avatar {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }
  
  .comment-replies {
    padding-left: 12px;
    margin-top: 12px;
  }
  
  .reply-form {
    padding: 12px;
  }
  
  .reply-textarea {
    min-height: 60px;
    padding: 8px;
    font-size: 0.85rem;
  }
  
  .reply-buttons {
    flex-direction: column;
    gap: 8px;
  }
  
  .reply-submit-btn, .reply-cancel-btn {
    width: 100%;
    padding: 10px;
  }
  
  .comment-header {
    flex-wrap: wrap;
    gap: 6px;
  }
  
  .delete-comment-btn {
    margin-left: auto;
    position: absolute;
    right: 8px;
    top: 8px;
  }
  
  .comment-item {
    position: relative;
  }
  
  .dialog-content {
    margin: 20px;
    padding: 20px;
  }
  
  .dialog-buttons {
    flex-direction: column;
  }
  
  .dialog-btn {
    width: 100%;
    padding: 12px;
  }
  
  
  .login-dialog-content {
    width: 95%;
    margin: 12px;
  }
  
  .login-dialog-header {
    padding: 12px 16px;
  }
  
  .login-dialog-header h4 {
    font-size: 1rem;
    text-align: center;
  }
  
  .login-dialog-body {
    padding: 16px;
  }
  
  .login-inputs-vertical {
    gap: 12px;
    margin-bottom: 16px;
  }
  
  .login-btn-full {
    padding: 12px 16px;
    font-size: 0.9rem;
  }
}


.edit-dialog-content {
  background: var(--card);
  border-radius: 16px;
  padding: 0;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.edit-dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px 15px 20px;
  border-bottom: 1px solid var(--line);
}

.edit-dialog-header h4 {
  margin: 0;
  color: var(--text);
  font-size: 1.2rem;
  text-align: center;
  flex: 1;
}

.edit-dialog-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.edit-comment-textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px 15px;
  border: 1px solid var(--input-border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.5;
  resize: vertical;
  font-family: inherit;
}

.edit-comment-textarea:focus {
  outline: none;
  border-color: var(--card);
}

.edit-dialog-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.edit-btn {
  background: var(--primary);
  color: var(--btn-text);
  border: none;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 80px;
}

.edit-btn:hover:not(:disabled) {
  background: var(--primary);
  transform: translateY(-1px);
}

.edit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .edit-dialog-content {
    width: 95%;
    max-height: 85vh;
  }
  
  .edit-dialog-header, .edit-dialog-body {
    padding: 15px;
  }
  
  .edit-comment-textarea {
    min-height: 100px;
  }
}


.video-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 8px;
  text-align: left;
}


.video-page-title {
  margin: 0;
  flex: 1;
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  text-align: left;
}

.video-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.like-buttons {
  display: flex;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.like-btn,
.dislike-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.like-btn:hover,
.dislike-btn:hover {
  background: var(--bg-soft);
}

.like-btn.active {
  background: var(--card);
  color: var(--primary);
}

.like-btn.active .like-icon {
  fill: var(--primary);
  stroke: var(--primary);
}

.dislike-btn.active {
  background: var(--card);
  color: var(--primary);
}

.dislike-btn.active .dislike-icon {
  fill: var(--primary);
  stroke: var(--primary);
}

.like-btn::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--line);
}

.like-icon,
.dislike-icon {
  transition: all 0.2s ease;
}

.fire-particle {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  width: 32px;
  height: 32px;
  background-image: url('/gorsel/pentagram.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  animation: fireRise 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  filter: drop-shadow(0 0 12px var(--primary)) drop-shadow(0 0 20px var(--primary));
}

@keyframes fireRise {
  0% {
    transform: translate(-16px, -16px) scale(0.5) rotate(var(--initial-rotation));
    opacity: 1;
  }
  20% {
    transform: translate(calc(var(--offset-x) - 16px), calc(var(--offset-y) * 0.3 - 16px)) scale(1.3) rotate(calc(var(--initial-rotation) + 90deg));
    opacity: 1;
  }
  50% {
    transform: translate(calc(var(--offset-x) * 1.2 - 16px), calc(var(--offset-y) * 0.8 - 16px)) scale(1.5) rotate(calc(var(--initial-rotation) + 180deg));
    opacity: 0.9;
  }
  80% {
    transform: translate(calc(var(--offset-x) * 1.5 - 16px), calc(var(--offset-y) * 1.8 - 16px)) scale(0.8) rotate(calc(var(--initial-rotation) + 270deg));
    opacity: 0.4;
  }
  100% {
    transform: translate(calc(var(--offset-x) * 2 - 16px), calc(var(--offset-y) * 2.5 - 16px)) scale(0.2) rotate(calc(var(--initial-rotation) + 360deg));
    opacity: 0;
  }
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow);
}

.share-btn:hover {
  background: var(--bg-soft);
  border-color: var(--primary);
  transform: translateY(-1px);
}


.share-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.share-modal.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.share-modal-content {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

.share-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.share-modal-header h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.3rem;
  font-weight: 600;
}

.share-close-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.8rem;
  font-weight: bold;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
  line-height: 1;
}

.share-close-btn:hover {
  background: rgba(244, 67, 54, 0.1);
  color: var(--primary);
  transform: scale(1.1);
}

.share-modal-body {
  padding: 24px;
}

.share-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.share-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: all 0.2s ease;
}

.share-option:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.share-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  background: transparent;
  border: 2px solid var(--line);
}

.share-option:hover .share-icon-wrapper {
  border-color: var(--primary);
  background: rgba(203, 13, 30, 0.1);
}

.share-link-section {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.share-link-wrapper {
  display: flex;
  gap: 12px;
  align-items: center;
}

.share-link-input {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font-size: 0.9rem;
  font-family: monospace;
}

.share-link-input:focus {
  outline: none;
  border-color: var(--primary);
}

.copy-link-btn {
  padding: 12px 20px;
  background: var(--primary);
  border: none;
  border-radius: 12px;
  color: var(--btn-text);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.copy-link-btn:hover {
  background: var(--primary-2);
  transform: translateY(-1px);
}

.copy-link-btn.copied {
  background: var(--primary);
  transform: scale(0.95);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


@media (max-width: 768px) {
  .video-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  
  .video-header > .video-actions.desktop-actions {
    display: none !important;
  }
  
  
  .video-title-channel-wrapper .video-actions.mobile-actions {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-left: auto;
    flex-wrap: nowrap;
  }
  
  
  .video-actions.mobile-actions .share-btn {
    padding: 6px;
    min-width: auto;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .video-actions.mobile-actions .share-btn svg {
    margin: 0;
  }
  
  
  .video-actions.mobile-actions .share-btn {
    font-size: 0;
  }
  
  .video-header .video-page-title {
    margin-bottom: 0;
    width: 100%;
    text-align: left;
    padding-top: 8px;
  }
  
  .video-header .video-meta {
    margin: 0;
    gap: 8px;
  }
  
  
  .video-title-channel-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
  }
  
  .channel-actions-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 8px;
  }
  
  
  .video-page-channel {
    flex: 0 1 auto;
    min-width: 0;
    text-align: left;
  }
  
  .video-page-channel .channel-link {
    display: flex;
    align-items: center;
    gap: 6px;
    text-align: left;
  }
  
  .like-buttons {
    display: flex;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
  }
  
  .like-btn,
  .dislike-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    flex: none;
    justify-content: center;
  }
  
  .like-btn svg,
  .dislike-btn svg {
    width: 18px;
    height: 18px;
  }
  
  .share-btn {
    padding: 8px;
    min-width: auto;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .share-btn svg {
    width: 18px;
    height: 18px;
  }
  
  .share-options {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  
  .share-option {
    padding: 16px 12px;
  }
  
  .share-link-wrapper {
    flex-direction: column;
    gap: 12px;
  }
  
  .copy-link-btn {
    width: 100%;
  }
}


.nav-videos {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.nav-videos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.nav-video-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.nav-video-item:hover {
  background: var(--bg-soft);
  border-color: var(--line);
}

.nav-video-item.prev {
  flex-direction: row;
}

.nav-video-item.next {
  flex-direction: row-reverse;
}

.nav-video-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--muted);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.nav-video-label span {
  display: none;
}

.nav-video-item:hover .nav-video-label {
  background: var(--primary);
  color: var(--btn-text);
}

.nav-video-thumb {
  position: relative;
  width: 100px;
  height: 56px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--line);
  flex-shrink: 0;
}

.nav-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.nav-video-item:hover .nav-video-thumb img {
  transform: scale(1.05);
}

.nav-video-duration {
  position: absolute;
  bottom: 3px;
  right: 3px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 0.65rem;
  font-weight: 500;
}

.nav-video-title {
  flex: 1;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nav-video-item.prev .nav-video-title {
  text-align: left;
}

.nav-video-item.next .nav-video-title {
  text-align: right;
}

.nav-video-item:hover .nav-video-title {
  color: var(--primary);
}

.nav-video-empty {
  display: none;
}

@media (max-width: 768px) {
  .nav-videos {
    margin-top: 18px;
    padding-top: 16px;
  }
  
  .nav-videos-grid {
    gap: 8px;
  }
  
  .nav-video-item {
    padding: 8px;
    gap: 10px;
  }
  
  .nav-video-label {
    width: 28px;
    height: 28px;
  }
  
  .nav-video-label svg {
    width: 14px;
    height: 14px;
  }
  
  .nav-video-thumb {
    width: 80px;
    height: 45px;
  }
  
  .nav-video-title {
    font-size: 0.75rem;
  }
  
  .nav-video-duration {
    font-size: 0.6rem;
    padding: 1px 3px;
  }
}



.audio-player-section {
  margin: 20px 0;
  padding: 0 8px;
}

.audio-player-container {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.audio-player-container:hover {
  border-color: rgba(75, 229, 22, 0.3);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.audio-player-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.audio-info-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.audio-badges-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.audio-download-btn-desktop {
  display: inline-flex !important;
}

.audio-download-btn-mobile {
  display: none !important;
}

.audio-icon-wrapper {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(75, 229, 22, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: audioIconPulse 2s ease-in-out infinite;
}

@keyframes audioIconPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(75, 229, 22, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 8px rgba(75, 229, 22, 0);
  }
}

.audio-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.audio-label {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 600;
}

.audio-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: rgba(75, 229, 22, 0.15);
  color: var(--primary);
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  width: fit-content;
  border: 1px solid rgba(75, 229, 22, 0.3);
}

.audio-size-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
}

@keyframes fadeInSize {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.audio-size-inline .size-value {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.audio-size {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
  padding: 6px 12px;
  background: var(--bg-soft);
  border-radius: 8px;
  animation: fadeInSize 0.5s ease;
}

.audio-size .size-value {
  font-variant-numeric: tabular-nums;
}

.audio-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.audio-play-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  color: var(--btn-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(75, 229, 22, 0.3);
}

.audio-play-btn:hover {
  background: var(--primary-2);
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(75, 229, 22, 0.4);
}

.audio-play-btn.playing {
  animation: playingPulse 1.5s ease-in-out infinite;
}

@keyframes playingPulse {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(75, 229, 22, 0.3);
  }
  50% {
    box-shadow: 0 4px 20px rgba(75, 229, 22, 0.6);
  }
}

.audio-progress-container {
  flex: 1;
  position: relative;
  height: 60px;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
}

.audio-waveform {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.audio-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, 
    var(--primary) 0%, 
    var(--primary-2) 50%, 
    rgba(75, 229, 22, 0.4) 85%, 
    rgba(75, 229, 22, 0) 100%
  );
  border-radius: 8px;
  pointer-events: none;
  transition: width 0.1s linear;
}

.audio-progress::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 70%;
  background: var(--primary);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(75, 229, 22, 0.6), 0 0 12px rgba(75, 229, 22, 0.3);
}

.audio-seek {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 10;
}

.audio-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 25, 22, 0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  animation: fadeIn 0.3s ease;
}

.audio-loading-bars {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
}

.loading-bar {
  width: 4px;
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
  animation: waveAnimation 1.2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(75, 229, 22, 0.4);
}

.loading-bar:nth-child(1) {
  animation-delay: 0s;
}

.loading-bar:nth-child(2) {
  animation-delay: 0.1s;
}

.loading-bar:nth-child(3) {
  animation-delay: 0.2s;
}

.loading-bar:nth-child(4) {
  animation-delay: 0.3s;
}

.loading-bar:nth-child(5) {
  animation-delay: 0.4s;
}

@keyframes waveAnimation {
  0%, 100% {
    transform: scaleY(0.3);
    opacity: 0.5;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

.audio-time {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  min-width: 90px;
}

.time-separator {
  color: var(--line);
}

.audio-volume-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.audio-volume-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.audio-volume-btn:hover {
  background: var(--bg);
  border-color: var(--primary);
  color: var(--primary);
}

.audio-volume {
  width: 80px;
  height: 4px;
  appearance: none;
  background: var(--line);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.audio-volume::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.audio-volume::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 8px rgba(75, 229, 22, 0.6);
}

.audio-volume::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.audio-volume::-moz-range-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 8px rgba(75, 229, 22, 0.6);
}

.audio-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.75rem;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  backdrop-filter: blur(4px);
  height: fit-content;
}

.audio-download-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
  transform: translateY(-1px);
}

.audio-download-btn .download-icon {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  opacity: 0.7;
}

.audio-download-btn:hover .download-icon {
  transform: translateY(2px);
  opacity: 1;
}

@media (max-width: 768px) {
  .audio-player-section {
    margin: 16px 0;
    padding: 0 4px;
  }
  
  .audio-player-container {
    padding: 16px;
  }
  
  .audio-player-header {
    gap: 8px;
  }
  
  .audio-info-wrapper {
    gap: 8px;
  }
  
  .audio-badges-row {
    gap: 6px;
  }
  
  .audio-icon-wrapper {
    width: 36px;
    height: 36px;
  }
  
  .audio-download-btn-desktop {
    display: none !important;
  }
  
  .audio-download-btn-mobile {
    display: inline-flex !important;
    font-size: 0.7rem;
    padding: 3px 8px;
    gap: 4px;
  }
  
  .audio-download-btn-mobile .download-icon {
    width: 12px;
    height: 12px;
  }
  
  .audio-loading-bars {
    height: 24px;
    gap: 4px;
  }
  
  .loading-bar {
    width: 3px;
  }
  
  .audio-progress::after {
    width: 2px;
    height: 60%;
  }
  
  .audio-controls {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .audio-play-btn {
    width: 44px;
    height: 44px;
  }
  
  .audio-progress-container {
    flex-basis: 100%;
    order: 4;
    height: 50px;
  }
  
  .audio-time {
    order: 2;
    font-size: 0.8rem;
    min-width: auto;
  }
  
  .audio-volume-control {
    order: 3;
    flex: 1;
    justify-content: flex-end;
  }
  
  .audio-volume {
    width: 60px;
  }
}

.video-channel {
  display: flex;
  align-items: center;
  gap: 6px;
  order: -1;
  margin-bottom: 2px;
}
.video-preview-row {
  display: flex;
  margin-bottom: 0;
}
.video-preview-row .video-preview-btn {
  margin-left: 0;
}
.video-preview-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0;
  height: 24px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 500;
  margin-left: auto;
}
.video-preview-btn:hover {
  color: var(--text);
}
.video-preview-btn svg {
  pointer-events: none;
  width: 11px;
  height: 11px;
}
.video-preview-btn span {
  white-space: nowrap;
}

.channel-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.channel-link:hover {
  opacity: 0.8;
}

.channel-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.channel-name-small {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.channel-name-short {
  display: none;
}

.video-channel.tight-fit .channel-name-full {
  display: none;
}
.video-channel.tight-fit .channel-name-short {
  display: inline;
}

@media (max-width: 400px) {
  .channel-name-full {
    display: none;
  }
  .channel-name-short {
    display: inline;
  }
}

.channel-verified-small {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.video-title-channel-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}


.channel-actions-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 12px;
}

.video-page-channel {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
}


.video-title-channel-wrapper .video-actions.mobile-actions {
  display: none;
}


.video-header > .video-actions.desktop-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.video-page-channel .channel-link {
  gap: 8px;
}

.video-page-channel .channel-avatar {
  width: 32px;
  height: 32px;
}

.video-page-channel .channel-name-small {
  font-size: 0.9rem;
  font-weight: 600;
}

.video-page-channel .channel-verified-small {
  width: 18px;
  height: 18px;
}

@media (max-width: 768px) {
  .video-title-channel-wrapper {
    gap: 6px;
  }
  
  .video-page-channel .channel-avatar {
    width: 28px;
    height: 28px;
  }
  
  .video-page-channel .channel-name-small {
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
  }
  
  .video-page-channel .channel-verified-small {
    width: 16px;
    height: 16px;
  }
  
  .video-channel {
    gap: 5px;
    margin-bottom: 4px;
  }
  
  .channel-name-small {
    font-size: 0.7rem;
    max-width: 120px;
  }
  
  .channel-avatar {
    width: 20px;
    height: 20px;
  }
  
  .channel-verified-small {
    width: 14px;
    height: 14px;
  }
}

.category-slider-wrapper {
  position: relative;
  margin-bottom: 16px;
  z-index: 10;
}
.category-slider-container {
  position: relative;
  overflow: hidden;
}
.category-slider {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 0;
  -webkit-overflow-scrolling: touch;
}
.category-slider::-webkit-scrollbar {
  display: none;
}
.category-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
}
.category-btn:hover {
  background: var(--card);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text);
}
.category-btn.active {
  background: var(--bg-soft);
  border-color: var(--text);
  color: var(--text);
}

.video-category-badge {
  display: inline-block;
  padding: 4px 10px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.video-category-badge:hover {
  background: var(--card);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text);
  transform: translateY(-1px);
}

.video-thumb-wrapper {
  position: relative;
}

.video-count-overlay {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 10;
  pointer-events: none;
}

.video-count-overlay a {
  pointer-events: auto;
}

.view-count-overlay {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.video-card-category-badge {
  display: flex;
  align-items: center;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  pointer-events: auto;
}

.video-card:hover .video-count-overlay {
  opacity: 0;
  pointer-events: none;
}


.video-premium-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 7px;
  background: rgba(var(--primary-rgb), 0.85);
  backdrop-filter: blur(8px);
  border-radius: 6px;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.3px;
  text-transform: uppercase;
  z-index: 10;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.video-card:hover .video-premium-badge {
  opacity: 0;
}

.play-overlay {
  transition: opacity 0.2s ease;
}

.video-card:hover .play-overlay {
  opacity: 1;
}
.category-btn-popup {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--text);
}
.category-btn-popup svg {
  flex-shrink: 0;
}
.category-btn-popup:hover {
  background: var(--card);
}
.category-scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  display: none;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s ease;
  padding: 0;
}
.category-scroll-btn.left {
  left: 0;
  background: linear-gradient(90deg, var(--bg) 50%, transparent);
  padding-right: 10px;
  width: 30px;
  height: 100%;
}
.category-scroll-btn.right {
  right: 0;
}
.category-scroll-btn.right.visible,
.category-scroll-btn.left.visible {
  display: flex;
}
.category-scroll-btn:hover {
  color: var(--text);
}
.category-scroll-btn:active {
  transform: translateY(-50%) scale(0.9);
}
@media (min-width: 769px) {
  .category-slider-container {
    padding: 0 24px 0 0;
  }
  .category-scroll-btn.right.visible,
  .category-scroll-btn.left.visible {
    display: flex;
  }
}
@media (max-width: 768px) {
  .category-slider-wrapper {
    margin-bottom: 10px;
  }
  .category-slider-container {
    padding: 0 20px 0 0;
  }
  .category-btn {
    padding: 5px 10px;
    font-size: 0.72rem;
  }
  .category-btn-popup {
    padding: 5px 8px;
    gap: 4px;
  }
  .category-btn-popup svg {
    width: 10px;
    height: 10px;
  }
  .category-scroll-btn {
    width: 18px;
    height: 18px;
  }
  .category-scroll-btn.left {
    width: 26px;
    height: 100%;
    padding-right: 8px;
  }
  .category-scroll-btn svg {
    width: 12px;
    height: 12px;
  }
  .category-scroll-btn.right.visible,
  .category-scroll-btn.left.visible {
    display: flex;
  }
}
.category-dialog-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.category-dialog-overlay.active {
  display: flex;
}
.category-dialog {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  width: calc(100% - 16px);
  max-width: 400px;
  max-height: 60vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.category-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.85rem;
}
.category-dialog-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.category-dialog-close:active {
  color: var(--text);
}
.category-dialog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 10px;
  overflow-y: auto;
}
.category-dialog-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 6px;
  background: var(--bg-soft);
  border-radius: 8px;
  font-size: 0.72rem;
  color: var(--text);
  text-decoration: none;
  text-align: center;
  transition: background 0.15s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.category-dialog-item:active {
  background: var(--primary);
  color: var(--btn-text);
}
.channels-stories-wrapper {
  display: none;
  position: relative;
  z-index: 10;
}

.channels-stories-wrapper.show-desktop {
  display: block;
  margin-bottom: 8px;
}

.channels-stories-wrapper.show-desktop .channels-stories-inner {
  display: flex;
  align-items: center;
  position: relative;
}

.channels-stories-wrapper.show-desktop .channels-stories-inner::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 100px;
  background: linear-gradient(to left, #101010 0%, rgba(16,16,16,0) 100%);
  pointer-events: none;
  z-index: 5;
}

.channels-stories-wrapper.show-desktop .channels-stories {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 8px 0;
  flex: 1;
}

.channels-stories-wrapper.show-desktop .channels-stories::-webkit-scrollbar {
  display: none;
}

.channels-stories-wrapper.show-desktop .channel-story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  flex-shrink: 0;
  width: 80px;
}

.channels-stories-wrapper.show-desktop .channel-story-avatar-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  padding: 2px;
  border: 2px solid var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.channels-stories-wrapper.show-desktop .channel-story-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-soft);
}

.channels-stories-wrapper.show-desktop .channel-story-name-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
}

.channels-stories-wrapper.show-desktop .channel-story-name {
  font-size: 0.7rem;
  color: var(--text);
  text-align: center;
  width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}

.channels-stories-wrapper.show-desktop .channel-story-verified {
  display: none;
}

.channels-stories-wrapper.show-desktop .channels-stories-nav {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--line);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  z-index: 10;
}

.channels-stories-wrapper.show-desktop .channels-stories-nav.prev {
  left: 4px;
}

.channels-stories-wrapper.show-desktop .channels-stories-nav.next {
  right: 4px;
}

.channels-stories-wrapper.show-desktop .channels-stories-nav.visible {
  display: flex;
}

.channels-stories-wrapper.show-desktop .channels-stories-nav:hover {
  background: var(--bg-soft);
  border-color: rgba(255, 255, 255, 0.2);
}

.channels-stories-wrapper.show-desktop .channels-stories-fade {
  display: none;
}

.channels-stories-wrapper.show-desktop .channel-story-plus {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
}

.channels-stories-wrapper.show-desktop .channel-story-plus svg {
  width: 24px;
  height: 24px;
  color: var(--muted);
}

.channels-stories-wrapper.show-desktop .channel-story-more:hover .channel-story-plus svg {
  color: var(--text);
}

.channels-stories-wrapper.show-desktop .channel-story-item.skeleton .channel-story-avatar-ring {
  border-color: var(--line);
}

.channels-stories-wrapper.show-desktop .channel-story-item.skeleton .channel-story-avatar {
  background: linear-gradient(110deg, var(--bg-soft) 0%, var(--bg-soft) 40%, var(--line) 50%, var(--bg-soft) 60%, var(--bg-soft) 100%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite linear;
}

.channels-stories-wrapper.show-desktop .channel-story-item.skeleton .channel-story-name {
  display: block;
  width: 50px;
  height: 10px;
  background: linear-gradient(110deg, var(--bg-soft) 0%, var(--bg-soft) 40%, var(--line) 50%, var(--bg-soft) 60%, var(--bg-soft) 100%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite linear;
  border-radius: 4px;
}

.channels-showcase {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
  margin-bottom: 32px;
}

.channels-showcase-wrapper {
  margin-bottom: 16px;
  position: relative;
  z-index: 10;
}

.channels-showcase-fade,
.channels-show-more {
  display: none;
}

.channel-card {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--text);
  height: 220px;
}

.channel-card:hover {
  transform: translateY(-4px);
  border-color: var(--card);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.channel-card-cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.skeleton-card .channel-card-cover {
  background: linear-gradient(110deg,var(--bg-soft) 0%,var(--bg-soft) 40%,var(--line) 50%,var(--bg-soft) 60%,var(--bg-soft) 100%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite linear;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.skeleton-card .channel-card-cover::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg,transparent 0%,rgba(255,255,255,0.05) 50%,transparent 100%);
  animation: shimmerGlow 2s infinite;
}

.skeleton-card .channel-card-gradient {
  display: none;
}

.skeleton-card .channel-card-content {
  display: none;
}

.channel-card-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 30%, rgba(0,0,0,0.7) 60%, rgba(0,0,0,0.95) 100%);
  z-index: 2;
}

.channel-card-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  padding: 14px;
}

.channel-card-avatar-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 0;
}

.channel-card-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid #fff;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  flex-shrink: 0;
}

.channel-card-name-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.channel-card-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.channel-card-name-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.channel-card-name {
  font-size: 0.8rem;
  font-weight: 700;
  margin: 0;
  color: #fff;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.channel-card-verified {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.channel-card-bio {
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.channel-card-videos {
  font-size: 0.7rem;
  color: var(--muted);
  margin: 0;
  font-weight: 700;
  text-align: center;
}


@media (max-width: 1024px) {
  .channels-showcase {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .channels-stories-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
    margin-bottom: 8px;
    margin-left: -8px;
    margin-right: -8px;
    padding: 0;
  }
  
  .channels-stories {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 6px 8px;
    flex: 1;
  }
  
  .channels-stories::-webkit-scrollbar {
    display: none;
  }
  
  .channel-story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    flex-shrink: 0;
    width: calc((100% - 12px) / 4);
    min-width: 72px;
    max-width: 88px;
    position: relative;
  }
  
  .channel-story-video-count {
    position: absolute;
    top: 0;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--primary);
    color: var(--text);
    font-size: 0.6rem;
    font-weight: 700;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    box-shadow: 0 1px 3px rgba(0,0,0,0.4);
    line-height: 1;
  }
  
  .channel-story-avatar-ring {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    padding: 2px;
    border: 2px solid var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
  }
  
  .channel-story-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-soft);
  }
  
  .channel-story-name-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    max-width: 100%;
  }
  
  .channel-story-name {
    font-size: 0.7rem;
    color: var(--text);
    text-align: center;
    font-weight: 500;
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
  }
  
  .channel-story-item.skeleton .channel-story-avatar-ring {
    border-color: var(--line);
  }
  
  .channel-story-item.skeleton .channel-story-avatar {
    background: linear-gradient(110deg, var(--bg-soft) 0%, var(--bg-soft) 40%, var(--line) 50%, var(--bg-soft) 60%, var(--bg-soft) 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite linear;
  }
  
  .channel-story-item.skeleton .channel-story-name {
    display: block;
    width: 50px;
    height: 10px;
    background: linear-gradient(110deg, var(--bg-soft) 0%, var(--bg-soft) 40%, var(--line) 50%, var(--bg-soft) 60%, var(--bg-soft) 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite linear;
    border-radius: 4px;
  }
  
  .channels-stories-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 32px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 3;
  }
  
  .channels-stories-fade.left {
    left: 0;
    background: linear-gradient(to right, var(--bg) 0%, transparent 100%);
  }
  
  .channels-stories-fade.right {
    right: 0;
    background: linear-gradient(to left, var(--bg) 0%, transparent 100%);
  }
  
  .channels-stories-fade.visible {
    opacity: 1;
  }
  
  .channels-stories-nav {
    display: none;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--card);
    border: 1px solid var(--line);
    color: var(--text);
    cursor: pointer;
    z-index: 4;
    flex-shrink: 0;
    transition: all 0.2s ease;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }
  
  .channels-stories-nav.prev {
    left: 0;
  }
  
  .channels-stories-nav.next {
    right: 0;
  }
  
  .channels-stories-nav.visible {
    display: flex;
  }
  
  .channels-stories-nav:active {
    background: var(--bg-soft);
    transform: translateY(-50%) scale(0.95);
  }
  
  .channels-showcase-wrapper {
    display: none;
  }
}


.channel-page-header {
  position: relative;
  margin-bottom: 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.channel-info-wrapper {
  position: relative;
  padding: 40px 32px 32px;
  background-color: var(--bg);
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.channel-info-wrapper::before {
  content: '';
  position: absolute;
  inset: -10px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-image: inherit;
  filter: blur(20px) brightness(0.8);
  transform: scale(1.1);
  z-index: 0;
}

.channel-info-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.5) 30%,
    rgba(0, 0, 0, 0.85) 100%
  );
  z-index: 1;
}

.channel-no-cover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, var(--primary) 100%);
  background-size: 200% 200%;
  animation: gradientShift 15s ease infinite;
}

.channel-no-cover::before {
  background: none;
  filter: none;
}

.channel-no-cover::after {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.5) 50%,
    rgba(0, 0, 0, 0.8) 100%
  );
  z-index: 1;
}

.channel-no-cover .channel-back-btn,
.channel-no-cover .channel-info-content {
  z-index: 2;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.channel-back-btn {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 10;
}

.channel-back-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--btn-text);
  transform: translateX(-4px);
  box-shadow: 0 6px 16px rgba(244,0,45,0.4);
}

.channel-info-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 24px;
  width: 100%;
}

.channel-avatar-large {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.9);
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  background: var(--bg);
}

.channel-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 4px;
}

.channel-name-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.channel-name {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.channel-verified-badge {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.channel-bio {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin: 0;
  max-width: 800px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.channel-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.channel-stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  font-size: 0.95rem;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.channel-stat-item svg {
  color: var(--primary);
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

@media (max-width: 768px) {
  .channel-page-header {
    margin-bottom: 20px;
    border-radius: 16px;
  }
  
  .channel-info-wrapper {
    padding: 32px 16px 24px;
    min-height: 280px;
    align-items: center;
  }
  
  .channel-info-wrapper::before {
    filter: blur(15px) brightness(0.8);
  }
  
  .channel-back-btn {
    top: 16px;
    left: 16px;
    width: 40px;
    height: 40px;
  }
  
  .channel-back-btn svg {
    width: 18px;
    height: 18px;
  }
  
  .channel-info-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }
  
  .channel-avatar-large {
    width: 100px;
    height: 100px;
    border-width: 3px;
  }
  
  .channel-details {
    align-items: center;
    padding-bottom: 0;
    gap: 8px;
  }
  
  .channel-name-row {
    justify-content: center;
    gap: 8px;
  }
  
  .channel-name {
    font-size: 1.6rem;
  }
  
  .channel-verified-badge {
    width: 24px;
    height: 24px;
  }
  
  .channel-bio {
    font-size: 0.9rem;
    max-width: 100%;
  }
  
  .channel-stats {
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
  }
  
  .channel-stat-item {
    padding: 7px 14px;
    font-size: 0.85rem;
  }
  
  .channel-stat-item svg {
    width: 16px;
    height: 16px;
  }
}

.banner-showcase {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 24px;
  position: relative;
  z-index: 10;
}

.banner-showcase-item {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
}

.banner-showcase-item:hover {
  opacity: 0.9;
}

.banner-showcase-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

a.banner-showcase-item {
  cursor: pointer;
}

.banner-showcase.banner-showcase-single {
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
  padding: 0;
}

.banner-showcase-single .banner-showcase-item {
  border-radius: 0;
}

@media (max-width: 768px) {
  .banner-showcase {
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    margin-bottom: 16px;
  }
  
  .banner-showcase-item {
    border-radius: 6px;
  }
  
  .banner-showcase.banner-showcase-single {
    grid-template-columns: 1fr;
    gap: 0;
    margin: 0;
    padding: 0;
  }
  
  .banner-showcase-single .banner-showcase-item {
    border-radius: 0;
  }
}

.view-toggle-wrapper {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  position: relative;
  z-index: 10;
}

.video-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.video-tabs::-webkit-scrollbar {
  display: none;
}

.video-tab {
  position: relative;
  padding: 8px 16px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.video-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.2s ease;
}

.video-tab:hover {
  color: var(--text);
}

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

.video-tab.active::after {
  width: 100%;
}

.view-section-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: -0.5px;
}

.view-toggle-buttons {
  display: flex;
  gap: 0;
  justify-content: flex-end;
}

.view-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: 0;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  margin-left: -1px;
}

.view-toggle-btn:first-child {
  border-radius: 10px 0 0 10px;
  margin-left: 0;
}

.view-toggle-btn:last-child {
  border-radius: 0 10px 10px 0;
}

.view-toggle-btn svg {
  width: 18px;
  height: 18px;
}

.view-toggle-btn:hover {
  background: var(--bg-soft);
  color: var(--text);
}

.view-toggle-btn.active {
  background: var(--card);
  color: var(--primary);
}

.video-grid.list-view {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.video-grid.list-view .video-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  padding: 0;
  background: var(--card);
  border-radius: 10px;
  overflow: hidden;
}

.video-grid.list-view .video-thumb-wrapper {
  width: 260px;
  flex-shrink: 0;
}

.video-grid.list-view .video-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 8px;
  overflow: hidden;
}

.video-grid.list-view .video-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  padding: 12px 16px;
  min-width: 0;
}

.video-grid.list-view .video-channel {
  display: contents;
}
.video-grid.list-view .video-channel .channel-link {
  display: flex;
  align-items: center;
  gap: 6px;
  order: 2;
}
.video-grid.list-view .video-preview-btn {
  order: 1;
  margin-left: 0;
  align-self: flex-start;
}

.video-grid.list-view .video-channel .channel-avatar {
  width: 22px;
  height: 22px;
}

.video-grid.list-view .video-channel .channel-name-small {
  font-size: 0.85rem;
}

.video-grid.list-view .video-upload-date {
  font-size: 0.75rem;
  margin-top: 0;
  color: var(--muted);
  opacity: 0.7;
  order: 4;
}

.video-grid.list-view .video-title-link {
  order: 3;
  width: 100%;
}

.video-grid.list-view .video-title {
  font-size: 0.9rem;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0;
  line-height: 1.4;
}

.video-grid.list-view .video-meta {
  order: 3;
  display: none;
}

.video-grid.list-view .video-duration-overlay {
  position: absolute;
  bottom: 6px;
  right: 6px;
  font-size: 0.65rem;
  padding: 2px 5px;
}

.video-grid.list-view .video-premium-badge {
  top: 6px;
  right: 6px;
  padding: 2px 5px;
  font-size: 0.5rem;
}

.video-grid.list-view .video-card-category-badge {
  display: none;
}


@media (max-width: 768px) {
  .view-toggle-wrapper {
    margin-bottom: 12px;
    gap: 8px;
    position: relative;
    z-index: 10;
  }
  
  .video-tabs {
    gap: 0;
    flex: 1;
    min-width: 0;
  }
  
  .video-tab {
    padding: 6px 12px;
    font-size: 0.85rem;
  }
  
  .view-section-title {
    font-size: 1.1rem;
  }
  
  .view-toggle-btn {
    width: 34px;
    height: 34px;
  }
  
  .view-toggle-btn svg {
    width: 16px;
    height: 16px;
  }
  
  .video-grid.list-view {
    gap: 8px;
    padding-bottom: 100px;
  }
  
  .video-grid.list-view .video-card {
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    padding: 0;
    border-radius: 10px;
  }
  
  .video-grid.list-view .video-thumb-wrapper {
    width: 230px;
    flex-shrink: 0;
  }
  
  .video-grid.list-view .video-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 8px;
  }
  
  .video-grid.list-view .video-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    padding: 8px 10px;
    min-width: 0;
  }
  
  .video-grid.list-view .video-channel {
    display: contents;
  }
  
  .video-grid.list-view .video-channel .channel-link {
    order: 2;
  }
  
  .video-grid.list-view .video-preview-btn {
    order: 1;
    margin-left: 0;
    align-self: flex-start;
  }
  
  .video-grid.list-view .video-upload-date {
    font-size: 0.7rem;
    order: 4;
    white-space: nowrap;
    margin-top: 0;
    color: var(--muted);
    opacity: 0.7;
  }
  
  .video-grid.list-view .video-title-link {
    order: 3;
    width: 100%;
  }
  
  .video-grid.list-view .video-title {
    font-size: 0.8rem;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0;
    line-height: 1.3;
  }
  
  .video-grid.list-view .channel-link {
    gap: 4px;
  }
  
  .video-grid.list-view .channel-avatar {
    width: 18px;
    height: 18px;
  }
  
  .video-grid.list-view .channel-name-small {
    font-size: 0.75rem;
    max-width: 100%;
  }
  
  .video-grid.list-view .channel-verified-small {
    width: 12px;
    height: 12px;
  }
  
  .video-grid.list-view .video-duration-overlay {
    font-size: 0.6rem;
    padding: 2px 4px;
    bottom: 4px;
    right: 4px;
  }
  
  .video-grid.list-view .video-premium-badge {
    top: 4px;
    right: 4px;
    padding: 2px 4px;
    font-size: 0.5rem;
    border-radius: 3px;
  }
  
  .video-grid.list-view .video-card-category-badge {
    display: none;
  }
  
  .video-grid.list-view .video-meta {
    display: none;
  }
}

.permission-overlay {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.permission-thumbnails {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.permission-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.permission-overlay.not-logged-in .permission-thumb {
  filter: blur(12px);
  -webkit-filter: blur(12px);
}

.permission-thumb:first-child {
  opacity: 1;
}

.permission-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 40px;
  text-align: center;
  max-width: 500px;
}

.permission-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eye-icon {
  width: 48px;
  height: 48px;
  filter: invert(1) drop-shadow(0 2px 8px rgba(16, 16, 16, 0.4)) drop-shadow(0 4px 16px rgba(16, 16, 16, 0.3));
  opacity: 0.9;
}

.permission-message {
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--text);
  margin: 0;
  font-weight: 500;
  text-shadow: 0 2px 8px rgba(16, 16, 16, 0.4), 0 4px 16px rgba(16, 16, 16, 0.3), 0 1px 3px rgba(16, 16, 16, 0.5);
}

.permission-buttons {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.permission-btn {
  padding: 12px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.permission-btn-login {
  background: var(--text);
  border: 1px solid var(--text);
  color: var(--bg);
}

.permission-btn-login:hover {
  background: var(--bg);
  border-color: var(--input-border);
  color: var(--text);
}

.permission-btn-register {
  background: var(--primary);
  color: var(--btn-text);
  border: 1px solid var(--primary);
}

.permission-btn-register:hover {
  background: var(--bg);
  border-color: var(--input-border);
}

.permission-btn-subscribe {
  background: var(--primary);
  color: var(--btn-text);
  border: 1px solid var(--primary);
}

.permission-btn-subscribe:hover {
  background: var(--primary-2);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(111, 92, 255, 0.3);
}

.watch-limit-btn-wrapper {
  margin-top: 16px;
}

.watch-limit-subscribe-btn {
  font-size: 0.95rem;
  padding: 12px 24px;
}

@media (max-width: 768px) {
  .watch-limit-btn-wrapper {
    margin-top: 10px;
  }
  
  .watch-limit-subscribe-btn {
    font-size: 0.8rem;
    padding: 8px 16px;
    min-width: auto;
    max-width: none;
  }
}

@media (max-width: 768px) {
  .permission-overlay {
    border-radius: 12px;
  }
  
  .permission-content {
    gap: 12px;
    padding: 16px;
    max-width: 90%;
  }
  
  .permission-icon {
    width: 48px;
    height: 48px;
  }
  
  .eye-icon {
    width: 28px;
    height: 28px;
  }
  
  .permission-message {
    font-size: 0.85rem;
    line-height: 1.4;
  }
  
  .permission-buttons {
    flex-direction: row;
    gap: 8px;
    justify-content: center;
  }
  
  .permission-btn {
    flex: 0 0 auto;
    width: auto;
    min-width: 90px;
    max-width: 130px;
    padding: 8px 12px;
    font-size: 0.75rem;
  }
}

.subscription-overlay {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.subscription-thumbnails {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.subscription-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.subscription-thumb:first-child {
  opacity: 1;
}

.subscription-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 40px;
  text-align: center;
  max-width: 500px;
}

.video-player-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
}

.permission-overlay.not-logged-in .video-player-bg-overlay {
  background: rgba(0, 0, 0, 0.55);
}

.subscription-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.subscription-message {
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--text);
  margin: 0;
  font-weight: 500;
  text-shadow: 0 2px 8px rgba(16, 16, 16, 0.4), 0 4px 16px rgba(16, 16, 16, 0.3), 0 1px 3px rgba(16, 16, 16, 0.5);
}

.subscription-buttons {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.subscription-btn {
  padding: 12px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.subscription-btn-cancel {
  background: var(--text);
  border: 1px solid var(--text);
  color: var(--bg);
}

.subscription-btn-cancel:hover {
  background: var(--muted);
  border-color: var(--muted);
  color: var(--bg);
}

.subscription-btn-subscribe {
  background: var(--primary);
  color: var(--btn-text);
  border: 1px solid var(--primary);
}

.subscription-btn-subscribe:hover {
  background: var(--bg);
  border-color: var(--input-border);
}

@media (max-width: 768px) {
  .subscription-overlay {
    border-radius: 12px;
  }
  
  .subscription-buttons {
    flex-direction: row;
    justify-content: center;
  }
  
  .subscription-btn {
    flex: 0 0 auto;
    width: auto;
    min-width: 100px;
    max-width: 140px;
    padding: 8px 12px;
    font-size: 0.75rem;
  }
  
  .subscription-content {
    gap: 12px;
    padding: 16px;
    max-width: 90%;
  }
  
  .subscription-icon {
    width: 48px;
    height: 48px;
  }
  
  .subscription-message {
    font-size: 0.85rem;
    line-height: 1.4;
  }
  
}

.subscription-page {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

.subscription-header {
  text-align: center;
  margin-bottom: 48px;
  padding-top: 0;
  margin-top: 0;
}

.subscription-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 0 16px 0;
  color: var(--primary);
}

.subscription-subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.subscription-plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

@media (max-width: 1024px) {
  .subscription-plans {
    grid-template-columns: repeat(2, 1fr);
  }
}

.subscription-plan {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  overflow: visible;
}

.plan-icon {
  position: absolute;
  top: -12px;
  left: -12px;
  width: 70px;
  height: auto;
  z-index: 10;
  pointer-events: none;
}

.subscription-plan:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.subscription-plan.popular {
  border-color: var(--primary);
  background: linear-gradient(135deg, var(--card) 0%, rgba(244, 0, 45, 0.05) 100%);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--btn-text);
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(244, 0, 45, 0.3);
}

.plan-header {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.plan-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 6px 0;
  color: var(--text);
}

.plan-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 8px;
}

.price-amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.price-amount.free {
  font-size: 1.8rem;
  color: var(--muted);
}

.price-period {
  font-size: 1.1rem;
  color: var(--muted);
  font-weight: 500;
}

.plan-savings {
  display: inline-block;
  background: rgb(22 229 170 / 10%);
  color: #16e58e;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.plan-features {
  flex: 1;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.plan-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 0.95rem;
}

.feature-icon {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
}

.plan-button {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--primary);
  color: var(--btn-text);
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.plan-button:hover {
  background: var(--bg);
  transform: translateY(-2px);
  outline: 1px solid var(--input-border);
  outline-offset: 0;
}

.plan-button.contact {
  background: var(--bg-soft);
  box-shadow: none;
  border: 1px solid var(--line);
}

.plan-button.contact:hover {
  background: var(--bg);
  transform: translateY(-2px);
}

.plan-button .telegram-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.subscription-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.info-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
}

.info-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.info-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: var(--text);
}

.info-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

@media (max-width: 1024px) {
  .subscription-plans {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .subscription-info {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .subscription-page {
    padding: 0 12px 24px;
  }
  
  .subscription-header {
    margin-bottom: 32px;
    padding-top: 0;
    margin-top: 0;
  }
  
  .subscription-title {
    font-size: 1.8rem;
  }
  
  .subscription-subtitle {
    font-size: 0.95rem;
  }
  
  .subscription-plans {
    column-gap: 16px;
    row-gap: 28px;
    margin-bottom: 32px;
  }
  
  .subscription-plan {
    padding: 16px;
  }
  
  .plan-icon {
    width: 55px;
    top: -8px;
    left: -8px;
  }
  
  .popular-badge {
    font-size: 0.6rem;
    padding: 3px 10px;
    white-space: nowrap;
  }
  
  .plan-title {
    font-size: 1.1rem;
  }
  
  .price-amount {
    font-size: 2rem;
  }
  
  .price-amount.free {
    font-size: 1.3rem;
  }
  
  .price-period {
    font-size: 0.85rem;
  }
  
  .plan-feature {
    font-size: 0.8rem;
    gap: 6px;
  }
  
  .feature-icon {
    width: 16px;
    height: 16px;
    min-width: 16px;
  }
  
  .plan-button {
    padding: 10px 12px;
    font-size: 0.8rem;
    white-space: nowrap;
  }
  
  .info-card {
    padding: 20px;
  }
  
  .info-card h3 {
    font-size: 1.1rem;
  }
  
  .info-card p {
    font-size: 0.9rem;
  }
}

.checkout-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.checkout-container {
  width: 100%;
}

.checkout-header {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.checkout-header-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checkout-title {
  font-size: 2rem;
  font-weight: 800;
  margin: 0;
  color: var(--text);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  padding: 8px 16px;
  border-radius: 10px;
  width: fit-content;
}

.back-link:hover {
  color: var(--primary);
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--input-border);
}

.checkout-content {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 32px;
  transition: all 0.3s ease;
}

.checkout-left {
  flex: 1;
  transition: all 0.3s ease;
}

.checkout-right {
  position: sticky;
  top: 20px;
  height: fit-content;
  transition: all 0.3s ease;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100px;
}

.cart-item {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cart-item:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.cart-item-info {
  flex: 1;
}

.cart-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.cart-item-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.cart-item-price {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0 0 16px 0;
  color: var(--primary);
}

.cart-item-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.cart-item-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 0.9rem;
}

.cart-item-feature svg {
  color: var(--primary);
  flex-shrink: 0;
}

.cart-item-remove {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  padding: 4px 8px;
}

.cart-item-remove:hover {
  color: var(--primary);
}

.empty-cart {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  gap: 20px;
}

.empty-cart svg {
  color: var(--muted);
  opacity: 0.5;
}

.empty-cart p {
  font-size: 1.2rem;
  color: var(--muted);
  margin: 0;
}

.payment-summary {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.summary-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 20px 0;
  color: var(--text);
}

.summary-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
  min-height: 50px;
  transition: all 0.3s ease;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  color: var(--text);
  animation: fadeIn 0.3s ease;
}

.summary-divider {
  height: 1px;
  background: var(--line);
  margin: 16px 0;
}

.total-row {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  padding-top: 8px;
}

.total-usd {
  font-size: 1.3rem;
  color: var(--primary);
}

.crypto-info {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin: 20px 0;
}

.crypto-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--primary);
  font-weight: 600;
}

.crypto-rate, .crypto-amount {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 0.9rem;
}

.rate-value {
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.trx-amount {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

.wallet-section {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin: 20px 0;
}

.wallet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--btn-text);
  transform: translateY(-1px);
}

.wallet-address {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--text);
  word-break: break-all;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wallet-address:hover {
  border-color: var(--primary);
}

.wallet-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  background: rgba(167, 167, 167, 0.1);
  border: 1px solid var(--muted);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.wallet-warning svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.payment-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.btn-complete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: var(--btn-text);
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-complete:hover:not(:disabled) {
  background: var(--primary-2);
  transform: translateY(-2px);
}

.btn-complete:disabled {
  background: var(--line);
  color: var(--muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--muted);
  padding: 12px 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-cancel:hover {
  background: var(--bg);
  border-color: var(--input-border);
  color: var(--text);
}

.payment-verify-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.verify-container {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow);
  text-align: center;
}

.verify-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}

.status-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 193, 7, 0.1);
  color: var(--primary);
}

.status-icon svg {
  width: 40px;
  height: 40px;
}

.verify-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0;
  color: var(--text);
}

.verify-subtitle {
  font-size: 1rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.payment-details {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  text-align: left;
}

.payment-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.payment-detail-row:last-child {
  border-bottom: none;
}

.payment-detail-label {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

.payment-detail-value {
  font-size: 1rem;
  color: var(--text);
  font-weight: 600;
}

.payment-key-box {
  background: var(--bg);
  border: 1px solid var(--primary);
  border-radius: 8px;
  padding: 16px;
  margin: 20px 0;
  text-align: center;
}

.payment-key-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.payment-key-value {
  font-family: monospace;
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 2px;
  word-break: break-all;
  overflow-wrap: break-word;
}

@media (max-width: 768px) {
  .checkout-page {
    padding: 24px 12px;
  }
  
  .checkout-header {
    margin-bottom: 24px;
  }
  
  .checkout-header-content {
    gap: 12px;
  }
  
  .checkout-title {
    font-size: 1.5rem;
  }
  
  .checkout-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .checkout-right {
    position: static;
  }
  
  .cart-item {
    padding: 20px;
  }
  
  .cart-item-title {
    font-size: 1.1rem;
  }
  
  .cart-item-price {
    font-size: 1.5rem;
    margin: 0 0 12px 0;
  }
  
  .cart-item-features {
    margin-top: 12px;
    padding-top: 12px;
    gap: 8px;
  }
  
  .cart-item-feature {
    font-size: 0.85rem;
    gap: 8px;
  }
  
  .cart-item-feature svg {
    width: 14px;
    height: 14px;
  }
  
  .empty-cart {
    padding: 60px 24px;
  }
  
  .payment-summary {
    padding: 20px;
  }
  
  .summary-title {
    font-size: 1.2rem;
  }
  
  .summary-divider {
    margin: 12px 0 8px 0;
  }
  
  .total-row {
    padding-top: 0;
  }
  
  .wallet-address {
    font-size: 0.75rem;
  }
  
  .wallet-warning {
    font-size: 0.75rem;
  }
  
  .payment-verify-page {
    padding: 24px 12px;
  }
  
  .verify-container {
    padding: 24px;
  }
  
  .verify-title {
    font-size: 1.4rem;
  }
  
  .verify-subtitle {
    font-size: 0.9rem;
  }
  
  .payment-details {
    padding: 16px;
  }
}

.pending-payments-section {
  margin-top: 56px;
  width: 100%;
  transition: margin-top 0.3s ease;
}

.pending-payments-section.in-checkout-left {
  margin-top: 0;
}

.pending-payments-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 32px;
}

.pending-payments-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pending-payment-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.pending-payment-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pending-payment-info {
  flex: 1;
}

.pending-payment-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.pending-badge {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(167, 167, 167, 0.15);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
}

.pending-date {
  font-size: 0.95rem;
  color: var(--muted);
}

.pending-payment-details {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.pending-detail {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pending-label {
  font-size: 0.9rem;
  color: var(--muted);
}

.pending-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.pending-payment-arrow {
  color: var(--muted);
  transition: all 0.2s ease;
  margin-left: 24px;
}

.pending-payment-card:hover .pending-payment-arrow {
  color: var(--primary);
  transform: translateX(4px);
}


.video-suggestions-section {
  margin-top: 30px;
  padding-top: 0;
}

.suggestions-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 30px;
}

.suggestions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .video-suggestions-section {
    margin-top: 30px;
    padding-top: 0;
    padding-left: 3px;
    padding-right: 3px;
  }
  
  .suggestions-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-left: 7px;
  }
  
  .suggestions-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

@media (max-width: 768px) {
  .pending-payments-section {
    margin-top: 40px;
  }
  
  .pending-payments-title {
    font-size: 1.3rem;
    margin-bottom: 24px;
  }
  
  .pending-payment-card {
    padding: 20px;
  }
  
  .pending-payment-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
  }
  
  .pending-payment-details {
    gap: 24px;
  }
  
  .pending-detail {
    gap: 6px;
  }
  
  .pending-payment-arrow {
    display: none;
  }
}

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

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--card);
    border-top: 1px solid var(--line);
    padding: 8px 0;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  .mobile-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--muted);
    font-size: 10px;
    font-weight: 500;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    min-width: 56px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    position: relative;
    white-space: nowrap;
  }


  .mobile-bottom-nav-item:active {
    transform: scale(0.92);
  }

  .mobile-bottom-nav-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60px;
  }

  .mobile-bottom-nav-item svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.8;
  }

  .mobile-bottom-nav-item.active {
    color: var(--text);
  }

  .mobile-bottom-nav-item.active svg {
    stroke: var(--text);
  }

  .nav-user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
  }

  .nav-user-name {
    max-width: 50px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 380px) {
  .mobile-bottom-nav-item {
    font-size: 9px;
    padding: 4px 6px;
    gap: 3px;
    min-width: 50px;
  }

  .mobile-bottom-nav-item span {
    max-width: 52px;
  }

  .mobile-bottom-nav-item svg {
    width: 22px;
    height: 22px;
  }

  .nav-user-avatar {
    width: 22px;
    height: 22px;
    font-size: 11px;
  }
}

@media (max-width: 340px) {
  .mobile-bottom-nav-item {
    font-size: 8.5px;
    padding: 4px 4px;
    gap: 2px;
    min-width: 46px;
  }

  .mobile-bottom-nav-item span {
    max-width: 46px;
  }

  .mobile-bottom-nav-item svg {
    width: 20px;
    height: 20px;
  }

  .nav-user-avatar {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }
}

@media (max-width: 768px) {
  .app-footer {
    padding-bottom: 80px;
  }

  body {
    padding-bottom: 70px;
  }
}


.legal-page-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.legal-page-header {
  text-align: center;
  margin-bottom: 48px;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 24px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--bg-soft);
  transition: all 0.2s ease;
}

.back-button:hover {
  background: var(--card);
  transform: translateX(-4px);
}

.back-button svg {
  transition: transform 0.2s ease;
}

.back-button:hover svg {
  transform: translateX(-4px);
}

.legal-page-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: var(--text);
  background: linear-gradient(135deg, var(--primary), #ff3366);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.legal-page-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.legal-page-content {
  background: var(--card);
  border-radius: 16px;
  padding: 40px;
  border: 1px solid var(--line);
}

.legal-section {
  margin-bottom: 40px;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h2 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--line);
}

.legal-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin: 24px 0 12px 0;
}

.legal-section p {
  line-height: 1.8;
  color: var(--muted);
  margin: 0 0 16px 0;
}

.legal-section ul {
  margin: 16px 0;
  padding-left: 24px;
  color: var(--muted);
  line-height: 1.8;
}

.legal-section li {
  margin-bottom: 8px;
}

.legal-section code {
  background: var(--bg-soft);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  color: var(--primary);
  font-size: 0.9em;
}

.legal-section a {
  color: var(--primary);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.legal-section a:hover {
  opacity: 0.8;
  text-decoration: underline;
}


.contact-info-section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.contact-info-card {
  background: var(--card);
  padding: 32px;
  border-radius: 16px;
  text-align: center;
  border: 1px solid var(--line);
  transition: all 0.3s ease;
}

.contact-info-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(244, 0, 45, 0.15);
}

.contact-info-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: var(--bg-soft);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.contact-info-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: var(--text);
}

.contact-info-card p {
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.contact-form-section {
  background: var(--card);
  padding: 40px;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 500;
  color: var(--text);
  font-size: 0.95rem;
}

.required {
  color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s ease;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}


.custom-select-wrapper {
  position: relative;
  width: 100%;
}

.custom-select {
  width: 100%;
  cursor: pointer;
  padding-right: 40px !important;
}

.custom-select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-select option {
  background: var(--card);
  color: var(--text);
  padding: 12px;
}

.custom-select option:hover,
.custom-select option:focus,
.custom-select option:active,
.custom-select option:checked {
  background: var(--primary) !important;
  background-color: var(--primary) !important;
  color: #fff !important;
}


.custom-select option:hover {
  background-color: var(--primary) !important;
  box-shadow: 0 0 10px 100px var(--primary) inset;
}

.custom-select::-ms-expand {
  display: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: var(--card);
  box-shadow: 0 0 0 3px rgba(244, 0, 45, 0.1);
}

.custom-select:focus + .custom-select-arrow {
  color: var(--primary);
}


.themed-dropdown {
  position: relative;
  width: 100%;
}

.themed-dropdown-selected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--input-bg, rgba(255,255,255,0.05));
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.themed-dropdown-selected:hover {
  border-color: var(--primary);
}

.themed-dropdown.open .themed-dropdown-selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(203, 13, 30, 0.1);
}

.themed-dropdown-selected svg {
  color: var(--muted);
  transition: transform 0.2s, color 0.2s;
}

.themed-dropdown.open .themed-dropdown-selected svg {
  transform: rotate(180deg);
  color: var(--primary);
}

.themed-dropdown-options {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  z-index: 100;
  display: none;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.themed-dropdown.open .themed-dropdown-options {
  display: block;
  animation: dropdownFadeIn 0.15s ease;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.themed-dropdown-option {
  padding: 14px 16px;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.themed-dropdown-option:hover {
  background: var(--primary);
  color: #fff;
}

.themed-dropdown-option.selected {
  background: rgba(203, 13, 30, 0.15);
  color: var(--primary);
}

.themed-dropdown-option.selected:hover {
  background: var(--primary);
  color: #fff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.char-counter {
  text-align: right;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: -16px;
}


.recaptcha-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
}

.recaptcha-wrapper > div {
  display: inline-block;
}

#contactRecaptcha {
  filter: invert(1) grayscale(100%) contrast(1.3) brightness(0.95);
  transition: filter 0.3s ease;
  border-radius: 8px;
  overflow: hidden;
}

#contactRecaptcha:hover {
  filter: invert(1) grayscale(100%) contrast(1.4) brightness(1);
}

#contactRecaptcha > div {
  margin: 0 auto;
  display: block;
}

.form-message {
  padding: 16px 20px;
  border-radius: 10px;
  font-weight: 500;
  margin-bottom: 24px;
}

.form-message.success {
  background: rgb(22 229 170 / 10%);
  color: #16e58e;
  border: 1px solid #16e58e;
}

.form-message.error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.contact-submit-btn {
  background: var(--primary);
  color: white;
  padding: 16px 32px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.contact-submit-btn:hover:not(:disabled) {
  background: #d90029;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(244, 0, 45, 0.3);
}

.contact-submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

.contact-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-loading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.faq-item {
  background: var(--bg-soft);
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-item h3 {
  color: var(--text);
  font-size: 1.15rem;
  margin: 0 0 12px 0;
}

.faq-item p {
  color: var(--muted);
  margin: 0 0 12px 0;
}

.faq-item ul {
  margin: 12px 0;
  padding-left: 24px;
}

.faq-item li {
  color: var(--muted);
  margin-bottom: 6px;
}


.back-button {
  display: none;
}


@media (max-width: 768px) {
  .legal-page-container {
    padding: 20px 16px;
  }

  .legal-page-header {
    margin-bottom: 32px;
  }

  .legal-page-title {
    font-size: 1.75rem;
  }

  .legal-page-content {
    padding: 24px 20px;
  }

  .legal-section h2 {
    font-size: 1.4rem;
  }

  .legal-section h3 {
    font-size: 1.1rem;
  }

  .contact-info-section {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 32px;
  }

  .contact-form-section {
    padding: 24px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-submit-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .legal-page-title {
    font-size: 1.5rem;
  }

  .legal-section h2 {
    font-size: 1.25rem;
  }

  .legal-section h3 {
    font-size: 1rem;
  }

  .contact-info-card {
    padding: 20px;
  }

  .contact-info-icon {
    width: 44px;
    height: 44px;
  }

  #contactRecaptcha {
    transform: scale(0.88);
    transform-origin: center;
  }
}

@media (max-width: 400px) {
  .contact-info-section {
    gap: 10px;
  }

  #contactRecaptcha {
    transform: scale(0.78);
    transform-origin: center;
  }
}

.video-preview-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
}
.video-preview-lightbox.active {
  display: flex;
}
.preview-lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
}
.preview-lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.preview-lightbox-thumb-wrapper {
  position: relative;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0,0,0,0.5);
}
.preview-lightbox-thumb {
  display: block;
  max-width: 85vw;
  max-height: 85vh;
  width: auto;
  height: auto;
}
.preview-lightbox-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--primary);
  width: 0%;
  transition: width 0.45s linear;
}
.preview-lightbox-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  min-width: 300px;
  min-height: 200px;
  border-radius: 12px;
}
.preview-spinner {
  width: 32px;
  height: 32px;
  border: 2px solid rgba(255,255,255,0.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.preview-lightbox-close {
  display: none;
}
@media (max-width: 768px) {
  .preview-lightbox-thumb {
    max-width: 95vw;
    max-height: 80vh;
  }
}

.banner-showcase{max-height:200px;transition:opacity 0.3s ease,max-height 0.3s ease,margin 0.3s ease,padding 0.3s ease;overflow:hidden}
.channels-stories-wrapper{max-height:120px;transition:opacity 0.3s ease,max-height 0.3s ease,margin 0.3s ease,padding 0.3s ease;overflow:hidden}
.channels-showcase-wrapper{max-height:600px;transition:opacity 0.3s ease,max-height 0.3s ease,margin 0.3s ease,padding 0.3s ease;overflow:hidden}
body.search-active .banner-showcase,body.search-active .channels-stories-wrapper,body.search-active .channels-showcase-wrapper{opacity:0;max-height:0;margin:0;padding:0;pointer-events:none}

.video-subscription-plans {
  margin: 16px 0;
  padding: 12px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.video-sub-header {
  text-align: center;
  margin-bottom: 10px;
}
.video-sub-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 2px 0;
}
.video-sub-subtitle {
  font-size: 0.72rem;
  color: var(--muted);
  opacity: 0.6;
  margin: 0;
}
.video-sub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.video-sub-card {
  position: relative;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
  transition: all 0.2s ease;
}
.video-sub-card:hover {
  border-color: var(--muted);
}
.video-sub-popular {
  border-color: var(--muted);
  padding-top: 16px;
}
.video-sub-badge {
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--muted);
  color: var(--bg);
  font-size: 0.55rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
  z-index: 1;
}
.video-sub-duration {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 4px;
}
.video-sub-price {
  margin-bottom: 8px;
}
.video-sub-amount {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}
.video-sub-period {
  font-size: 0.65rem;
  color: var(--muted);
  opacity: 0.7;
}
.video-sub-features {
  margin-bottom: 8px;
}
.video-sub-feature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 0.65rem;
  color: var(--muted);
  margin-bottom: 2px;
}
.video-sub-feature svg {
  width: 10px;
  height: 10px;
  color: var(--muted);
  flex-shrink: 0;
}
.video-sub-btn {
  display: block;
  width: 100%;
  padding: 6px 10px;
  background: var(--bg-soft);
  border: 1px solid #4a4848;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s ease;
  cursor: pointer;
}
.video-sub-btn:hover {
  background: var(--bg);
  border-color: var(--muted);
  color: var(--text);
}
.video-sub-popular .video-sub-btn {
  background: var(--muted);
  color: var(--bg);
  border-color: var(--muted);
}
.video-sub-popular .video-sub-btn:hover {
  background: var(--text);
  border-color: var(--text);
}
.video-sub-payment-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 0.7rem;
  color: var(--muted);
  opacity: 0.6;
}
.video-sub-payment-info svg {
  width: 12px;
  height: 12px;
  color: var(--muted);
}
@media (max-width: 768px) {
  .video-subscription-plans {
    padding: 8px 4px;
    margin: 12px 0;
  }
  .video-sub-header {
    margin-bottom: 8px;
  }
  .video-sub-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
  }
  .video-sub-card {
    padding: 8px 6px;
  }
  .video-sub-popular {
    padding-top: 14px;
  }
  .video-sub-card:nth-child(3) {
    grid-column: 1 / -1;
  }
  .video-sub-title {
    font-size: 0.85rem;
  }
  .video-sub-subtitle {
    font-size: 0.68rem;
  }
  .video-sub-amount {
    font-size: 1rem;
  }
  .video-sub-feature {
    font-size: 0.6rem;
  }
  .video-sub-btn {
    padding: 5px 8px;
    font-size: 0.7rem;
  }
  .video-sub-payment-info {
    font-size: 0.65rem;
    margin-top: 8px;
    padding-top: 6px;
  }
}

.fc-card {
  position: relative;
}
.fc-card .video-thumb {
  position: relative;
}
.fc-card .video-thumb-img {
  object-fit: cover;
}
.fc-label {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  z-index: 5;
  opacity: 0.8;
}
.fc-card .video-title {
  color: var(--text);
}
.fc-desc {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fc-link {
  text-decoration: none;
}
.fc-card:hover .fc-label {
  opacity: 1;
  transform: scale(1.2);
}

.desktop-sidebar {
  display: none;
}

@media (min-width: 1200px) {
  .desktop-sidebar {
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 260px;
    background: var(--bg);
    border-right: 1px solid var(--line);
    z-index: 100;
    padding: 0 16px 16px;
  }
  
  .desktop-sidebar-logo {
    padding: 36px 8px 20px;
    display: flex;
    align-items: center;
  }
  
  .desktop-sidebar-logo-img {
    width: 120px;
    height: auto;
    object-fit: contain;
  }
  
  .desktop-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    overflow-y: auto;
    padding-top: 8px;
  }
  
  .desktop-sidebar-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 28px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
  }
  
  .desktop-sidebar-item:hover {
    background: var(--bg-soft);
  }
  
  .desktop-sidebar-item.active {
    font-weight: 700;
  }
  
  .desktop-sidebar-item svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
  }
  
  .desktop-sidebar-item span {
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .desktop-sidebar-divider {
    height: 1px;
    background: var(--line);
    margin: 8px 14px;
  }
  
  .desktop-sidebar-footer {
    padding: 12px 8px;
    margin-top: auto;
    border-top: 1px solid var(--line);
  }
  
  .desktop-sidebar-subscribe {
    background: var(--text);
    color: var(--bg) !important;
    font-weight: 600;
    margin-top: 8px;
  }
  
  .desktop-sidebar-subscribe:hover {
    background: var(--primary);
    color: var(--btn-text) !important;
  }
  
  .desktop-sidebar-subscribe svg {
    stroke: var(--bg);
  }
  
  .desktop-sidebar-subscribe:hover svg {
    stroke: var(--btn-text);
  }
  
  .desktop-sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 28px;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
  }
  
  .desktop-sidebar-user:hover {
    background: var(--bg-soft);
  }
  
  .desktop-sidebar-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--btn-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
  }
  
  .desktop-sidebar-username {
    flex: 1;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }
  
  .desktop-sidebar-more {
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    flex-shrink: 0;
  }
  
  .desktop-sidebar-more:hover {
    background: var(--bg-soft);
    color: var(--text);
  }
  
  .desktop-sidebar-dropdown {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 6px;
    margin-bottom: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
  }
  
  .desktop-sidebar-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .desktop-sidebar-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--text);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
  }
  
  .desktop-sidebar-dropdown-item:hover {
    background: var(--bg-soft);
    color: var(--primary);
  }
  
  .desktop-sidebar-dropdown-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }
  
  .desktop-sidebar-subscribe-btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    background: var(--text);
    color: var(--bg);
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border-radius: 28px;
    transition: all 0.2s ease;
  }
  
  .desktop-sidebar-subscribe-btn:hover {
    background: var(--primary);
    color: var(--btn-text);
    transform: scale(1.02);
  }
  
  body.has-desktop-sidebar .desktop-sidebar {
    left: calc((100vw - 1400px) / 2);
  }
  
  body.has-desktop-sidebar .container {
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 280px;
  }
  
  body.has-desktop-sidebar .header .brand {
    display: none;
  }
  
  body.has-desktop-sidebar .video-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  body.has-desktop-sidebar .channels-stories {
    max-width: calc(100% - 100px);
  }
  
  body.has-desktop-sidebar .channels-showcase {
    grid-template-columns: repeat(6, 1fr);
  }
  
  body.has-desktop-sidebar .profile-md-container {
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (min-width: 1200px) and (max-width: 1500px) {
  .desktop-sidebar {
    width: 220px;
    left: 0;
  }
  
  body.has-desktop-sidebar .container {
    padding-left: 240px;
  }
  
  body.has-desktop-sidebar .video-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  body.has-desktop-sidebar .channels-showcase {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .desktop-sidebar-username {
    max-width: 100px;
  }
}

@media (min-width: 1600px) {
  body.has-desktop-sidebar .desktop-sidebar {
    left: calc((100vw - 1600px) / 2);
  }
  
  body.has-desktop-sidebar .container {
    max-width: 1600px;
    padding-left: 280px;
  }
  
  body.has-desktop-sidebar .video-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  body.has-desktop-sidebar .channels-showcase {
    grid-template-columns: repeat(8, 1fr);
  }
}

@media (min-width: 1200px) {
  .desktop-sidebar-accordion {
    position: relative;
    margin: 2px 0;
  }
  
  .desktop-sidebar-accordion-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 28px;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
  }
  
  .desktop-sidebar-accordion.open .desktop-sidebar-accordion-header {
    background: var(--bg-soft);
    border-radius: 28px 28px 0 0;
  }
  
  .desktop-sidebar-accordion-header:hover {
    background: var(--bg-soft);
  }
  
  .desktop-sidebar-accordion-header svg:first-child {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
  }
  
  .desktop-sidebar-accordion-header span {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .desktop-sidebar-accordion-arrow {
    margin-left: auto;
    opacity: 0.5;
    transition: transform 0.25s ease;
    flex-shrink: 0;
  }
  
  .desktop-sidebar-accordion.open .desktop-sidebar-accordion-arrow {
    transform: rotate(90deg);
  }
  
  .desktop-sidebar-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    background: var(--bg-soft);
    border-radius: 0 0 28px 28px;
    margin: 0;
  }
  
  .desktop-sidebar-accordion.open .desktop-sidebar-accordion-content {
    max-height: 120px;
  }
  
  .desktop-sidebar-lang-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
  }
  
  .desktop-sidebar-lang-opt:last-child {
    border-radius: 0 0 28px 28px;
    padding-bottom: 12px;
  }
  
  .desktop-sidebar-lang-opt:hover {
    background: var(--line);
    color: var(--text);
  }
  
  .desktop-sidebar-lang-opt.active {
    color: var(--text);
  }
  
  .desktop-sidebar-lang-opt .lang-flag {
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 24px;
  }
  
  .desktop-sidebar-toggle-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 28px;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 2px 0;
  }
  
  .desktop-sidebar-toggle-item:hover {
    background: var(--bg-soft);
  }
  
  .desktop-sidebar-toggle-info {
    display: flex;
    align-items: center;
    gap: 14px;
  }
  
  .desktop-sidebar-toggle-info svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
  }
  
  .desktop-sidebar-labeled-toggle {
    position: relative;
    width: 72px;
    height: 28px;
    cursor: pointer;
    flex-shrink: 0;
  }
  
  .desktop-sidebar-labeled-toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .desktop-sidebar-labeled-slider {
    position: absolute;
    inset: 0;
    background: var(--bg-soft);
    border-radius: 14px;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    overflow: hidden;
    border: 1px solid var(--line);
  }
  
  .desktop-sidebar-labeled-slider .toggle-label-off,
  .desktop-sidebar-labeled-slider .toggle-label-on {
    position: absolute;
    width: 100%;
    text-align: center;
    transition: all 0.25s ease;
  }
  
  .desktop-sidebar-labeled-slider .toggle-label-off {
    color: var(--muted);
    opacity: 1;
    transform: translateY(0);
  }
  
  .desktop-sidebar-labeled-slider .toggle-label-on {
    color: var(--btn-text);
    opacity: 0;
    transform: translateY(10px);
  }
  
  .desktop-sidebar-labeled-toggle input:checked + .desktop-sidebar-labeled-slider {
    background: var(--primary);
    border-color: var(--primary);
  }
  
  .desktop-sidebar-labeled-toggle input:checked + .desktop-sidebar-labeled-slider .toggle-label-off {
    opacity: 0;
    transform: translateY(-10px);
  }
  
  .desktop-sidebar-labeled-toggle input:checked + .desktop-sidebar-labeled-slider .toggle-label-on {
    opacity: 1;
    transform: translateY(0);
  }
}
