/* ADULTS.LIVE — Tube-style theme */
:root {
  --bg: #0a0a0a;
  --bg2: #141414;
  --bg3: #1c1c1c;
  --surface: #222;
  --border: #333;
  --text: #f5f5f5;
  --muted: #999;
  --accent: #ff9000;
  --accent2: #ff6600;
  --accent-glow: rgba(255, 144, 0, 0.35);
  --live: #ff0000;
  --radius: 8px;
  --header-h: 56px;
  --font: 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-red { --accent: #e53935; --accent2: #c62828; --accent-glow: rgba(229,57,53,.35); }
.theme-purple { --accent: #ab47bc; --accent2: #8e24aa; --accent-glow: rgba(171,71,188,.35); }
.theme-rose { --accent: #e94f8a; --accent2: #c13a72; --accent-glow: rgba(233,79,138,.35); }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 14px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
img, video, iframe { max-width: 100%; display: block; }
.hidden { display: none !important; }

/* Animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: scale(1); } }
@keyframes pulseRing { 0% { box-shadow: 0 0 0 0 var(--accent-glow); } 70% { box-shadow: 0 0 0 16px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: var(--delay, 0ms); }
.reveal.visible { opacity: 1; transform: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 20px; border-radius: var(--radius); border: none; font-family: inherit; font-weight: 600; font-size: 13px; cursor: pointer; transition: all .2s var(--ease); }
.btn-accent { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; }
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 8px 24px var(--accent-glow); }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-secondary { background: var(--bg3); border: 1px solid var(--border); color: var(--text); }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-block { width: 100%; }

/* Header — tube style */
.tube-header { position: sticky; top: 0; z-index: 200; background: var(--bg); border-bottom: 1px solid var(--border); height: var(--header-h); }
.header-inner { max-width: 1400px; margin: 0 auto; padding: 0 16px; height: 100%; display: flex; align-items: center; gap: 16px; }
.logo-tube { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; white-space: nowrap; }
.logo-mark { flex-shrink: 0; display: block; }
.logo-tube span { color: var(--accent); }
.header-search { flex: 1; max-width: 560px; display: flex; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .2s; }
.header-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.header-search input { flex: 1; background: none; border: none; padding: 10px 14px; color: var(--text); font-size: 13px; outline: none; }
.header-search button { background: var(--accent); border: none; padding: 0 16px; cursor: pointer; font-size: 14px; transition: background .2s; }
.header-search button:hover { background: var(--accent2); }
.header-nav { display: flex; gap: 4px; }
.header-nav a { padding: 8px 12px; font-size: 12px; font-weight: 600; color: var(--muted); border-radius: var(--radius); transition: all .2s; text-transform: uppercase; letter-spacing: .04em; }
.header-nav a:hover, .header-nav a.active { color: var(--text); background: var(--bg3); }
.nav-live { color: var(--live) !important; }
.nav-telegram { color: #29b6f6 !important; }
.nav-telegram:hover { color: #4fc3f7 !important; background: rgba(41,182,246,.08) !important; }
.live-pulse { display: inline-block; width: 6px; height: 6px; background: var(--live); border-radius: 50%; animation: pulse 1.2s infinite; margin-left: 4px; vertical-align: middle; }
.menu-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.4rem; cursor: pointer; }

/* Live ticker */
.live-ticker { background: linear-gradient(90deg, #1a0000, var(--bg2)); border-bottom: 1px solid #330000; display: flex; align-items: center; overflow: hidden; height: 36px; }
.ticker-label { background: var(--live); color: #fff; font-size: 10px; font-weight: 700; padding: 0 12px; height: 100%; display: flex; align-items: center; letter-spacing: .1em; flex-shrink: 0; animation: pulse 2s infinite; }
.ticker-track { display: flex; gap: 24px; animation: ticker 30s linear infinite; white-space: nowrap; padding-left: 16px; }
.ticker-track a { color: var(--text); font-size: 12px; }
.ticker-track a:hover { color: var(--accent); }
.ticker-sep { color: var(--border); }

/* Main layout */
.tube-main { min-height: calc(100vh - var(--header-h)); max-width: 1400px; margin: 0 auto; padding: 0 16px 48px; }

/* Home banner */
.home-banner { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 32px 24px; margin: 20px 0; background: linear-gradient(135deg, var(--bg2), var(--bg3)); border: 1px solid var(--border); border-radius: 12px; animation: fadeUp .6s var(--ease); }
.banner-content h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; margin-bottom: 8px; }
.banner-content p { color: var(--muted); max-width: 480px; margin-bottom: 16px; }
.banner-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.banner-stats { display: flex; gap: 12px; flex-shrink: 0; }
.stat-pill { text-align: center; padding: 16px 20px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); min-width: 90px; transition: transform .2s; }
.stat-pill:hover { transform: translateY(-3px); border-color: var(--accent); }
.stat-pill strong { display: block; font-size: 1.5rem; color: var(--accent); }
.stat-pill span { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* Category scroll */
.cat-scroll-wrap { overflow: hidden; margin: 16px 0 24px; }
.cat-scroll { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; scrollbar-color: var(--accent) var(--bg2); }
.cat-scroll::-webkit-scrollbar { height: 4px; }
.cat-scroll::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }
.cat-pill { flex-shrink: 0; padding: 8px 16px; background: var(--bg2); border: 1px solid var(--border); border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--muted); transition: all .2s; display: flex; align-items: center; gap: 6px; }
.cat-pill span { background: var(--bg3); padding: 2px 6px; border-radius: 999px; font-size: 10px; }
.cat-pill:hover, .cat-pill.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.cat-pill:hover span, .cat-pill.active span { background: rgba(0,0,0,.2); color: #fff; }

/* Tabs */
.section-tube { padding: 24px 0; }
.section-tube.alt-bg { background: var(--bg2); margin: 0 -16px; padding: 32px 16px; }
.tube-tabs { display: flex; gap: 4px; margin-bottom: 24px; border-bottom: 1px solid var(--border); padding-bottom: 0; overflow-x: auto; }
.tube-tab { background: none; border: none; color: var(--muted); font-family: inherit; font-size: 13px; font-weight: 600; padding: 12px 20px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all .2s; white-space: nowrap; }
.tube-tab:hover { color: var(--text); }
.tube-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-panel { display: none; animation: fadeUp .4s var(--ease); }
.tab-panel.active { display: block; }
.section-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.section-label h2 { font-size: 1.1rem; font-weight: 700; }
.section-label a { color: var(--accent); font-size: 13px; }

/* Video grid — tube cards */
.tube-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.tube-grid.list-view { grid-template-columns: 1fr; }
.tube-card { display: block; }
.tube-card-inner { transition: transform .25s var(--ease); }
.tube-card:hover .tube-card-inner { transform: translateY(-4px); }
.tube-card:hover .tube-overlay { opacity: 1; }
.tube-card:hover .tube-thumb img { transform: scale(1.05); }
.tube-thumb { position: relative; aspect-ratio: 16/9; background: var(--bg3); border-radius: var(--radius); overflow: hidden; }
.tube-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.tube-placeholder { height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--bg3), var(--surface)); }
.tube-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .25s; }
.play-icon { width: 48px; height: 48px; background: var(--accent); border-radius: 50%; position: relative; box-shadow: 0 4px 20px var(--accent-glow); }
.play-icon::after { content: ''; position: absolute; top: 50%; left: 54%; transform: translate(-50%,-50%); border: 10px solid transparent; border-left: 16px solid #fff; }
.play-icon-lg { width: 64px; height: 64px; background: var(--accent); border-radius: 50%; position: relative; opacity: .8; }
.play-icon-lg::after { content: ''; position: absolute; top: 50%; left: 54%; transform: translate(-50%,-50%); border: 14px solid transparent; border-left: 22px solid #fff; }
.tube-badge { position: absolute; top: 8px; left: 8px; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 4px; text-transform: uppercase; }
.quality-badge { background: var(--accent); color: #000; }
.live-badge { background: var(--live); color: #fff; animation: pulse 1.5s infinite; }
.tube-duration { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,.85); font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 4px; }
.tube-lock { position: absolute; bottom: 8px; left: 8px; font-size: 12px; }
.tube-info { padding: 10px 4px; }
.tube-title { font-size: 13px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 6px; transition: color .2s; }
.tube-card:hover .tube-title { color: var(--accent); }
.tube-stats { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.tube-rating { color: var(--accent); font-weight: 600; }
.tube-meta-row { display: flex; gap: 8px; font-size: 10px; color: var(--muted); flex-wrap: wrap; }
.tube-cat { color: var(--accent); }

/* Category tiles */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.category-tile { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; transition: all .25s var(--ease); }
.category-tile:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.cat-icon { display: block; font-size: 1.5rem; color: var(--accent); margin-bottom: 8px; }
.category-tile h3 { font-size: 14px; margin-bottom: 4px; }
.category-tile span { font-size: 11px; color: var(--muted); }

/* Layout with sidebar */
.tube-layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding-top: 24px; }
.tube-sidebar { position: sticky; top: calc(var(--header-h) + 16px); height: fit-content; }
.sidebar-block { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.sidebar-block h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.sidebar-link { display: flex; justify-content: space-between; padding: 8px 10px; font-size: 13px; color: var(--muted); border-radius: 6px; transition: all .15s; margin-bottom: 2px; }
.sidebar-link em { font-style: normal; font-size: 11px; color: var(--border); }
.sidebar-link:hover, .sidebar-link.active { background: var(--bg3); color: var(--accent); }
.tag-cloud-sm { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-sm { font-size: 11px; padding: 4px 10px; background: var(--bg3); border: 1px solid var(--border); border-radius: 999px; color: var(--muted); transition: all .15s; }
.tag-sm:hover, .tag-sm.outline:hover { border-color: var(--accent); color: var(--accent); }
.content-header h1 { font-size: 1.4rem; font-weight: 700; }
.content-header p { color: var(--muted); font-size: 13px; margin-top: 4px; margin-bottom: 16px; }
.view-toggle { display: flex; gap: 4px; margin: 12px 0; }
.view-btn { background: var(--bg2); border: 1px solid var(--border); color: var(--muted); padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 14px; }
.view-btn.active { background: var(--accent); border-color: var(--accent); color: #000; }

/* Watch page */
.watch-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; padding-top: 24px; animation: fadeUp .5s var(--ease); }
.player-wrap { background: #000; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; }
.player-media { width: 100%; height: 100%; object-fit: contain; }
.player-placeholder { height: 100%; min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: var(--muted); }
.watch-info { padding: 16px 0; }
.watch-info h1 { font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; }
.watch-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 16px; }
.action-btn { background: var(--bg2); border: 1px solid var(--border); color: var(--text); padding: 8px 16px; border-radius: var(--radius); cursor: pointer; font-size: 13px; transition: all .2s; }
.action-btn.liked, .action-btn:hover { background: var(--accent); border-color: var(--accent); color: #000; }
.action-stat { font-size: 13px; color: var(--muted); }
.quality-tag { background: var(--accent); color: #000; font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 4px; }
.watch-desc { color: var(--muted); font-size: 14px; line-height: 1.6; margin-bottom: 16px; }
.watch-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.watch-sidebar { position: sticky; top: calc(var(--header-h) + 16px); height: fit-content; max-height: calc(100vh - 80px); overflow-y: auto; }
.watch-sidebar h3 { font-size: 14px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.related-item { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); transition: opacity .2s; }
.related-item:hover { opacity: .85; }
.related-item:hover .related-info p { color: var(--accent); }
.related-thumb { width: 120px; flex-shrink: 0; aspect-ratio: 16/9; background: var(--bg3); border-radius: 6px; overflow: hidden; position: relative; }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-ph { height: 100%; background: var(--surface); }
.related-thumb span { position: absolute; bottom: 4px; right: 4px; font-size: 10px; background: rgba(0,0,0,.8); padding: 1px 4px; border-radius: 3px; }
.related-info p { font-size: 12px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.related-info small { font-size: 11px; color: var(--muted); }

/* Filters, chips, forms */
.filters { margin: 16px 0; }
.search-wrap { position: relative; flex: 1; }
.search-input, .input { width: 100%; padding: 10px 14px; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-family: inherit; font-size: 13px; outline: none; transition: border-color .2s; }
.input:focus, .search-input:focus { border-color: var(--accent); }
.chip { display: inline-flex; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); font-size: 11px; font-weight: 600; color: var(--muted); margin: 0 4px 4px 0; transition: all .15s; }
.chip-active, .chip:hover { background: var(--accent); border-color: var(--accent); color: #000; }
.filter-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; align-items: center; }
.search-form { display: flex; gap: 8px; }
.search-suggest { position: absolute; top: 100%; left: 0; right: 0; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); margin-top: 4px; z-index: 50; max-height: 280px; overflow-y: auto; }
.search-suggest a { display: block; padding: 10px 14px; font-size: 13px; border-bottom: 1px solid var(--border); }
.search-suggest a:hover { background: var(--bg3); color: var(--accent); }

/* Pagination */
.tube-pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 32px 0; }
.page-num { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius); font-size: 13px; font-weight: 600; color: var(--muted); border: 1px solid var(--border); transition: all .15s; }
.page-num.active, .page-num:hover { background: var(--accent); border-color: var(--accent); color: #000; }

/* Age gate */
.gate { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.95); }
.gate-card { max-width: 420px; padding: 40px; text-align: center; background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; animation: scaleIn .5s var(--ease); }
.gate-badge { width: 72px; height: 72px; border-radius: 50%; border: 2px solid var(--accent); color: var(--accent); font-weight: 800; font-size: 1.4rem; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.pulse-ring { animation: pulseRing 2s infinite; }
.gate-card h1 { font-size: 1.4rem; margin-bottom: 8px; }
.gate-card p { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.gate-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* Footer */
.tube-footer { border-top: 1px solid var(--border); padding: 32px 16px; margin-top: 48px; background: var(--bg2); }
.footer-inner { max-width: 1400px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer-brand strong { font-size: 1.1rem; }
.footer-brand p { color: var(--muted); font-size: 12px; margin-top: 4px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 13px; transition: color .2s; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { text-align: center; color: var(--muted); font-size: 11px; margin-top: 24px; opacity: .6; }

/* Empty state */
.empty-state { text-align: center; padding: 64px 24px; color: var(--muted); }
.empty-state h3 { color: var(--text); font-size: 1.25rem; margin-bottom: 8px; }
.empty-icon { font-size: 3rem; display: block; margin-bottom: 16px; opacity: .5; }

/* Admin */
.admin-body { display: flex; min-height: 100vh; background: var(--bg); }
.admin-sidebar { width: 240px; background: var(--bg2); border-right: 1px solid var(--border); padding: 24px 16px; position: fixed; top: 0; bottom: 0; overflow-y: auto; transition: transform .3s var(--ease); }
.admin-main { margin-left: 240px; flex: 1; padding: 32px; animation: fadeUp .4s var(--ease); }
.admin-nav a { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: var(--radius); font-size: 13px; color: var(--muted); margin-bottom: 4px; transition: all .15s; }
.admin-nav a:hover, .admin-nav a.active { background: var(--bg3); color: var(--accent); }
.admin-stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 24px; }
.admin-stat { padding: 20px; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); transition: transform .2s, border-color .2s; animation: fadeUp .5s var(--ease) backwards; }
.admin-stat:nth-child(1){animation-delay:.05s}.admin-stat:nth-child(2){animation-delay:.1s}.admin-stat:nth-child(3){animation-delay:.15s}.admin-stat:nth-child(4){animation-delay:.2s}.admin-stat:nth-child(5){animation-delay:.25s}.admin-stat:nth-child(6){animation-delay:.3s}.admin-stat:nth-child(7){animation-delay:.35s}
.admin-stat:hover { transform: translateY(-3px); border-color: var(--accent); }
.admin-stat p { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.admin-stat h3 { font-size: 1.8rem; font-weight: 700; color: var(--accent); margin-top: 6px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 10px; text-transform: uppercase; }
.admin-table td { padding: 12px 8px; border-bottom: 1px solid var(--border); }
.chart-bar-wrap { margin-top: 24px; }
.chart-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.chart-bar label { width: 80px; font-size: 12px; color: var(--muted); }
.chart-bar-track { flex: 1; height: 8px; background: var(--bg3); border-radius: 4px; overflow: hidden; }
.chart-bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 4px; transition: width 1s var(--ease); }
.theme-picker { display: flex; gap: 12px; margin-top: 12px; }
.theme-swatch { width: 48px; height: 48px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; transition: transform .2s, border-color .2s; }
.theme-swatch:hover, .theme-swatch.selected { transform: scale(1.1); border-color: #fff; }
.theme-swatch.orange { background: #ff9000; }
.theme-swatch.red { background: #e53935; }
.theme-swatch.purple { background: #ab47bc; }
.theme-swatch.rose { background: #e94f8a; }
.card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); }
.flash { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: 13px; }
.flash-success { background: rgba(76,175,80,.15); color: #81c784; border: 1px solid rgba(76,175,80,.3); }
.flash-error, .alert-error { background: rgba(244,67,54,.1); color: #ef9a9a; border: 1px solid rgba(244,67,54,.3); padding: 12px; border-radius: var(--radius); margin-bottom: 12px; font-size: 13px; }
.form-group { margin-bottom: 14px; }
.label { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.mt-10 { margin-top: 32px; }
.muted { color: var(--muted); }
.page-wrap { max-width: 1200px; margin: 0 auto; padding: 32px 16px; }
.section-title { font-size: 1.6rem; font-weight: 700; }

/* Install */
.install-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.install-wrap { width: 100%; max-width: 480px; }
.install-title { text-align: center; font-size: 1.6rem; font-weight: 800; margin-bottom: 24px; }
.install-card { padding: 32px; }
.install-checks ul { list-style: none; margin-top: 8px; font-size: 13px; }
.install-checks li.ok::before { content: '✓ '; color: #4caf50; }
.install-checks li.bad::before { content: '✗ '; color: #f44336; }

/* Responsive */
@media (max-width: 1024px) {
  .watch-layout { grid-template-columns: 1fr; }
  .watch-sidebar { position: static; max-height: none; }
  .tube-layout { grid-template-columns: 1fr; }
  .tube-sidebar { position: static; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
}
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .header-nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--bg2); border-bottom: 1px solid var(--border); flex-direction: column; padding: 12px; }
  .header-nav.open { display: flex; }
  .header-search { display: none; }
  .type-nav-bar { overflow-x: auto; }
  .home-banner { flex-direction: column; text-align: center; }
  .banner-stats { justify-content: center; }
  .tube-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .admin-sidebar { transform: translateX(-100%); z-index: 300; }
  .admin-sidebar.open { transform: none; }
  .admin-main { margin-left: 0; }
  .admin-grid-2 { grid-template-columns: 1fr; }
}

/* Content type nav (XVideos-style) */
.type-nav-bar {
  display: flex; gap: 4px; padding: 8px 16px; background: var(--bg2);
  border-bottom: 1px solid var(--border); overflow-x: auto;
  max-width: 1400px; margin: 0 auto;
  scrollbar-width: none;
}
.type-nav-bar::-webkit-scrollbar { display: none; }
.type-nav-link {
  flex-shrink: 0; padding: 8px 14px; font-size: 12px; font-weight: 600;
  color: var(--muted); border-radius: var(--radius); transition: all .15s; white-space: nowrap;
}
.type-nav-link:hover { background: var(--bg3); color: var(--accent); }
.type-page-header { padding: 24px 0 8px; }
.type-page-header h1 { font-size: 1.5rem; font-weight: 700; }

/* Admin category management */
.admin-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 20px; }
.type-filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.cat-tree-type { margin-bottom: 20px; }
.cat-tree-type h4 { font-size: 13px; color: var(--accent); margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.cat-tree-item { margin-bottom: 8px; }
.cat-tree-row, .cat-tree-sub { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-size: 13px; }
.cat-tree-sub { padding-left: 16px; color: var(--muted); }
.cat-tree-actions { display: flex; gap: 10px; }
.cat-tree-actions a, .link-btn { background: none; border: none; color: var(--accent); font-size: 12px; cursor: pointer; padding: 0; }
.link-btn:hover { text-decoration: underline; }
.cat-check-grid { max-height: 280px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; }
.cat-type-group { margin-bottom: 12px; }
.cat-type-group h4 { font-size: 11px; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.cat-check { display: flex; align-items: center; gap: 8px; font-size: 13px; margin: 4px 0; cursor: pointer; }
.cat-check.sub { padding-left: 16px; color: var(--muted); }
.role-badge { font-size: 10px; padding: 3px 8px; border-radius: 4px; font-weight: 700; text-transform: uppercase; }
.role-admin { background: var(--accent); color: #000; }
.role-subadmin { background: var(--bg3); color: var(--muted); border: 1px solid var(--border); }
.type-badge-sm { font-size: 10px; padding: 2px 8px; background: var(--bg3); border-radius: 4px; color: var(--accent); }
.flash-error { background: rgba(244,67,54,.1); color: #ef9a9a; border: 1px solid rgba(244,67,54,.3); padding: 12px; border-radius: var(--radius); margin-bottom: 16px; }

/* Bulk upload */
.bulk-drop-zone {
  border: 2px dashed var(--border); border-radius: var(--radius); padding: 40px 24px;
  text-align: center; transition: border-color .2s, background .2s; cursor: pointer;
}
.bulk-drop-zone:hover, .bulk-drop-zone.dragover { border-color: var(--accent); background: rgba(255,144,0,.05); }
.bulk-drop-zone input[type=file] { display: block; margin: 0 auto 12px; }
.file-list { margin-top: 16px; }
.file-list-item { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; margin-bottom: 8px; font-size: 13px; }
.sub-pill { font-size: 11px !important; opacity: .85; }

/* Mood / immersive atmosphere */
.mood-site { position: relative; }
.ambient-glow {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(255,80,120,.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 85% 20%, rgba(255,144,0,.1), transparent 50%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(180,40,100,.08), transparent 45%);
  animation: ambientShift 12s ease-in-out infinite alternate;
}
@keyframes ambientShift {
  0% { opacity: .7; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.02); }
}
#site { position: relative; z-index: 1; }
.tube-card.card-premium .tube-thumb::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,144,0,.08));
  pointer-events: none;
}
.tube-card.card-teaser:hover .tube-thumb { box-shadow: 0 0 30px var(--accent-glow); }
.tube-preview-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity .35s var(--ease); z-index: 2;
}
.tube-card.preview-active .tube-preview-video { opacity: 1; }
.tube-card.preview-active .tube-thumb img { opacity: 0; }
.tube-card.preview-active .tube-overlay { opacity: 0; }
.access-badge { top: 8px; right: 8px; left: auto; }
.badge-free { background: #2ecc71; color: #000; }
.badge-teaser { background: #ff6b9d; color: #fff; animation: pulse 2s infinite; }
.badge-premium { background: linear-gradient(135deg, #ffd700, #ff9000); color: #000; }
.access-pill, .access-pill-sm {
  display: inline-block; font-size: 10px; font-weight: 800; padding: 4px 10px;
  border-radius: 999px; text-transform: uppercase; letter-spacing: .06em;
}
.access-pill-sm { font-size: 9px; padding: 3px 8px; }
.access-pill.badge-free, .access-pill-sm.badge-free { background: #2ecc71; color: #000; }
.access-pill.badge-teaser, .access-pill-sm.badge-teaser { background: #ff6b9d; color: #fff; }
.access-pill.badge-premium, .access-pill-sm.badge-premium { background: linear-gradient(135deg, #ffd700, #ff9000); color: #000; }
.adults-player { position: relative; background: #000; }
.adults-player .player-media { width: 100%; height: 100%; object-fit: contain; }
.adults-player .player-controls {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
  opacity: 0; transition: opacity .25s; z-index: 5;
}
.adults-player .player-controls.visible,
.adults-player:hover .player-controls { opacity: 1; }
.adults-player .player-play,
.adults-player .player-vol,
.adults-player .player-fs {
  background: none; border: none; color: #fff; font-size: 18px; cursor: pointer;
  padding: 4px; line-height: 1;
}
.adults-player .player-progress {
  flex: 1; height: 4px; background: rgba(255,255,255,.25); border-radius: 2px; cursor: pointer;
}
.adults-player .player-progress-fill {
  height: 100%; background: var(--accent); border-radius: 2px; width: 0;
  transition: width .1s linear;
}
.adults-player .player-time { font-size: 11px; color: rgba(255,255,255,.8); white-space: nowrap; }
.player-paywall {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.75); backdrop-filter: blur(8px); z-index: 10;
}
.paywall-inner {
  text-align: center; padding: 32px; max-width: 360px;
  background: var(--bg2); border: 1px solid var(--border); border-radius: 12px;
}
.paywall-icon { font-size: 2.5rem; display: block; margin-bottom: 12px; }
.paywall-inner h3 { font-size: 1.2rem; margin-bottom: 8px; }
.paywall-inner p { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.btn-lg { padding: 14px 28px; font-size: 14px; }
.player-premium-gate { position: relative; height: 100%; min-height: 300px; overflow: hidden; }
.player-blur-bg {
  position: absolute; inset: -20px; width: calc(100% + 40px); height: calc(100% + 40px);
  object-fit: cover; filter: blur(24px) brightness(.4); transform: scale(1.1);
}
.pulse-glow { animation: pulseGlow 2.5s ease-in-out infinite; }
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px var(--accent-glow); }
  50% { box-shadow: 0 0 40px var(--accent-glow), 0 0 60px rgba(255,100,150,.2); }
}
.pulse-text {
  background: linear-gradient(90deg, var(--text), var(--accent), var(--text));
  background-size: 200% auto; -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; animation: shimmerText 4s linear infinite;
}
@keyframes shimmerText { to { background-position: 200% center; } }
.watch-title-row { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.watch-title-row h1 { margin: 0; flex: 1; }
.access-options { display: flex; flex-direction: column; gap: 8px; }
.access-option {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer;
  font-size: 13px; transition: all .15s;
}
.access-option:hover, .access-option.selected { border-color: var(--accent); background: rgba(255,144,0,.06); }
.access-option input { accent-color: var(--accent); }
.tube-card:hover .tube-card-inner {
  box-shadow: 0 12px 40px rgba(255,80,120,.15), 0 4px 20px rgba(0,0,0,.4);
}
.tube-card:hover .play-icon {
  transform: scale(1.1);
  box-shadow: 0 0 30px var(--accent-glow), 0 0 50px rgba(255,100,150,.3);
}
.play-icon { transition: transform .25s, box-shadow .25s; }
.membership-page .plan-card:hover { transform: translateY(-6px); border-color: var(--accent); }

/* Cookie consent banner */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 14px 20px; background: rgba(12,12,18,.96); border-top: 1px solid var(--border);
  backdrop-filter: blur(12px); font-size: 13px;
}
.cookie-banner p { margin: 0; flex: 1; min-width: 200px; color: var(--muted); }
.cookie-banner a { color: var(--accent); }

.telegram-cta { margin: 0 0 20px; padding: 0 16px; }
.telegram-cta-inner {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 14px 18px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(41,182,246,.08), rgba(255,144,0,.06));
  border: 1px solid rgba(41,182,246,.25);
}
.telegram-cta-inner strong { display: block; font-size: 14px; margin-bottom: 2px; }
.telegram-cta-inner p { margin: 0; font-size: 12px; }
.telegram-cta-icon { font-size: 1.5rem; line-height: 1; }
.telegram-cta-inner .btn { margin-left: auto; white-space: nowrap; }
.nav-telegram-btn:hover { border-color: #29b6f6; color: #29b6f6; }
.cookie-banner.hidden { display: none; }

/* Site & admin advertisements */
.site-ad { margin: 0; }
.site-ad__link, .site-ad__inner {
  display: block; text-align: center; padding: 10px 16px;
  text-decoration: none; line-height: 1.45; transition: opacity .15s;
}
.site-ad__link:hover { opacity: .92; }
.site-ad--strip .site-ad__link,
.site-ad--strip .site-ad__inner { padding: 8px 20px; }
.site-ad--banner .site-ad__link,
.site-ad--banner .site-ad__inner {
  padding: 20px 24px; border-radius: var(--radius); margin: 16px 0;
}
.site-ad--site_header .site-ad__link,
.site-ad--site_header .site-ad__inner { border-bottom: 1px solid var(--border); }
.site-ad--site_footer { margin-top: 8px; }
.site-ad--admin_top { margin-bottom: 16px; border-radius: var(--radius); overflow: hidden; }
.site-ad--admin_sidebar { margin-top: 16px; font-size: 12px; }
.site-ad--admin_sidebar .site-ad__link,
.site-ad--admin_sidebar .site-ad__inner { padding: 8px 0; text-align: left; }
.site-ad--video_page { margin-bottom: 20px; border-radius: var(--radius); overflow: hidden; }
.site-ad--home_banner .site-ad__link,
.site-ad--home_banner .site-ad__inner { border-radius: var(--radius); }
