/* =========================================================
   Cinemahubs — Main Stylesheet
   ========================================================= */

:root{
	--chub-accent: #C6952E;
	--chub-accent-light: #E0B45C;
	--chub-bg: #FFFFFF;
	--chub-bg-alt: #F6F5F1;
	--chub-card: #FFFFFF;
	--chub-border: #E7E4DC;
	--chub-text: #1B1C20;
	--chub-text-dim: #5B5D68;
	--chub-text-faint: #93949E;
	--chub-radius: 14px;
	--chub-radius-sm: 8px;
	--chub-shadow: 0 10px 34px rgba(20,20,25,.08);
	--chub-font-head: 'Poppins', sans-serif;
	--chub-font-body: 'Inter', sans-serif;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;max-width:100%;overflow-x:hidden;}
body{
	margin:0;
	max-width:100%;
	overflow-x:hidden;
	background:var(--chub-bg);
	color:var(--chub-text);
	font-family:var(--chub-font-body);
	line-height:1.6;
	-webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
h1,h2,h3,h4{font-family:var(--chub-font-head);font-weight:700;margin:0 0 .5em;}
ul{list-style:none;margin:0;padding:0;}
button{font-family:inherit;cursor:pointer;}
.chub-hidden{display:none !important;}

.chub-container{max-width:1240px;width:100%;margin:0 auto;padding:0 24px;box-sizing:border-box;}
.chub-accent{color:var(--chub-accent);}

/* ============ Buttons ============ */
.chub-btn{
	display:inline-flex;align-items:center;justify-content:center;gap:6px;
	padding:12px 26px;border-radius:999px;font-weight:600;font-size:.95rem;
	border:1px solid transparent;transition:.2s ease;cursor:pointer;
}
.chub-btn-primary{background:linear-gradient(135deg,var(--chub-accent-light),var(--chub-accent));color:#1a1305;}
.chub-btn-primary:hover{transform:translateY(-1px);box-shadow:0 8px 24px rgba(217,164,65,.35);}
.chub-btn-ghost{border-color:var(--chub-border);color:var(--chub-text);background:transparent;}
.chub-btn-ghost:hover{border-color:var(--chub-accent);color:var(--chub-accent);}
.chub-btn-block{width:100%;padding:14px;}

/* ============ Header ============ */
.chub-header{
	position:sticky;top:0;z-index:100;
	background:transparent;
	border-bottom:1px solid var(--chub-border);
}
.chub-header::before{
	content:"";position:absolute;inset:0;z-index:-1;
	background:rgba(255,255,255,.88);
	backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
}
.chub-header-inner{display:flex;align-items:center;gap:28px;height:76px;}
.chub-logo img{height:38px;width:auto;}
.chub-logo-text{font-family:var(--chub-font-head);font-weight:800;font-size:1.5rem;letter-spacing:.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:inline-block;max-width:100%;}
.chub-menu-toggle{display:none;flex-direction:column;gap:5px;background:none;border:none;padding:6px;}
.chub-menu-toggle span{width:24px;height:2px;background:var(--chub-text);border-radius:2px;transition:.25s;transform-origin:center;}
.chub-menu-toggle.is-active span:nth-child(1){transform:translateY(7px) rotate(45deg);}
.chub-menu-toggle.is-active span:nth-child(2){opacity:0;}
.chub-menu-toggle.is-active span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}
.chub-nav-close{display:none;}

.chub-nav{flex:1;}
.chub-nav-list{display:flex;align-items:center;gap:28px;}
.chub-nav-list > li > a{font-weight:500;font-size:.95rem;color:var(--chub-text-dim);transition:.2s;display:flex;align-items:center;gap:4px;}
.chub-nav-list > li > a:hover{color:var(--chub-accent);}
.chub-caret{width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-top:5px solid currentColor;display:inline-block;margin-left:2px;}
.chub-has-dropdown,
.chub-nav-list > li.menu-item-has-children{position:relative;}
.chub-dropdown,
.chub-nav-list .sub-menu{
	position:absolute;top:130%;left:0;min-width:200px;
	background:var(--chub-card);border:1px solid var(--chub-border);border-radius:var(--chub-radius-sm);
	padding:8px;opacity:0;visibility:hidden;transform:translateY(6px);transition:.2s;box-shadow:var(--chub-shadow);
}
.chub-has-dropdown:hover .chub-dropdown,
.chub-nav-list > li.menu-item-has-children:hover .sub-menu{opacity:1;visibility:visible;transform:translateY(0);}
.chub-dropdown li a,
.chub-nav-list .sub-menu li a{display:block;padding:9px 12px;border-radius:6px;font-size:.9rem;color:var(--chub-text-dim);}
.chub-dropdown li a:hover,
.chub-nav-list .sub-menu li a:hover{background:var(--chub-bg-alt);color:var(--chub-accent);}
.chub-nav-list > li.menu-item-has-children > a::after{content:"";width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-top:5px solid currentColor;display:inline-block;margin-left:4px;}

.chub-header-actions{display:flex;align-items:center;gap:12px;}

/* Profile dropdown */
.chub-profile-menu{position:relative;}
.chub-profile-btn{background:none;border:2px solid var(--chub-border);border-radius:50%;padding:0;width:42px;height:42px;overflow:hidden;}
.chub-profile-btn img{width:100%;height:100%;object-fit:cover;}
.chub-profile-dropdown{
	position:absolute;right:0;top:130%;width:250px;background:var(--chub-card);
	border:1px solid var(--chub-border);border-radius:var(--chub-radius-sm);box-shadow:var(--chub-shadow);
	opacity:0;visibility:hidden;transform:translateY(6px);transition:.2s;overflow:hidden;z-index:200;
}
.chub-profile-dropdown.is-open{opacity:1;visibility:visible;transform:translateY(0);}
.chub-profile-dropdown-head{display:flex;gap:10px;padding:16px;border-bottom:1px solid var(--chub-border);align-items:center;}
.chub-profile-dropdown-head img{width:44px;height:44px;border-radius:50%;object-fit:cover;flex-shrink:0;}
.chub-profile-dropdown-head div{min-width:0;}
.chub-profile-dropdown-head strong{display:block;font-size:.9rem;}
.chub-profile-dropdown-head span{font-size:.78rem;color:var(--chub-text-faint);display:block;word-break:break-word;overflow-wrap:anywhere;}
.chub-profile-dropdown a{display:block;padding:12px 16px;font-size:.88rem;color:var(--chub-text-dim);border-top:1px solid var(--chub-border);}
.chub-profile-dropdown a:hover{background:var(--chub-bg-alt);color:var(--chub-accent);}
.chub-profile-dropdown a.chub-logout{color:#e2554b;}

/* ============ Hero / Player ============ */
.chub-hero-player{padding:36px 0 10px;}
.chub-hero-empty{padding:100px 0;text-align:center;}
.chub-hero-empty h1{font-size:2.6rem;}

.chub-player-wrap{position:relative;}
.chub-video-stage{
	position:relative;width:100%;aspect-ratio:16/9;background:#000;
	border-radius:var(--chub-radius);overflow:hidden;box-shadow:var(--chub-shadow);
}
.chub-video-el{width:100%;height:100%;object-fit:contain;background:#000;}
.chub-no-video{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;background:#000;}
.chub-no-video p{color:var(--chub-text-faint);}

.chub-video-overlay-play{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.25);transition:.25s;cursor:pointer;touch-action:manipulation;}
.chub-video-overlay-play.is-hidden{opacity:0;visibility:hidden;}
.chub-big-play{width:78px;height:78px;border-radius:50%;border:none;background:transparent;display:flex;align-items:center;justify-content:center;transition:.2s;touch-action:manipulation;}
.chub-big-play:hover{transform:scale(1.08);}
.chub-big-play svg{width:64px;height:64px;fill:rgba(217,164,65,.92);filter:drop-shadow(0 6px 16px rgba(0,0,0,.5));margin-left:0;}

.chub-controls{
	position:absolute;left:0;right:0;bottom:0;padding:10px 16px 14px;
	background:linear-gradient(0deg,rgba(0,0,0,.85),rgba(0,0,0,0));
	opacity:0;transform:translateY(8px);transition:.25s;
	pointer-events:none;
}
.chub-controls.is-active{opacity:1;transform:translateY(0);pointer-events:auto;}

.chub-progress-row{margin-bottom:6px;}
.chub-progress{-webkit-appearance:none;appearance:none;width:100%;height:4px;border-radius:4px;background:rgba(255,255,255,.25);cursor:pointer;}
.chub-progress::-webkit-slider-thumb{-webkit-appearance:none;width:13px;height:13px;border-radius:50%;background:var(--chub-accent);border:2px solid #fff;margin-top:-4.5px;}
.chub-progress::-moz-range-thumb{width:13px;height:13px;border-radius:50%;background:var(--chub-accent);border:2px solid #fff;}
.chub-progress::-webkit-slider-runnable-track{height:4px;border-radius:4px;background:linear-gradient(to right, var(--chub-accent) var(--chub-fill,0%), rgba(255,255,255,.25) 0%);}

.chub-controls-row{display:flex;align-items:center;justify-content:space-between;}
.chub-controls-left,.chub-controls-right{display:flex;align-items:center;gap:10px;}
.chub-ctrl{background:none;border:none;padding:6px;color:#fff;display:flex;align-items:center;gap:5px;}
.chub-ctrl svg{width:22px;height:22px;fill:#fff;transition:.15s;}
.chub-ctrl:hover svg{fill:var(--chub-accent);}
.chub-ctrl.chub-like.is-liked svg{fill:#e2554b;}
.chub-time-display{font-size:.82rem;color:#eee;margin-left:4px;font-variant-numeric:tabular-nums;}
.chub-like-count{font-size:.82rem;font-variant-numeric:tabular-nums;}

/* Tilt / Cinema mode: rotates & maximizes the player for immersive mobile viewing */
body.chub-tilt-active{overflow:hidden;}

.chub-player-error{padding:60px 24px;text-align:center;background:#14100a;color:#c9c4bb;border-radius:var(--chub-radius);}

/* ============ Locked video stage (payment-gated) ============
   Mirrors the countdown/premiere pattern: only the video stage itself
   is swapped out for a locked cover + unlock button — title, meta,
   description and comments below always stay visible. Clicking
   "Unlock This Video" opens the chub-paywall-modal (below); the actual
   video file is never output to the page while locked. */
.chub-video-stage-locked{
	background-size:cover;background-position:center;
	display:flex;align-items:center;justify-content:center;
}
.chub-lock-overlay{
	width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;
	gap:10px;text-align:center;padding:24px;
	background:linear-gradient(180deg,rgba(10,9,7,.72),rgba(10,9,7,.9));
}
.chub-lock-icon{width:56px;height:56px;border-radius:50%;background:rgba(217,164,65,.18);display:flex;align-items:center;justify-content:center;margin-bottom:2px;}
.chub-lock-icon svg{width:28px;height:28px;fill:var(--chub-accent-light);}
.chub-lock-title{color:#fff;font-size:1.35rem;margin:0;}
.chub-lock-sub{color:#d3d0c7;font-size:.92rem;margin:0 0 6px;max-width:360px;}
.chub-lock-sub strong{color:var(--chub-accent-light);}
.chub-lock-unlock-btn svg{width:16px;height:16px;fill:currentColor;}

/* ============ Payment Modal ============
   A standard centered lightbox: dimmed backdrop + a solid dialog card,
   matching the site's dark cinema palette so the copy/contrast written
   for the old full-page paywall still reads correctly here. */
.chub-modal{position:fixed;inset:0;z-index:5000;display:none;align-items:center;justify-content:center;padding:20px;}
.chub-modal.chub-is-open{display:flex;}
.chub-modal-backdrop{position:absolute;inset:0;background:rgba(10,9,7,.72);backdrop-filter:blur(2px);}
.chub-modal-dialog{
	position:relative;width:100%;max-width:440px;max-height:calc(100vh - 40px);overflow-y:auto;
	background:#161209;border:1px solid rgba(255,255,255,.08);border-radius:var(--chub-radius);
	box-shadow:0 24px 60px rgba(0,0,0,.5);padding:30px 26px 26px;
	animation:chub-modal-in .18s ease-out;
}
@keyframes chub-modal-in{from{opacity:0;transform:translateY(10px) scale(.98);}to{opacity:1;transform:translateY(0) scale(1);}}
.chub-modal-close{
	position:absolute;top:14px;right:14px;width:32px;height:32px;border-radius:50%;
	background:rgba(255,255,255,.08);border:none;display:flex;align-items:center;justify-content:center;color:#e5e2d8;
}
.chub-modal-close:hover{background:rgba(255,255,255,.16);}
.chub-modal-close svg{width:16px;height:16px;}
body.chub-modal-open{overflow:hidden;}

/* ============ Payment Gate (modal content) ============ */
.chub-paywall-card{width:100%;text-align:center;color:#f2f0ea;}
.chub-paywall-lock{margin:0 auto 14px;width:52px;height:52px;border-radius:50%;background:rgba(217,164,65,.16);display:flex;align-items:center;justify-content:center;}
.chub-paywall-lock svg{width:26px;height:26px;fill:var(--chub-accent-light);}
.chub-paywall-title{font-size:1.3rem;margin-bottom:6px;color:#fff;}
.chub-paywall-sub{color:#d3d0c7;font-size:.92rem;margin-bottom:18px;}
.chub-paywall-actions{display:flex;flex-direction:column;gap:10px;}
.chub-paywall-bank{
	background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.14);border-radius:var(--chub-radius-sm);
	padding:16px 18px;margin-bottom:14px;text-align:left;
}
.chub-paywall-amount{font-size:.95rem;margin-bottom:10px;color:#f2f0ea;}
.chub-paywall-amount strong{color:var(--chub-accent-light);}
.chub-paywall-bank-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 0;border-top:1px solid rgba(255,255,255,.1);font-size:.88rem;}
.chub-paywall-bank-row:first-child{border-top:none;}
.chub-paywall-bank-row span{color:#a9a69c;}
.chub-paywall-bank-row strong{color:#fff;overflow-wrap:anywhere;text-align:right;}
.chub-paywall-acct-number{font-variant-numeric:tabular-nums;letter-spacing:.5px;}
.chub-paywall-copy{
	background:rgba(217,164,65,.16);border:1px solid rgba(217,164,65,.4);color:var(--chub-accent-light);
	font-size:.72rem;font-weight:600;border-radius:6px;padding:3px 8px;cursor:pointer;white-space:nowrap;
}
.chub-paywall-copy:hover{background:rgba(217,164,65,.28);}
.chub-paywall-instructions{font-size:.82rem;color:#b9b6ac;margin-bottom:16px;text-align:left;}
.chub-paywall-form{text-align:left;}
.chub-paywall-form label{display:block;font-size:.8rem;font-weight:600;margin:12px 0 6px;color:#d3d0c7;}
.chub-paywall-form input[type=text],.chub-paywall-form input[type=file]{
	width:100%;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.2);border-radius:var(--chub-radius-sm);
	color:#fff;padding:10px 12px;font-family:inherit;font-size:.9rem;box-sizing:border-box;
}
.chub-paywall-form input[type=text]::placeholder{color:#8b8880;}
.chub-paywall-form input[type=text]:focus{outline:none;border-color:var(--chub-accent);}
.chub-paywall-form .chub-btn{margin-top:16px;}
.chub-paywall-msg{margin-top:12px;padding:10px 12px;border-radius:var(--chub-radius-sm);font-size:.85rem;}
.chub-paywall-msg-error{background:rgba(226,85,75,.15);border:1px solid rgba(226,85,75,.4);color:#ff9e96;}
.chub-paywall-msg-success{background:rgba(84,187,110,.15);border:1px solid rgba(84,187,110,.4);color:#7fe09a;}
@media (max-width:600px){
	.chub-modal-dialog{padding:24px 18px 20px;max-height:calc(100vh - 24px);}
	.chub-lock-overlay{padding:18px;}
	.chub-video-stage-locked{min-height:420px;}
}
.chub-video-card-fallback .chub-card-body h3{color:var(--chub-text-dim);}
.chub-video-stage.chub-tilt-mode{
	position:fixed;inset:0;z-index:9999;border-radius:0;
	width:100vh;height:100vw;
	top:50%;left:50%;
	transform:translate(-50%,-50%) rotate(90deg);
	transform-origin:center center;
}
.chub-tilt-exit{position:fixed;top:16px;right:16px;z-index:10000;background:rgba(0,0,0,.6);border:none;border-radius:50%;width:40px;height:40px;display:none;align-items:center;justify-content:center;}
.chub-tilt-exit svg{width:18px;height:18px;fill:#fff;}
body.chub-tilt-active .chub-tilt-exit{display:flex;}

/* Tilt mode only makes sense on small/handheld screens — a laptop/desktop
   is already a large, landscape-oriented viewport. */
@media (min-width: 769px){
	.chub-tilt{display:none;}
}

/* ============ Video meta / description ============ */
.chub-video-meta{padding:22px 4px 0;}
.chub-video-title{font-size:1.7rem;margin-bottom:10px;overflow-wrap:anywhere;}
.chub-video-stats{display:flex;align-items:center;gap:8px;color:var(--chub-text-faint);font-size:.88rem;margin-bottom:14px;flex-wrap:wrap;}
.chub-stat-dot{opacity:.6;}
.chub-cat-tag{color:var(--chub-accent);overflow-wrap:anywhere;}
.chub-video-desc{color:var(--chub-text-dim);border-top:1px solid var(--chub-border);padding-top:16px;font-size:.95rem;overflow-wrap:anywhere;}
.chub-video-desc p{margin:0 0 .8em;}

/* ============ Countdown ============ */
.chub-countdown-cover{
	aspect-ratio:16/9;border-radius:var(--chub-radius);overflow:hidden;
	background-size:cover;background-position:center;position:relative;box-shadow:var(--chub-shadow);
}
.chub-countdown-overlay{
	position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.5),rgba(0,0,0,.85));
	display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;text-align:center;padding:20px;
}
.chub-countdown-label{letter-spacing:3px;font-size:.8rem;color:var(--chub-accent-light);font-weight:600;}
.chub-countdown-timer{display:flex;gap:14px;}
.chub-cd-unit{background:rgba(10,9,7,.65);border:1px solid rgba(255,255,255,.18);border-radius:10px;padding:12px 16px;min-width:66px;backdrop-filter:blur(2px);}
.chub-cd-num{display:block;font-family:var(--chub-font-head);font-size:1.9rem;font-weight:700;font-variant-numeric:tabular-nums;color:#fff;text-shadow:0 1px 4px rgba(0,0,0,.6);}
.chub-cd-text{font-size:.7rem;color:#e5e2d8;text-transform:uppercase;letter-spacing:1px;}
.chub-countdown-date{color:#e5e2d8;font-size:.85rem;margin:0;text-shadow:0 1px 3px rgba(0,0,0,.7);}
.chub-remind-btn{margin-top:4px;background:rgba(10,9,7,.65);border:1px solid var(--chub-accent);color:var(--chub-accent-light);padding:10px 22px;}
.chub-remind-btn:hover{background:rgba(10,9,7,.85);}
.chub-remind-btn.is-subscribed{background:var(--chub-accent);color:#1a1305;border-color:var(--chub-accent);}

/* ============ Comments ============ */
.chub-comments-section{max-width:900px;margin:18px auto 0;padding:0 24px;}
.chub-comments-section h3{font-size:1.15rem;}
.chub-comments-count-label{color:var(--chub-text-faint);font-weight:400;}
.chub-comment-form{display:flex;gap:12px;margin:16px 0 24px;}
.chub-comment-avatar{width:40px;height:40px;border-radius:50%;object-fit:cover;flex-shrink:0;}
.chub-comment-input-wrap{flex:1;}
.chub-comment-input{
	width:100%;background:var(--chub-card);border:1px solid var(--chub-border);border-radius:var(--chub-radius-sm);
	color:var(--chub-text);padding:10px 14px;font-family:inherit;resize:vertical;margin-bottom:8px;
}
.chub-comment-login-prompt{color:var(--chub-text-faint);}
.chub-comment-login-prompt a{color:var(--chub-accent);}
.chub-comment{display:flex;gap:12px;margin-bottom:20px;}
.chub-comment-body{flex:1;}
.chub-comment-author{font-weight:600;font-size:.88rem;margin-right:8px;}
.chub-comment-time{font-size:.76rem;color:var(--chub-text-faint);}
.chub-comment-body p{margin:4px 0 0;color:var(--chub-text-dim);font-size:.92rem;}
.chub-comment-actions{display:flex;gap:16px;margin-top:6px;}
.chub-comment-edit-btn,.chub-comment-delete-btn,.chub-comment-save-btn,.chub-comment-cancel-btn,
.chub-comment-reply-btn,.chub-reply-cancel{
	background:none;border:none;box-shadow:none;padding:0;margin:0;
	font-family:inherit;font-size:.74rem;font-weight:600;letter-spacing:.2px;
	line-height:1;color:var(--chub-text-faint);cursor:pointer;
	transition:color .15s ease;
}
.chub-comment-edit-btn:hover,.chub-comment-save-btn:hover,.chub-comment-cancel-btn:hover,
.chub-comment-reply-btn:hover,.chub-reply-cancel:hover{color:var(--chub-text);}
.chub-comment-delete-btn:hover{color:#e05252;}
.chub-comment-edit-btn:disabled,.chub-comment-save-btn:disabled,
.chub-comment-delete-btn:disabled,.chub-comment-cancel-btn:disabled{opacity:.5;cursor:default;}
.chub-comment-edit-wrap{margin-top:4px;}
.chub-comment-error{margin:6px 0 0;font-size:.74rem;color:#e05252;}
.chub-comment-edit-textarea{
	width:100%;background:var(--chub-bg-alt);border:1px solid var(--chub-border);
	border-radius:var(--chub-radius-sm);padding:9px 11px;color:var(--chub-text);
	font-family:inherit;font-size:.92rem;resize:vertical;
}
.chub-comment-edit-actions{display:flex;align-items:center;gap:16px;margin-top:8px;}
.chub-no-comments{color:var(--chub-text-faint);}
.chub-load-more-comments{display:block;margin:18px auto 0;padding:10px 24px;}

/* ---- Replies ---- */
.chub-comment-reply-form-slot:empty{display:none;}
.chub-reply-form{display:flex;gap:10px;margin-top:10px;}
.chub-reply-form .chub-comment-avatar{width:32px;height:32px;}
.chub-reply-input{
	width:100%;background:var(--chub-card);border:1px solid var(--chub-border);border-radius:var(--chub-radius-sm);
	color:var(--chub-text);padding:9px 12px;font-family:inherit;font-size:.88rem;resize:vertical;margin-bottom:0;
}
.chub-reply-form-actions{display:flex;align-items:center;gap:16px;margin-top:8px;}
.chub-comment-toggle-replies{
	display:flex;align-items:center;gap:4px;margin:12px 0 0;padding:0;background:none;border:none;box-shadow:none;
	font-family:inherit;font-size:.8rem;font-weight:600;color:var(--chub-accent);cursor:pointer;
}
.chub-comment-toggle-replies .chub-toggle-icon{width:16px;height:16px;fill:currentColor;transition:transform .15s ease;}
.chub-comment-toggle-replies[data-expanded="true"] .chub-toggle-icon{transform:rotate(180deg);}
.chub-comment-replies{margin-top:14px;}
.chub-comment-replies.chub-hidden{display:none;}
.chub-comment-reply{margin-bottom:16px;margin-left:8px;padding-left:20px;border-left:2px solid var(--chub-border);}
.chub-comment-reply:last-child{margin-bottom:0;}
.chub-comment-reply .chub-comment-avatar{width:32px;height:32px;}

/* ============ Video grid / cards ============ */
.chub-more-section{padding:48px 0;}
.chub-section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;}
.chub-section-head h2{font-size:1.4rem;}
.chub-see-all{color:var(--chub-accent);font-size:.9rem;font-weight:600;}
.chub-video-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;}
.chub-video-card{display:block;min-width:0;border-radius:var(--chub-radius-sm);overflow:hidden;background:var(--chub-card);border:1px solid var(--chub-border);transition:.2s;}
.chub-video-card:hover{transform:translateY(-4px);border-color:var(--chub-accent);}
.chub-card-thumb{aspect-ratio:2/3;background-size:cover;background-position:center;position:relative;}
.chub-card-play{position:absolute;bottom:10px;right:10px;width:34px;height:34px;border-radius:50%;background:rgba(217,164,65,.92);display:flex;align-items:center;justify-content:center;}
.chub-card-play svg{width:16px;height:16px;fill:#1a1305;margin-left:2px;}
.chub-badge{position:absolute;top:10px;left:10px;background:rgba(0,0,0,.7);color:var(--chub-accent-light);font-size:.7rem;font-weight:600;padding:4px 9px;border-radius:999px;max-width:calc(100% - 20px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.chub-card-body{padding:12px 14px;min-width:0;}
.chub-card-body h3{font-size:.95rem;margin:0 0 6px;line-height:1.3;overflow-wrap:anywhere;}
.chub-card-meta{display:flex;flex-wrap:wrap;gap:6px;font-size:.76rem;color:var(--chub-text-faint);min-width:0;}
.chub-card-meta span{min-width:0;overflow-wrap:anywhere;}

/* Archive */
.chub-archive-head{padding:40px 0 10px;text-align:center;}
.chub-archive-head h1{font-size:2.2rem;}
.chub-archive-head p{color:var(--chub-text-dim);}
.chub-cat-filter{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin:20px 0 32px;}
.chub-cat-pill{padding:8px 18px;border-radius:999px;border:1px solid var(--chub-border);font-size:.85rem;color:var(--chub-text-dim);}
.chub-cat-pill:hover, .chub-cat-pill.is-active{background:var(--chub-accent);color:#1a1305;border-color:var(--chub-accent);}
.chub-pagination{margin:36px 0;text-align:center;}
.chub-pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;margin:0 4px;border-radius:8px;border:1px solid var(--chub-border);color:var(--chub-text-dim);}
.chub-pagination .page-numbers.current{background:var(--chub-accent);color:#1a1305;border-color:var(--chub-accent);}
.chub-empty-state{text-align:center;color:var(--chub-text-faint);padding:60px 0;}

/* ============ Auth pages ============ */
.chub-auth-page{min-height:80vh;display:flex;align-items:center;justify-content:center;padding:60px 20px;}
.chub-auth-card{width:100%;max-width:440px;background:var(--chub-card);border:1px solid var(--chub-border);border-radius:var(--chub-radius);padding:40px 36px;box-shadow:var(--chub-shadow);}
.chub-auth-logo{text-align:center;margin-bottom:20px;}
.chub-auth-logo img{height:42px;margin:0 auto;}
.chub-auth-card h1{text-align:center;font-size:1.5rem;}
.chub-auth-sub{text-align:center;color:var(--chub-text-faint);font-size:.88rem;margin-bottom:24px;}
.chub-auth-form label{display:block;font-size:.82rem;font-weight:600;margin:14px 0 6px;color:var(--chub-text-dim);}
.chub-auth-form input[type=text],.chub-auth-form input[type=email],.chub-auth-form input[type=password],.chub-auth-form input[type=tel]{
	width:100%;background:var(--chub-bg-alt);border:1px solid var(--chub-border);border-radius:var(--chub-radius-sm);
	padding:12px 14px;color:var(--chub-text);font-family:inherit;font-size:.92rem;
}
.chub-auth-form input:focus{outline:none;border-color:var(--chub-accent);}
.chub-pw-field{position:relative;}
.chub-pw-toggle{position:absolute;right:12px;top:50%;transform:translateY(-50%);background:none;border:none;opacity:.6;}
.chub-remember{display:flex !important;align-items:center;gap:8px;font-weight:400 !important;}
.chub-remember input{width:auto !important;}
.chub-auth-row{display:flex;align-items:center;justify-content:space-between;margin:14px 0 0;flex-wrap:wrap;gap:8px;}
.chub-auth-row .chub-remember{margin:0;}
.chub-forgot-link{font-size:.85rem;color:var(--chub-accent);font-weight:600;}
.chub-auth-form .chub-btn{margin-top:22px;}
.chub-auth-switch{text-align:center;margin-top:20px;font-size:.88rem;color:var(--chub-text-faint);}
.chub-auth-switch a{color:var(--chub-accent);font-weight:600;}
.chub-form-errors{background:rgba(226,85,75,.1);border:1px solid rgba(226,85,75,.35);border-radius:var(--chub-radius-sm);padding:12px 16px;margin-bottom:16px;}
.chub-form-errors p{margin:0;color:#e2554b;font-size:.85rem;}
.chub-notice{padding:12px 16px;border-radius:var(--chub-radius-sm);margin:20px 0;}
.chub-notice-success{background:rgba(90,200,120,.1);border:1px solid rgba(90,200,120,.3);color:#5ac878;}

/* ============ Profile page ============ */
.chub-profile-page{padding:50px 0 80px;}
.chub-profile-grid{display:grid;grid-template-columns:340px minmax(0,1fr);gap:32px;align-items:start;}
.chub-profile-card{background:var(--chub-card);border:1px solid var(--chub-border);border-radius:var(--chub-radius);padding:28px;}
.chub-avatar-uploader{text-align:center;margin-bottom:20px;}
.chub-avatar-uploader-label{display:inline-flex;flex-direction:column;align-items:center;cursor:pointer;}
.chub-avatar-uploader img{width:120px;height:120px;border-radius:50%;object-fit:cover;margin:0 auto 12px;border:3px solid var(--chub-accent);}
.chub-avatar-edit{display:inline-block;color:var(--chub-accent);font-size:.85rem;font-weight:600;}
.chub-profile-form input.chub-visually-hidden{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0,0,0,0) !important;white-space:nowrap !important;border:0 !important;}
.chub-profile-form label:not(.chub-avatar-uploader-label){display:block;font-size:.8rem;font-weight:600;margin:14px 0 6px;color:var(--chub-text-dim);}
.chub-profile-form input,.chub-profile-form textarea{width:100%;background:var(--chub-bg-alt);border:1px solid var(--chub-border);border-radius:var(--chub-radius-sm);padding:11px 13px;color:var(--chub-text);font-family:inherit;}
.chub-profile-form button{margin-top:20px;width:100%;}
.chub-profile-security{margin-top:24px;}
.chub-profile-security h2{font-size:1.1rem;margin-bottom:4px;}
.chub-settings-wrap{max-width:520px;margin:0 auto;}
.chub-settings-wrap .chub-profile-security{margin-top:0;}
.chub-field-hint{font-size:.78rem;color:var(--chub-text-faint);margin:6px 0 0;}
.chub-profile-liked h2{font-size:1.2rem;margin-bottom:16px;}

/* ============ Footer ============ */
.chub-footer{background:var(--chub-bg-alt);border-top:1px solid var(--chub-border);margin-top:60px;}
.chub-footer-inner{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1fr);gap:32px;padding:56px 24px 32px;}
.chub-footer-logo{height:34px;margin-bottom:12px;}
.chub-footer-brand p{color:var(--chub-text-faint);font-size:.88rem;max-width:280px;}
.chub-social-links{display:flex;gap:14px;margin-top:14px;}
.chub-social-links a{font-size:.8rem;color:var(--chub-text-dim);}
.chub-social-links a:hover{color:var(--chub-accent);}
.chub-footer-col h4{font-size:.85rem;text-transform:uppercase;letter-spacing:1px;color:var(--chub-text-dim);margin-bottom:14px;}
.chub-footer-col ul li{margin-bottom:8px;}
.chub-footer-col ul li a{color:var(--chub-text-faint);font-size:.88rem;}
.chub-footer-col ul li a:hover{color:var(--chub-accent);}
.chub-footer-bottom{border-top:1px solid var(--chub-border);padding:18px 24px;text-align:center;}
.chub-footer-bottom p{margin:0;font-size:.8rem;color:var(--chub-text-faint);}

/* Large screens (laptop, desktop, TV): the video stage is width:100% of a
   1240px container by default, which on a wide-but-not-very-tall viewport
   (a typical laptop) makes the 16:9 box taller than the space left under
   the sticky 76px header, forcing a scroll just to see the whole player.
   From here up, size the stage off the viewport height instead so it
   always fits on screen; min() still caps it at the container's width, so
   it never grows past that on very tall/TV displays either. */
@media (min-width: 1025px){
	.chub-video-stage{
		width:min(100%, calc((100vh - 170px) * 16 / 9));
		margin:0 auto;
	}
	.chub-big-play{width:100px;height:100px;}
	.chub-big-play svg{width:82px;height:82px;}
	.chub-ctrl svg{width:24px;height:24px;}
}
@media (min-width: 1600px){
	.chub-big-play{width:120px;height:120px;}
	.chub-big-play svg{width:96px;height:96px;}
	.chub-ctrl svg{width:27px;height:27px;}
	.chub-time-display,.chub-like-count{font-size:.92rem;}
}

/* ============ Responsive ============ */
@media (max-width: 1024px){
	.chub-video-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
	.chub-footer-inner{grid-template-columns:minmax(0,1fr) minmax(0,1fr);}
}
@media (max-width: 860px){
	.chub-profile-grid{grid-template-columns:minmax(0,1fr);}
}
@media (max-width: 768px){
	.chub-video-stage{aspect-ratio:16/10;}
	/* The locked (payment-gated) stage carries a lock icon, title,
	   sub-copy and an unlock button — the 16/10 ratio above is too short
	   for that content on a phone, so give it more room to breathe. */
	.chub-video-stage-locked{aspect-ratio:3/4;min-height:380px;}
	.chub-menu-toggle{display:flex;order:3;flex-shrink:0;}
	.chub-header-actions{order:2;margin-left:auto;flex-shrink:0;}
	.chub-header-actions .chub-btn{padding:9px 14px;font-size:.82rem;white-space:nowrap;}
	.chub-logo{order:1;flex-shrink:1;min-width:0;overflow:hidden;}
	.chub-nav{
		position:fixed;top:76px;right:0;left:auto;bottom:0;width:50%;background:var(--chub-bg);
		padding:24px;padding-top:16px;transform:translateX(100%);transition:.3s;overflow-y:auto;
		box-shadow:-8px 0 24px rgba(0,0,0,.15);z-index:100;
	}
	.chub-nav.is-open{transform:translateX(0);}
	.chub-nav-close{
		display:flex;align-items:center;justify-content:center;
		position:relative;margin:0 0 12px auto;width:34px;height:34px;
		background:var(--chub-bg-alt);border:none;border-radius:50%;
		color:var(--chub-text);padding:0;
	}
	.chub-nav-close svg{width:16px;height:16px;}
	.chub-nav-backdrop{
		position:fixed;top:76px;left:0;right:0;bottom:0;background:rgba(0,0,0,.35);
		opacity:0;visibility:hidden;transition:.3s;z-index:99;
	}
	.chub-nav-backdrop.is-open{opacity:1;visibility:visible;}
	.chub-nav-list{flex-direction:column;align-items:flex-start;gap:0;}
	.chub-nav-list > li{width:100%;border-bottom:1px solid var(--chub-border);}
	.chub-nav-list > li > a{padding:16px 0;width:100%;}
	.chub-dropdown,
	.chub-nav-list .sub-menu{position:static;opacity:1;visibility:visible;transform:none;display:none;border:none;background:none;padding:0 0 0 14px;box-shadow:none;}
	.chub-has-dropdown.is-open .chub-dropdown,
	.chub-nav-list > li.menu-item-has-children.is-open > .sub-menu{display:block;}
	.chub-video-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
	.chub-header-inner{gap:14px;}
	.chub-cd-num{font-size:1.4rem;}
	.chub-cd-unit{padding:9px 10px;min-width:52px;}
	.chub-countdown-timer{gap:8px;}
	.chub-countdown-cover{aspect-ratio:auto;min-height:0;}
	.chub-countdown-overlay{position:relative;padding:24px 16px;gap:10px;}
	.chub-remind-btn{padding:9px 20px;font-size:.9rem;}
	.chub-footer-inner{
		grid-template-columns:minmax(0,1fr) minmax(0,1fr);
		grid-template-areas:
			"brand brand"
			"explore legal"
			"contact contact"
			"widgets widgets";
		padding:40px 24px;
	}
	.chub-footer-area-brand{grid-area:brand;}
	.chub-footer-area-explore{grid-area:explore;}
	.chub-footer-area-contact{grid-area:contact;}
	.chub-footer-area-legal{grid-area:legal;}
	.chub-footer-area-widgets{grid-area:widgets;}
	.chub-video-title{font-size:1.3rem;}
	.chub-auth-card{padding:30px 24px;}
}
@media (max-width: 480px){
	.chub-nav{width:70%;}
	.chub-video-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
	.chub-controls-right{gap:4px;}
	.chub-time-display{display:none;}
	.chub-header-inner{gap:8px;}
	.chub-header-actions{gap:8px;}
	.chub-header-actions .chub-btn{padding:8px 12px;font-size:.78rem;}
}

/* Screenshot / copy deterrents (see Settings > Content Protection).
   Note: these are friction, not real protection -- no CSS/JS can stop an
   OS-level screenshot or a second camera pointed at the screen. */
.chub-noshot, .chub-noshot *{
	-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;
	-webkit-touch-callout:none; /* disables the iOS long-press "Save Image" menu */
}
.chub-noshot img,
.chub-noshot video{
	-webkit-user-drag:none;user-drag:none;
	pointer-events:auto;
}
.chub-noshot input,
.chub-noshot textarea{
	-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text; /* form fields must stay usable */
}
.chub-noshot-devtools-blur{filter:blur(24px);transition:filter .15s ease;}
@media print{
	body.chub-noshot *{display:none !important;}
	body.chub-noshot::before{
		content:"Printing is disabled for this content.";
		display:block;font-size:20px;padding:60px;text-align:center;
	}
}
