/* ===== WebTube TV: dark TV theme ===== */
:root, [data-bs-theme="dark"] {
    --wt-bg: #0a101d;
    --wt-surface: #111a2c;
    --wt-surface-2: #172238;
    --wt-border: #22304b;
    --wt-text: #e7ecf6;
    --wt-muted: #8e9cb8;
    --wt-accent: #2f7bff;
    --wt-accent-2: #22b8ff;
    --wt-live: #ff3b4e;
    --wt-gold: #f6b93b;
    --wt-radius: 14px;
    --bs-body-bg: var(--wt-bg);
    --bs-body-color: var(--wt-text);
    --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --bs-secondary-color: var(--wt-muted);
    --bs-border-color: var(--wt-border);
    --bs-primary: var(--wt-accent);
    --bs-primary-rgb: 47, 123, 255;
    --bs-link-color: #6ea6ff;
    --bs-link-hover-color: #9cc3ff;
    --bs-link-color-rgb: 110, 166, 255;
    --bs-tertiary-bg: var(--wt-surface-2);
    --bs-dropdown-bg: var(--wt-surface);
}
body { background: var(--wt-bg); color: var(--wt-text); overflow-x: hidden; }
a { text-decoration: none; }
.min-w-0 { min-width: 0; }
.text-secondary { color: var(--wt-muted) !important; }
.btn-primary { --bs-btn-bg: var(--wt-accent); --bs-btn-border-color: var(--wt-accent); --bs-btn-hover-bg: #1f66e6; --bs-btn-hover-border-color: #1f66e6; --bs-btn-active-bg: #1957c4; }
.form-control, .form-select { background-color: var(--wt-surface-2); border-color: var(--wt-border); color: var(--wt-text); }
.form-control:focus, .form-select:focus { background-color: var(--wt-surface-2); border-color: var(--wt-accent); box-shadow: 0 0 0 .2rem rgba(47,123,255,.25); color: var(--wt-text); }
.dropdown-menu { --bs-dropdown-link-hover-bg: var(--wt-surface-2); border-color: var(--wt-border); }
.hp-field { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* ----- header ----- */
.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(10,16,29,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--wt-border); }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--wt-text); font-weight: 800; flex-shrink: 0; }
.brand img { border-radius: 9px; }
.brand .brand-logo { height: 40px; width: auto; border-radius: 0; }
.brand .brand-logo-lg { height: 48px; }
@media (max-width: 575.98px) { .brand .brand-logo { height: 32px; } }
.brand-name { font-size: 1.3rem; letter-spacing: -.02em; }
.brand-name span { color: var(--wt-accent-2); margin-left: .15rem; }
.btn-icon { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 50%; color: var(--wt-text); font-size: 1.35rem; padding: 0; border: 0; }
.btn-icon:hover { background: var(--wt-surface-2); color: #fff; }
.site-search { max-width: 560px; margin: 0 auto; }
.site-search .form-control { border-radius: 50rem 0 0 50rem; padding-left: 1.1rem; }
.site-search .btn { border-radius: 0 50rem 50rem 0; background: var(--wt-surface-2); border: 1px solid var(--wt-border); border-left: 0; color: var(--wt-text); padding: 0 1.1rem; }
.btn-upload { display: inline-flex; align-items: center; gap: .4rem; background: linear-gradient(135deg, var(--wt-accent), var(--wt-accent-2)); color: #fff; border: 0; border-radius: 50rem; padding: .45rem 1rem; font-weight: 600; }
.btn-upload:hover { color: #fff; filter: brightness(1.1); }
.btn-signin { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--wt-border); border-radius: 50rem; color: var(--wt-text); padding: .4rem .95rem; font-weight: 500; }
.btn-signin i { font-size: 1.15rem; color: var(--wt-accent-2); }
.btn-signin:hover { border-color: var(--wt-accent); color: #fff; }
.btn-avatar { padding: 0; border: 0; border-radius: 50%; }
.avatar { border-radius: 50%; object-fit: cover; flex-shrink: 0; display: inline-block; }
.avatar-initial { display: inline-grid; place-items: center; background: linear-gradient(135deg, var(--wt-accent), var(--wt-accent-2)); color: #fff; font-weight: 700; }

.site-nav { border-top: 1px solid rgba(255,255,255,.04); }
.site-nav .container-xl { overflow-x: auto; scrollbar-width: none; padding-block: .45rem; }
.site-nav .container-xl::-webkit-scrollbar { display: none; }
.nav-pill { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; color: var(--wt-muted); padding: .38rem .85rem; border-radius: 50rem; font-size: .92rem; font-weight: 500; }
.nav-pill:hover { color: var(--wt-text); background: var(--wt-surface-2); }
.nav-pill.active { color: #fff; background: var(--wt-surface-2); box-shadow: inset 0 0 0 1px var(--wt-border); }
.nav-pill-gold { color: var(--wt-gold); }
.nav-pill-gold:hover, .nav-pill-gold.active { color: var(--wt-gold); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wt-live); display: inline-block; box-shadow: 0 0 0 0 rgba(255,59,78,.6); animation: livePulse 1.6s infinite; flex-shrink: 0; vertical-align: middle; }
.live-dot-lg { width: 12px; height: 12px; margin-right: .5rem; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(255,59,78,.6); } 70% { box-shadow: 0 0 0 8px rgba(255,59,78,0); } 100% { box-shadow: 0 0 0 0 rgba(255,59,78,0); } }

.offcanvas { background: var(--wt-bg); }
.mobile-menu a { display: flex; align-items: center; gap: .6rem; padding: .6rem .3rem; color: var(--wt-text); border-bottom: 1px solid var(--wt-border); }
.mobile-menu a i { color: var(--wt-accent-2); width: 1.2rem; }
.mobile-menu-heading { margin-top: 1rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--wt-muted); }

.site-main { min-height: 60vh; padding-bottom: 3rem; }

/* ----- headings ----- */
.page-head { margin-bottom: 1.25rem; }
.page-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.02em; display: flex; align-items: center; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.section-title { font-size: 1.2rem; font-weight: 700; margin-bottom: .9rem; display: flex; align-items: center; gap: .5rem; }
.section-head .section-title { margin-bottom: 0; }
.eyebrow { display: inline-flex; gap: .4rem; align-items: center; color: var(--wt-gold); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; }
.tabs-row, .account-nav { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; margin-bottom: 1.1rem; padding-bottom: 2px; }
.tab-chip { white-space: nowrap; padding: .4rem 1rem; border-radius: 50rem; background: var(--wt-surface-2); color: var(--wt-text); font-size: .9rem; font-weight: 500; border: 1px solid transparent; }
.tab-chip:hover { color: #fff; border-color: var(--wt-border); }
.tab-chip.active { background: var(--wt-text); color: var(--wt-bg); }
.btn-chip { display: inline-flex; align-items: center; gap: .4rem; background: var(--wt-surface-2); color: var(--wt-text); border: 1px solid var(--wt-border); border-radius: 50rem; padding: .4rem .9rem; font-size: .9rem; font-weight: 500; }
.btn-chip:hover, .btn-chip.active { background: var(--wt-surface); color: #fff; border-color: var(--wt-accent); }
.btn-chip.active i { color: var(--wt-accent-2); }
.react-group .btn-chip:first-child { border-radius: 50rem 0 0 50rem; }
.react-group .btn-chip:last-child { border-radius: 0 50rem 50rem 0; margin-left: -1px; }

/* ----- video cards ----- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.4rem 1rem; }
.video-grid-wide { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.video-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, calc((100% - 3rem) / 4)); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; scrollbar-width: thin; }
.video-row > * { scroll-snap-align: start; }
.video-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--wt-radius); overflow: hidden; background: var(--wt-surface-2); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.video-card:hover .video-thumb img { transform: scale(1.05); }
.thumb-badge { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.8); color: #fff; font-size: .75rem; font-weight: 600; padding: .1rem .45rem; border-radius: 6px; display: inline-flex; align-items: center; gap: .3rem; }
.badge-live { background: var(--wt-live); }
.badge-live .live-dot { background: #fff; width: 6px; height: 6px; }
.thumb-lock { position: absolute; left: 8px; top: 8px; background: rgba(10,16,29,.85); color: #fff; font-size: .72rem; font-weight: 600; padding: .15rem .5rem; border-radius: 6px; display: inline-flex; align-items: center; gap: .3rem; }
.thumb-lock-gold { color: var(--wt-gold); }
.thumb-featured { position: absolute; right: 8px; top: 8px; color: var(--wt-gold); font-size: .85rem; text-shadow: 0 1px 4px rgba(0,0,0,.8); }
.thumb-play { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.6rem; color: #fff; opacity: 0; background: rgba(0,0,0,.25); transition: opacity .2s; }
.video-card:hover .thumb-play { opacity: 1; }
.video-meta { padding: .6rem .15rem 0; }
.video-title { font-size: .98rem; font-weight: 600; line-height: 1.35; margin: 0 0 .25rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-title a { color: var(--wt-text); }
.video-title a:hover { color: #fff; }
.video-sub { font-size: .82rem; color: var(--wt-muted); display: flex; flex-direction: column; }
.video-sub a { color: var(--wt-muted); }
.video-sub a:hover { color: var(--wt-text); }

/* ----- channels ----- */
.channel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem 1rem; }
.channel-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 1rem; overflow-x: auto; padding-bottom: .5rem; }
.channel-card { display: block; color: var(--wt-text); }
.channel-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--wt-radius); overflow: hidden; background: var(--wt-surface-2); border: 1px solid var(--wt-border); }
.channel-thumb > img:first-child { width: 100%; height: 100%; object-fit: cover; }
.channel-logo { position: absolute; left: 10px; bottom: 10px; max-height: 34px; max-width: 40%; object-fit: contain; filter: drop-shadow(0 1px 4px rgba(0,0,0,.7)); }
.channel-name { display: block; margin-top: .5rem; font-weight: 600; }
.channel-card:hover .channel-thumb { border-color: var(--wt-accent); }

/* ----- home TV ----- */
.home-tv { padding-top: 1rem; }
.home-hero { padding: 3rem 0 1rem; }
.tv-head { display: flex; align-items: center; gap: .8rem; margin-bottom: .75rem; }
.tv-logo { height: 44px; width: 44px; object-fit: contain; border-radius: 10px; background: var(--wt-surface-2); padding: 4px; }
.tv-logo-icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--wt-accent), var(--wt-accent-2)); font-size: 1.3rem; flex-shrink: 0; }
.tv-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--wt-muted); display: inline-flex; gap: .4rem; align-items: center; }
.tv-title { font-size: 1.3rem; font-weight: 800; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-title a { color: var(--wt-text); }
.now-playing { padding: .7rem .2rem 0; color: var(--wt-muted); }
.now-playing h2 { color: var(--wt-text); font-weight: 600; }
.tv-playlist { background: var(--wt-surface); border: 1px solid var(--wt-border); border-radius: var(--wt-radius); overflow: hidden; display: flex; flex-direction: column; max-height: calc(100vh - 140px); }
@media (min-width: 992px) { .tv-playlist[data-playlist] { height: 100%; max-height: 560px; } }
.tv-playlist-head { padding: .75rem 1rem; display: flex; align-items: center; gap: .5rem; font-weight: 700; border-bottom: 1px solid var(--wt-border); }
.tv-playlist-items { overflow-y: auto; padding: .4rem; }
.tv-item { display: flex; gap: .65rem; width: 100%; padding: .4rem; border-radius: 10px; background: none; border: 0; text-align: left; color: var(--wt-text); align-items: flex-start; }
.tv-item:hover { background: var(--wt-surface-2); color: #fff; }
.tv-item.active { background: rgba(47,123,255,.16); box-shadow: inset 3px 0 0 var(--wt-accent); }
.tv-item-thumb { position: relative; width: 120px; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: var(--wt-surface-2); }
.tv-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tv-item-thumb span { position: absolute; right: 4px; bottom: 4px; background: rgba(0,0,0,.8); font-size: .68rem; padding: 0 .3rem; border-radius: 4px; }
.tv-item-thumb span:empty { display: none; }
.tv-item-text { min-width: 0; display: flex; flex-direction: column; }
.tv-item-title { font-size: .86rem; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tv-item-sub { font-size: .75rem; color: var(--wt-muted); margin-top: .15rem; }
.channel-list { display: flex; flex-direction: column; gap: .2rem; }

/* ----- player ----- */
.player-shell { border-radius: var(--wt-radius); overflow: hidden; background: #000; box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.player-stage { position: relative; aspect-ratio: 16 / 9; background: #000; }
.player-stage .video-js { position: absolute; inset: 0; width: 100%; height: 100%; }
.player-stage.is-embed .video-js { visibility: hidden; }
.player-embed { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }
.player-next { position: absolute; right: 12px; top: 12px; z-index: 4; background: rgba(10,16,29,.85); color: #fff; border: 1px solid var(--wt-border); border-radius: 50rem; padding: .3rem .8rem; font-size: .85rem; }
.video-js { font-family: inherit; }
.video-js .vjs-big-play-button { border: 0; background: rgba(47,123,255,.9); width: 2.2em; height: 2.2em; line-height: 2.2em; border-radius: 50%; margin-left: -1.1em; margin-top: -1.1em; font-size: 3.4em; }
.video-js:hover .vjs-big-play-button, .video-js .vjs-big-play-button:focus { background: var(--wt-accent); }
.video-js .vjs-control-bar { background: linear-gradient(transparent, rgba(0,0,0,.85)); height: 3.6em; align-items: center; }
.video-js .vjs-play-progress, .video-js .vjs-volume-level { background: var(--wt-accent-2); }
.video-js .vjs-slider { background: rgba(255,255,255,.2); }
.video-js .vjs-load-progress { background: rgba(255,255,255,.3); }
.vjs-quality { position: relative; display: flex; align-items: center; }
.vjs-quality-btn { background: none; border: 0; color: #fff; font-size: .78rem; font-weight: 600; padding: 0 .6rem; height: 100%; cursor: pointer; white-space: nowrap; }
.vjs-quality-menu { position: absolute; bottom: 3.2em; right: 0; background: rgba(10,16,29,.96); border: 1px solid var(--wt-border); border-radius: 10px; padding: .3rem; min-width: 110px; z-index: 5; }
.vjs-quality-menu button { display: block; width: 100%; background: none; border: 0; color: #fff; text-align: left; padding: .35rem .7rem; border-radius: 6px; font-size: .85rem; }
.vjs-quality-menu button:hover, .vjs-quality-menu button.active { background: var(--wt-accent); }
.vjs-thumb-preview { position: absolute; bottom: 2.2em; transform: translateX(-50%); border: 2px solid #fff; border-radius: 6px; background-color: #000; background-repeat: no-repeat; pointer-events: none; box-shadow: 0 4px 16px rgba(0,0,0,.6); z-index: 4; }
.player-stage.is-ad .vjs-progress-control { pointer-events: none; }
.player-stage.is-ad .vjs-playback-rate, .player-stage.is-ad .vjs-quality { display: none !important; }
.ad-ui { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.ad-tag { position: absolute; left: 12px; top: 12px; background: var(--wt-gold); color: #111; font-weight: 800; font-size: .75rem; padding: .1rem .5rem; border-radius: 5px; }
.ad-visit { position: absolute; left: 12px; bottom: 4.2em; pointer-events: auto; background: rgba(0,0,0,.75); color: #fff; padding: .35rem .8rem; border-radius: 50rem; font-size: .82rem; }
.ad-skip { position: absolute; right: 0; bottom: 4.2em; pointer-events: auto; background: rgba(0,0,0,.8); color: #fff; border: 1px solid rgba(255,255,255,.4); border-right: 0; padding: .55rem 1.1rem; font-size: .9rem; font-weight: 600; }
.ad-skip:disabled { opacity: .85; cursor: default; }
.ad-skip:not(:disabled):hover { background: #fff; color: #000; }
.ad-overlay { position: absolute; left: 50%; bottom: 4.5em; transform: translateX(-50%); z-index: 3; max-width: min(90%, 728px); background: rgba(10,16,29,.9); border: 1px solid var(--wt-border); border-radius: 8px; padding: .3rem 2rem .3rem .3rem; }
.ad-overlay img { max-width: 100%; max-height: 90px; display: block; border-radius: 4px; }
.ad-overlay span { display: block; padding: .4rem .6rem; color: #fff; font-weight: 600; }
.ad-overlay button { position: absolute; right: 4px; top: 2px; background: none; border: 0; color: #fff; font-size: 1.3rem; line-height: 1; }
.player-locked, .player-empty { position: relative; aspect-ratio: 16 / 9; border-radius: var(--wt-radius); overflow: hidden; display: grid; place-items: center; text-align: center; background: var(--wt-surface) center / cover no-repeat; }
.player-locked::before { content: ""; position: absolute; inset: 0; background: rgba(6,10,20,.82); backdrop-filter: blur(6px); }
.player-locked-inner { position: relative; padding: 1.5rem; max-width: 520px; }
.player-empty { color: var(--wt-muted); }
.embed-brand { position: fixed; right: 10px; top: 10px; z-index: 10; display: flex; align-items: center; gap: .35rem; color: #fff; font: 600 .8rem Inter, sans-serif; background: rgba(0,0,0,.55); padding: .25rem .6rem; border-radius: 50rem; text-decoration: none; opacity: .85; }
.embed-locked { position: fixed; inset: 0; display: grid; place-items: center; background: #000 center / cover; color: #fff; font: 600 1rem Inter, sans-serif; text-decoration: none; }
.embed-locked span { background: rgba(0,0,0,.75); padding: .6rem 1.2rem; border-radius: 50rem; }

/* ----- watch page ----- */
.watch-title { font-size: clamp(1.15rem, 2.2vw, 1.45rem); font-weight: 700; margin: 1rem 0 .75rem; line-height: 1.3; }
.watch-bar { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-bottom: 1rem; }
.watch-owner { display: flex; align-items: center; gap: .7rem; color: var(--wt-text); }
.watch-owner > span:last-child { display: flex; flex-direction: column; line-height: 1.2; }
.watch-owner small { color: var(--wt-muted); }
.watch-desc { background: var(--wt-surface); border: 1px solid var(--wt-border); border-radius: var(--wt-radius); padding: 1rem 1.1rem; }
.watch-stats { font-weight: 600; font-size: .9rem; margin-bottom: .5rem; }
.desc-text { white-space: normal; overflow-wrap: anywhere; color: #d2d9e7; }
.desc-text.collapsed { max-height: 120px; overflow: hidden; mask-image: linear-gradient(#000 60%, transparent); }
.tag { color: var(--wt-accent-2); font-size: .88rem; }
.share-menu .dropdown-item { display: flex; align-items: center; gap: .6rem; border-radius: 8px; }
.related-list { display: flex; flex-direction: column; gap: .7rem; }
.related-item { display: flex; gap: .7rem; color: var(--wt-text); }
.related-item:hover { color: #fff; }
.related-thumb { position: relative; width: 168px; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: var(--wt-surface-2); }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-thumb span { position: absolute; right: 4px; bottom: 4px; background: rgba(0,0,0,.8); font-size: .7rem; padding: 0 .3rem; border-radius: 4px; }
.related-text { min-width: 0; }
.related-title { font-size: .9rem; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.related-sub { display: block; font-size: .78rem; color: var(--wt-muted); margin-top: .2rem; }

/* ----- comments ----- */
.comment { display: flex; gap: .8rem; margin-bottom: 1.1rem; }
.comment-reply { margin-top: .8rem; margin-bottom: 0; }
.comment-head { font-size: .85rem; }
.comment-head a { color: var(--wt-text); font-weight: 600; }
.comment-head span { color: var(--wt-muted); margin-left: .3rem; }
.comment-body { margin: .2rem 0 .3rem; overflow-wrap: anywhere; }
.comment-actions { display: flex; gap: 1rem; }
.comment-actions .btn-link { color: var(--wt-muted); text-decoration: none; font-weight: 500; }

/* ----- side boxes ----- */
.side-box { background: var(--wt-surface); border: 1px solid var(--wt-border); border-radius: var(--wt-radius); padding: 1.1rem; margin-bottom: 1rem; }
.side-title { font-size: 1rem; font-weight: 700; display: flex; gap: .5rem; align-items: center; margin-bottom: .8rem; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: .35rem .7rem; align-items: baseline; }
.tag-cloud a { color: #9cc3ff; }
.tag-cloud a:hover { color: #fff; }
.side-promo { text-align: center; background: radial-gradient(circle at top, rgba(246,185,59,.18), var(--wt-surface) 70%); }
.side-promo > i { font-size: 2rem; color: var(--wt-gold); }

/* ----- ads ----- */
.ad-banner { position: relative; text-align: center; margin: 1rem auto; }
.ad-banner img { max-width: 100%; height: auto; border-radius: 10px; }
.ad-banner-sidebar { margin-top: 0; }
.ad-label { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); font-size: .65rem; background: rgba(0,0,0,.6); padding: 0 .4rem; border-radius: 4px; color: #ddd; z-index: 1; }
.container-xl .ad-label { left: auto; right: 18px; transform: none; }

/* ----- forms, panels ----- */
.panel { background: var(--wt-surface); border: 1px solid var(--wt-border); border-radius: var(--wt-radius); padding: 1.4rem; }
.auth-wrap { min-height: 70vh; display: grid; place-items: center; padding: 2rem 1rem; }
.auth-card { width: 100%; max-width: 440px; background: var(--wt-surface); border: 1px solid var(--wt-border); border-radius: 20px; padding: 2rem; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.btn-facebook { background: #1877f2; color: #fff; font-weight: 600; }
.btn-facebook:hover { background: #0f63d1; color: #fff; }
.btn-google { background: #fff; color: #222; font-weight: 600; }
.btn-google:hover { background: #eee; color: #000; }
.btn-google i { color: #ea4335; }
.or-line { display: flex; align-items: center; gap: .8rem; color: var(--wt-muted); font-size: .8rem; margin: 1rem 0; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--wt-border); }
.source-switch { display: flex; flex-wrap: wrap; gap: .4rem; }
.uploader-drop { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: 1.8rem 1rem; border: 2px dashed var(--wt-border); border-radius: var(--wt-radius); text-align: center; cursor: pointer; background: var(--wt-surface-2); }
.uploader-drop i { font-size: 2.2rem; color: var(--wt-accent-2); }
.uploader-drop.drag, .uploader-drop:hover { border-color: var(--wt-accent); }
.my-videos { display: flex; flex-direction: column; gap: .7rem; }
.my-video { display: flex; align-items: center; gap: 1rem; background: var(--wt-surface); border: 1px solid var(--wt-border); border-radius: var(--wt-radius); padding: .6rem; }
.my-video-thumb { position: relative; width: 150px; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: var(--wt-surface-2); }
.my-video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.my-video-thumb span { position: absolute; right: 4px; bottom: 4px; background: rgba(0,0,0,.8); font-size: .7rem; padding: 0 .3rem; border-radius: 4px; }
.my-video a { color: var(--wt-text); }
.table-dark-soft { --bs-table-bg: transparent; --bs-table-color: var(--wt-text); --bs-table-border-color: var(--wt-border); }
.profile-head { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 1.5rem; padding: 1.4rem; background: linear-gradient(135deg, rgba(47,123,255,.18), rgba(34,184,255,.06)); border: 1px solid var(--wt-border); border-radius: 18px; }

/* ----- plans ----- */
.plan-card { position: relative; display: flex; flex-direction: column; background: var(--wt-surface); border: 1px solid var(--wt-border); border-radius: 20px; padding: 1.8rem; }
.plan-featured { border-color: var(--wt-gold); box-shadow: 0 20px 50px rgba(246,185,59,.12); }
.plan-badge { position: absolute; top: -12px; left: 1.8rem; background: var(--wt-gold); color: #111; font-weight: 700; font-size: .75rem; padding: .2rem .7rem; border-radius: 50rem; }
.plan-price { font-size: 2.4rem; font-weight: 800; margin: .3rem 0 .6rem; }
.plan-price span { font-size: .95rem; font-weight: 500; color: var(--wt-muted); margin-left: .3rem; }
.plan-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.plan-list li { display: flex; gap: .5rem; padding: .3rem 0; font-size: .92rem; }
.plan-list i { color: #3ddc97; }

/* ----- pages ----- */
.content-page { max-width: 820px; }
.prose { line-height: 1.75; color: #d2d9e7; }
.prose h2 { font-size: 1.35rem; font-weight: 700; margin-top: 1.8rem; color: var(--wt-text); }
.prose h3 { font-size: 1.15rem; font-weight: 700; margin-top: 1.4rem; color: var(--wt-text); }
.prose img { max-width: 100%; height: auto; border-radius: 10px; }
.empty-state { text-align: center; padding: 3.5rem 1rem; color: var(--wt-muted); }
.empty-state > i { font-size: 2.8rem; display: block; margin-bottom: .6rem; }

/* ----- footer, cookies ----- */
.site-footer { background: #070b15; border-top: 1px solid var(--wt-border); padding: 3rem 0 1.5rem; margin-top: 2rem; }
.site-footer h6 { font-weight: 700; margin-bottom: .9rem; }
.footer-links li { margin-bottom: .45rem; }
.footer-links a { color: var(--wt-muted); }
.footer-links a:hover { color: var(--wt-text); }
.social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--wt-surface-2); color: var(--wt-text); }
.social a:hover { background: var(--wt-accent); color: #fff; }
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1080; background: rgba(17,26,44,.98); border-top: 1px solid var(--wt-border); padding: .9rem 0; box-shadow: 0 -10px 30px rgba(0,0,0,.4); }
.pagination { --bs-pagination-bg: var(--wt-surface); --bs-pagination-border-color: var(--wt-border); --bs-pagination-color: var(--wt-text); --bs-pagination-active-bg: var(--wt-accent); --bs-pagination-active-border-color: var(--wt-accent); --bs-pagination-disabled-bg: var(--wt-surface); flex-wrap: wrap; }

@media (max-width: 575.98px) {
    .brand-name { font-size: 1.1rem; }
    .video-grid, .video-grid-wide { grid-template-columns: 1fr; }
    .related-thumb { width: 140px; }
    .my-video-thumb { width: 110px; }
    .auth-card { padding: 1.4rem; }
    .panel { padding: 1.1rem; }
    .player-shell, .player-locked, .player-empty { border-radius: 0; margin-inline: calc(var(--bs-gutter-x) * -.5); }
}

/* ----- player watermark (position set in Admin → Settings) ----- */
.player-watermark { position: absolute; z-index: 4; height: auto; pointer-events: none; user-select: none; transition: opacity .3s; }
.player-stage.is-ad .player-watermark { display: none; }
