:root {
  --cream: #f4e8d3;
  --cream-soft: #fbf6ed;
  --red: #a94335;
  --red-dark: #87352b;
  --charcoal: #252525;
  --mustard: #d6a33a;
  --teal: #478784;
  --teal-dark: #326c69;
  --muted: #746f67;
  --line: rgba(37, 37, 37, 0.12);
  --white: #fffdfa;
  --shadow-sm: 0 10px 30px rgba(68, 50, 34, 0.08);
  --shadow-md: 0 18px 50px rgba(68, 50, 34, 0.13);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --container: 1240px;
  --header-h: 78px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Be Vietnam Pro", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--charcoal);
  background:
    radial-gradient(circle at 8% 2%, rgba(214,163,58,.12), transparent 30rem),
    radial-gradient(circle at 92% 18%, rgba(71,135,132,.10), transparent 28rem),
    var(--cream-soft);
  line-height: 1.55;
}
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
img { max-width: 100%; display: block; }
.container { width: min(calc(100% - 32px), var(--container)); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -100px; z-index: 1000; background: var(--charcoal); color: white; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 246, 237, .88);
  border-bottom: 1px solid rgba(37,37,37,.08);
  backdrop-filter: blur(16px);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand-icon { width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(0 5px 8px rgba(68,50,34,.12)); }
.brand-text { display: flex; align-items: baseline; gap: 7px; font-weight: 800; letter-spacing: -.04em; white-space: nowrap; }
.brand-text b { color: var(--red); font-size: 1.55rem; }
.brand-text strong { font-size: 1.05rem; }
.header-nav { display: flex; gap: 24px; margin-left: auto; }
.header-nav a { color: #4f4a44; font-size: .9rem; font-weight: 600; }
.header-nav a:hover { color: var(--red); }
.header-actions { display: flex; gap: 8px; align-items: center; }
.icon-btn, .view-toggle, .share-btn { border: 1px solid var(--line); background: rgba(255,255,255,.65); cursor: pointer; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 1.2rem; }
.icon-btn:hover { background: white; border-color: rgba(37,37,37,.2); }
.menu-toggle { display: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border-radius: 999px; font-weight: 700; font-size: .9rem; transition: .2s ease; border: 1px solid transparent; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: white; box-shadow: 0 9px 22px rgba(169,67,53,.22); }
.btn-primary:hover { background: var(--red-dark); }
.btn-secondary { background: rgba(255,255,255,.72); border-color: var(--line); }
.btn-secondary:hover { background: white; }
.btn-youtube { background: var(--charcoal); color: white; }
.btn-youtube:hover { background: #111; }
.header-youtube { min-height: 40px; padding-inline: 14px; }

.search-panel { padding: 0 0 18px; }
.search-panel label { display: block; font-size: .75rem; font-weight: 700; margin-bottom: 6px; color: var(--muted); }
.search-box { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; background: white; border: 1px solid var(--line); border-radius: 16px; padding: 0 14px; box-shadow: var(--shadow-sm); }
.search-box input { border: 0; outline: 0; min-height: 52px; width: 100%; background: transparent; }
.search-box button { border: 0; background: none; cursor: pointer; font-size: 1.3rem; }
.search-panel small { display: block; color: var(--muted); margin-top: 8px; }
.mobile-nav { border-top: 1px solid var(--line); padding: 10px 16px 18px; }
.mobile-nav a { display: block; padding: 12px 0; font-weight: 600; }

.hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(460px, 1.1fr); gap: 70px; align-items: center; min-height: 600px; padding-block: 70px; }
.status-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.eyebrow { color: var(--teal-dark); font-size: .73rem; font-weight: 800; letter-spacing: .14em; margin: 0 0 10px; }
.status-row .eyebrow { margin: 0; }
.mode-pill { font-size: .68rem; font-weight: 800; padding: 5px 9px; border-radius: 999px; background: rgba(214,163,58,.16); color: #7c5c18; border: 1px solid rgba(214,163,58,.26); }
.mode-pill.live { background: rgba(71,135,132,.15); color: var(--teal-dark); border-color: rgba(71,135,132,.25); }
.hero h1 { font-size: clamp(2.8rem, 5vw, 5.3rem); line-height: .98; letter-spacing: -.055em; margin: 18px 0 22px; max-width: 760px; }
.hero h1 em { display: block; color: var(--red); font-style: normal; }
.hero-text { max-width: 620px; font-size: 1.05rem; color: #5d5750; margin: 0; }
.hero-actions { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.hero-meta { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 26px; color: var(--muted); font-size: .78rem; }
.hero-meta b { color: var(--charcoal); }
.dot { opacity: .45; }
.featured-shell { position: relative; }
.featured-label { position: absolute; z-index: 2; left: -16px; top: 20px; background: var(--mustard); padding: 7px 12px; font-size: .72rem; font-weight: 800; border-radius: 8px 8px 8px 2px; transform: rotate(-2deg); box-shadow: var(--shadow-sm); }
.featured-card { aspect-ratio: 16 / 10; border-radius: var(--radius-lg); overflow: hidden; position: relative; background: #e7dfd1; box-shadow: var(--shadow-md); border: 1px solid rgba(37,37,37,.09); }
.featured-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); border-radius: inherit; }
.featured-card .video-thumb { height: 100%; }
.featured-card .video-copy { position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 24px 22px; background: linear-gradient(transparent, rgba(20,20,20,.88)); color: white; }
.featured-card .video-copy h3 { font-size: 1.4rem; max-width: 82%; margin: 7px 0 0; }
.featured-card .meta-row { color: rgba(255,255,255,.72); }

.category-bar { position: sticky; top: var(--header-h); z-index: 50; border-block: 1px solid var(--line); background: rgba(244,232,211,.89); backdrop-filter: blur(14px); }
.category-inner { min-height: 66px; display: flex; align-items: center; gap: 18px; }
.category-caption { flex: 0 0 auto; font-size: .78rem; font-weight: 700; color: var(--muted); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-block: 9px; }
.chips::-webkit-scrollbar { display: none; }
.chip { border: 1px solid rgba(37,37,37,.12); border-radius: 999px; background: rgba(255,255,255,.62); padding: 8px 12px; cursor: pointer; white-space: nowrap; font-size: .78rem; font-weight: 700; transition: .2s; }
.chip:hover, .chip.active { background: var(--charcoal); color: white; border-color: var(--charcoal); }

.section { padding-block: 74px 30px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; }
.section-head h2 { margin: 2px 0 0; font-size: clamp(1.8rem, 3vw, 2.7rem); letter-spacing: -.04em; }
.section-tools { display: flex; align-items: center; gap: 8px; }
.sync-status { font-size: .72rem; color: var(--muted); margin-right: 6px; }
.view-toggle { width: 36px; height: 36px; border-radius: 10px; }
.view-toggle.active { background: var(--charcoal); color: white; }
.active-filter { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: -6px 0 20px; padding: 10px 13px; border-radius: 12px; background: rgba(71,135,132,.11); color: var(--teal-dark); font-size: .78rem; font-weight: 700; }
.active-filter button { border: 0; background: transparent; color: inherit; cursor: pointer; font-weight: 800; }
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.video-grid.list-view { grid-template-columns: 1fr; }
.video-card { min-width: 0; cursor: pointer; }
.video-card:focus-visible { outline: 3px solid rgba(71,135,132,.35); outline-offset: 5px; border-radius: var(--radius-md); }
.video-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-md); background: #e3dacb; box-shadow: 0 8px 24px rgba(68,50,34,.08); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .32s ease; }
.video-card:hover .video-thumb img { transform: scale(1.025); }
.demo-thumb { width: 100%; height: 100%; display: grid; place-items: center; position: relative; overflow: hidden; background: linear-gradient(135deg, var(--cream), #fff 42%, rgba(71,135,132,.13)); }
.demo-thumb::before { content: ""; position: absolute; width: 66%; height: 130%; border-radius: 50%; background: rgba(169,67,53,.10); transform: rotate(24deg); left: -18%; top: -30%; }
.demo-thumb span { position: relative; font-size: 3.1rem; filter: drop-shadow(0 4px 6px rgba(37,37,37,.12)); }
.play-button { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%,-50%); width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: rgba(37,37,37,.86); color: white; box-shadow: 0 8px 22px rgba(0,0,0,.2); transition: .2s; }
.video-card:hover .play-button { transform: translate(-50%,-50%) scale(1.08); background: var(--red); }
.duration, .demo-badge { position: absolute; font-size: .66rem; font-weight: 800; border-radius: 6px; }
.duration { right: 8px; bottom: 8px; color: white; background: rgba(20,20,20,.82); padding: 3px 6px; }
.demo-badge { left: 8px; top: 8px; background: var(--mustard); color: var(--charcoal); padding: 4px 7px; }
.video-copy { padding: 13px 3px 0; }
.video-copy h3 { font-size: .96rem; line-height: 1.42; margin: 6px 0 0; letter-spacing: -.02em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-category { color: var(--teal-dark); font-size: .69rem; font-weight: 800; }
.meta-row { display: flex; align-items: center; gap: 7px; margin-top: 8px; color: var(--muted); font-size: .68rem; }
.video-grid.list-view .video-card { display: grid; grid-template-columns: 280px 1fr; gap: 18px; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.video-grid.list-view .video-copy { padding-top: 0; }
.video-grid.list-view .video-copy h3 { font-size: 1.1rem; -webkit-line-clamp: 3; }

.category-section { padding-block: 60px 10px; }
.category-section:nth-child(even) { background: rgba(244,232,211,.38); border-block: 1px solid rgba(37,37,37,.055); }
.category-section .container { padding-block: 10px 38px; }
.section-link { font-size: .78rem; font-weight: 800; color: var(--teal-dark); }

.affiliate-slot { padding-block: 36px 10px; }
.affiliate-banner { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; border: 1px solid rgba(37,37,37,.09); border-radius: var(--radius-lg); padding: 28px 32px; background: linear-gradient(110deg, #fff, #fff6e9); box-shadow: var(--shadow-sm); }
.affiliate-banner .ad-label, .ad-label { font-size: .66rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.affiliate-banner h3 { margin: 6px 0 4px; font-size: 1.5rem; }
.affiliate-banner p { margin: 0; color: var(--muted); }
.affiliate-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-card { background: white; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; padding: 14px; }
.product-card img { aspect-ratio: 1/1; object-fit: cover; border-radius: 12px; background: #f3eee7; }
.product-card h3 { font-size: .9rem; margin: 10px 0 6px; }
.product-card strong { color: var(--red); }

.subscribe-section { padding-block: 90px; }
.subscribe-card { display: flex; justify-content: space-between; align-items: center; gap: 30px; border-radius: var(--radius-lg); padding: 48px; background: var(--charcoal); color: white; position: relative; overflow: hidden; }
.subscribe-card::after { content: "30s"; position: absolute; right: 22%; top: -50%; font-size: 15rem; font-weight: 800; color: rgba(255,255,255,.035); transform: rotate(-8deg); pointer-events: none; }
.subscribe-card > * { position: relative; z-index: 1; }
.subscribe-card .eyebrow { color: #b9ddd9; }
.subscribe-card h2 { margin: 5px 0 8px; font-size: clamp(1.8rem, 3vw, 3rem); letter-spacing: -.045em; }
.subscribe-card p { margin: 0; color: rgba(255,255,255,.68); }
.subscribe-card .btn-youtube { background: var(--red); flex: 0 0 auto; }

.empty-state { border: 1px dashed rgba(37,37,37,.2); border-radius: var(--radius-lg); text-align: center; padding: 60px 20px; background: rgba(255,255,255,.45); }
.empty-state .empty-icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--cream); color: var(--red); margin: auto; }
.empty-state h3 { font-size: 1.35rem; margin: 16px 0 6px; }
.empty-state p { color: var(--muted); max-width: 520px; margin: 0 auto 20px; }

.site-footer { padding: 54px 0 26px; background: #eee2cf; border-top: 1px solid rgba(37,37,37,.08); }
.footer-grid { display: grid; grid-template-columns: 1.5fr .7fr .7fr; gap: 50px; }
.footer-brand p { color: var(--muted); }
.footer-logo .brand-icon { width: 46px; height: 46px; }
.footer-grid h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.footer-grid > div:not(:first-child) a { display: block; margin-top: 8px; font-size: .84rem; font-weight: 600; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid rgba(37,37,37,.1); margin-top: 38px; padding-top: 22px; font-size: .7rem; color: var(--muted); }
.affiliate-disclosure { max-width: 760px; margin: 0; }

.video-modal { width: min(100% - 28px, 1040px); padding: 0; border: 0; border-radius: 22px; background: transparent; }
.video-modal::backdrop { background: rgba(14,14,14,.78); backdrop-filter: blur(7px); }
.modal-card { background: #111; color: white; border-radius: 22px; overflow: hidden; position: relative; }
.modal-close { position: absolute; z-index: 3; right: 12px; top: 12px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(0,0,0,.65); color: white; cursor: pointer; font-size: 1.4rem; }
.player-wrap { aspect-ratio: 16 / 9; background: #000; }
.player-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.modal-info { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 20px 20px; }
.modal-info h3 { margin: 4px 0 0; font-size: 1.05rem; }
.modal-category { font-size: .7rem; color: #9ed2cd; font-weight: 700; }
.modal-actions { display: flex; gap: 9px; align-items: center; flex: 0 0 auto; }
.modal-actions a, .share-btn { border-radius: 999px; padding: 9px 13px; font-size: .74rem; font-weight: 700; }
.modal-actions a { background: var(--red); }
.share-btn { color: white; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); }

.back-top { position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.9); box-shadow: var(--shadow-sm); cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(8px); transition: .2s; z-index: 70; }
.back-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--charcoal); color: white; border-radius: 999px; padding: 10px 16px; font-size: .75rem; opacity: 0; pointer-events: none; transition: .2s; z-index: 200; box-shadow: var(--shadow-md); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.skeleton { background: linear-gradient(90deg, rgba(37,37,37,.06), rgba(255,255,255,.48), rgba(37,37,37,.06)); background-size: 220% 100%; animation: shimmer 1.2s infinite; }
.featured-skeleton { width: 100%; height: 100%; }
.noscript { margin: 14px; padding: 12px; border-radius: 10px; background: #fff3cd; }
@keyframes shimmer { to { background-position: -220% 0; } }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr 1fr; gap: 38px; min-height: auto; }
  .hero h1 { font-size: clamp(2.7rem, 6vw, 4.2rem); }
  .video-grid { grid-template-columns: repeat(3, 1fr); }
  .header-nav { display: none; }
  .menu-toggle { display: grid; }
  .affiliate-products { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  :root { --header-h: 68px; }
  .container { width: min(calc(100% - 28px), var(--container)); }
  .header-inner { height: var(--header-h); gap: 10px; }
  .brand-icon { width: 44px; height: 44px; }
  .brand-text b { font-size: 1.28rem; }
  .brand-text strong { font-size: .92rem; }
  .header-actions { margin-left: auto; }
  .header-youtube { display: none; }
  .hero { grid-template-columns: 1fr; gap: 34px; padding-block: 44px; }
  .hero-copy { order: 1; }
  .featured-shell { order: 2; }
  .featured-label { left: 10px; top: -10px; }
  .hero h1 { font-size: clamp(2.7rem, 13vw, 4.6rem); }
  .hero-text { font-size: .95rem; }
  .category-inner { display: block; padding-top: 10px; }
  .category-caption { display: block; }
  .chips { padding-block: 8px 12px; }
  .section { padding-block: 56px 20px; }
  .section-head { align-items: start; }
  .sync-status, .view-toggle { display: none; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .video-copy h3 { font-size: .82rem; }
  .meta-row { display: none; }
  .play-button { width: 42px; height: 42px; }
  .video-grid.list-view { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-grid.list-view .video-card { display: block; border: 0; padding: 0; }
  .video-grid.list-view .video-copy { padding-top: 10px; }
  .video-grid.list-view .video-copy h3 { font-size: .82rem; -webkit-line-clamp: 2; }
  .affiliate-banner { grid-template-columns: 1fr; padding: 24px; }
  .affiliate-products { display: flex; overflow-x: auto; gap: 12px; scroll-snap-type: x mandatory; }
  .product-card { flex: 0 0 76%; scroll-snap-align: start; }
  .subscribe-section { padding-block: 60px; }
  .subscribe-card { display: block; padding: 34px 24px; }
  .subscribe-card .btn { margin-top: 22px; width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { display: block; }
  .footer-bottom p + p { margin-top: 12px; }
  .modal-info { align-items: start; display: block; }
  .modal-actions { margin-top: 14px; }
}

@media (max-width: 410px) {
  .brand-text strong { display: none; }
  .video-grid { grid-template-columns: 1fr; }
  .video-grid.list-view { grid-template-columns: 1fr; }
}
