/* ================= Art Deco / Gatsby Gold Theme ================= */
:root {
  --gold: #d4af37;
  --gold-light: #f4e5a8;
  --gold-deep: #a8842a;
  --emerald: #0b5c48;
  --emerald-light: #12836a;
  --black: #0a0a0c;
  --black-2: #131316;
  --black-3: #1b1b1f;
  --cream: #f2e9d0;
  --shadow: rgba(0, 0, 0, .6);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--black);
  color: var(--cream);
  font-family: 'Georgia', 'Times New Roman', serif;
  -webkit-tap-highlight-color: transparent;
}

body { padding-bottom: 40px; }

[v-cloak] { display: none; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; }

/* decorative gold divider mixin-ish */
.sec-hd {
  display: flex; align-items: center; justify-content: space-between;
  margin: 28px 16px 14px;
  padding-bottom: 8px;
  position: relative;
}
.sec-hd::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold-light) 50%, var(--gold) 80%, transparent);
}
.sec-label {
  font-size: 15px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold-light);
  font-weight: bold;
  position: relative;
  padding-left: 14px;
}
.sec-label::before {
  content: '◆';
  position: absolute; left: -4px; top: 50%; transform: translate(-50%, -50%);
  color: var(--emerald-light); font-size: 10px;
}
.sec-more {
  background: transparent; color: var(--gold);
  border: 1px solid var(--gold-deep); border-radius: 0;
  padding: 5px 12px; font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.sec-cnt {
  color: var(--emerald-light); font-size: 12px; letter-spacing: 1px;
}

/* ============ Top Bar ============ */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px;
  background: linear-gradient(180deg, var(--black-3), var(--black));
  border-bottom: 2px solid var(--gold);
  position: relative;
}
.topbar::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 8px, transparent 8px 16px);
}
.topbar-logo {
  font-size: 20px; letter-spacing: 2px; font-weight: bold;
  color: var(--gold-light);
  text-shadow: 0 0 10px rgba(212,175,55,.4);
}
.topbar-search-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--emerald-light), var(--emerald));
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--gold-deep);
}

/* ============ Category Tabs ============ */
.cat-tabs {
  background: var(--black-2);
  border-bottom: 1px solid var(--gold-deep);
  overflow: hidden;
}
.cat-tabs-inner {
  display: flex; gap: 8px; overflow-x: auto; padding: 10px 14px;
  scrollbar-width: none;
}
.cat-tabs-inner::-webkit-scrollbar { display: none; }
.cat-tab {
  flex: 0 0 auto;
  background: var(--black-3);
  color: var(--cream);
  padding: 8px 16px;
  font-size: 13px; letter-spacing: 1px;
  border: 1px solid var(--gold-deep);
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 8px 100%, 0 50%);
}
.cat-tab.active {
  background: linear-gradient(120deg, var(--gold-deep), var(--gold));
  color: var(--black);
  font-weight: bold;
}

/* ============ Search Bar ============ */
.search-bar-wrap {
  display: flex; gap: 10px; align-items: center;
  padding: 12px 16px;
  background: var(--black-2);
  border-bottom: 1px solid var(--gold-deep);
}
.search-input {
  flex: 1; background: var(--black-3); border: 1px solid var(--gold-deep);
  color: var(--cream); padding: 10px 14px; font-size: 14px;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%);
}
.search-input:focus { outline: none; border-color: var(--gold); }
.search-cancel { background: none; color: var(--gold); font-size: 13px; letter-spacing: 1px; }

/* ============ Loading ============ */
.loading-full {
  display: flex; align-items: center; justify-content: center;
  min-height: 60vh;
}
.loading-ring {
  width: 56px; height: 56px; border-radius: 50%;
  border: 3px solid var(--black-3);
  border-top-color: var(--gold);
  border-right-color: var(--emerald-light);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ 1. Hero Featured — sunburst frame ============ */
.featured-sec { padding: 22px 16px 6px; }
.feat-split2 {
  display: block;
  position: relative;
  background:
    radial-gradient(circle at 50% -20%, rgba(212,175,55,.35), transparent 60%),
    linear-gradient(160deg, var(--black-3), var(--black));
  border: 2px solid var(--gold);
  padding: 3px;
  overflow: hidden;
}
.feat-split2::before {
  content: '';
  position: absolute; inset: 8px;
  border: 1px solid var(--gold-deep);
  pointer-events: none;
  z-index: 2;
}
.feat-split2::after {
  content: '';
  position: absolute; top: -50%; left: 50%; width: 220%; height: 220%;
  transform: translateX(-50%);
  background: repeating-conic-gradient(from 0deg, rgba(212,175,55,.16) 0deg 9deg, transparent 9deg 18deg);
  opacity: .5;
  pointer-events: none;
}
.feat-split2-img {
  position: relative; z-index: 1;
  aspect-ratio: 16/9; overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 50% 100%, 0 88%);
}
.feat-split2-img img { width: 100%; height: 100%; object-fit: cover; }
.feat-split2-body {
  position: relative; z-index: 3;
  padding: 16px 18px 20px;
  text-align: center;
}
.feat-split2-badge {
  display: inline-block;
  background: linear-gradient(120deg, var(--gold-deep), var(--gold));
  color: var(--black); font-weight: bold;
  padding: 4px 16px; font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  margin-bottom: 10px;
}
.feat-split2-title {
  font-size: 22px; color: var(--gold-light); margin: 8px 0 6px;
  letter-spacing: 1px;
}
.feat-split2-desc { font-size: 13px; color: var(--cream); opacity: .8; }

/* ============ 2. Hot Games — marquee lights row ============ */
.hotmason {
  display: flex; gap: 12px; padding: 0 16px 8px; overflow-x: auto;
}
.hotmason-item {
  flex: 0 0 130px; position: relative;
  background: var(--black-3);
  border: 2px solid var(--gold);
  padding: 6px;
}
.hotmason-item::before {
  content: '';
  position: absolute; inset: -1px;
  background:
    radial-gradient(circle 3px at 6px 6px, var(--gold-light) 90%, transparent 92%),
    radial-gradient(circle 3px at calc(100% - 6px) 6px, var(--gold-light) 90%, transparent 92%),
    radial-gradient(circle 3px at 6px calc(100% - 6px), var(--gold-light) 90%, transparent 92%),
    radial-gradient(circle 3px at calc(100% - 6px) calc(100% - 6px), var(--gold-light) 90%, transparent 92%);
  pointer-events: none;
  animation: bulb 1.6s ease-in-out infinite alternate;
}
@keyframes bulb { from { opacity: .5; } to { opacity: 1; } }
.hotmason-img { aspect-ratio: 1/1; overflow: hidden; }
.hotmason-img img { width: 100%; height: 100%; object-fit: cover; }
.hotmason-rec {
  position: absolute; top: 8px; left: 8px;
  background: var(--emerald); color: var(--gold-light);
  font-size: 9px; padding: 2px 6px; letter-spacing: 1px;
}
.hotmason-nm {
  font-size: 12px; text-align: center; padding: 6px 2px 2px;
  color: var(--gold-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ============ 3. Spotlight Picks — playbill list ============ */
.star-list { padding: 0 16px; display: flex; flex-direction: column; gap: 10px; }
.star-item {
  display: block; position: relative;
  background: linear-gradient(90deg, var(--black-3), var(--black-2));
  border-left: 3px solid var(--gold);
  border-bottom: 1px solid var(--gold-deep);
  padding: 10px 14px 12px 30px;
}
.star-bullet {
  position: absolute; left: 10px; top: 12px; color: var(--emerald-light); font-size: 12px;
}
.star-name { color: var(--gold-light); font-weight: bold; font-size: 15px; margin-right: 8px; }
.star-cat {
  font-size: 10px; color: var(--black);
  background: var(--gold); padding: 2px 8px; letter-spacing: 1px;
}
.star-desc { font-size: 12px; color: var(--cream); opacity: .75; margin: 6px 0 0; }

/* ============ 4. New Releases — ticker-tape scroll ============ */
.tape-row {
  display: flex; gap: 14px; padding: 4px 16px 12px; overflow-x: auto;
  position: relative;
}
.tape-card {
  flex: 0 0 108px; text-align: center;
}
.tape-img {
  position: relative; aspect-ratio: 3/4; overflow: hidden;
  border: 1px solid var(--gold-deep);
  clip-path: polygon(12% 0, 88% 0, 100% 10%, 100% 100%, 0 100%, 0 10%);
}
.tape-img img { width: 100%; height: 100%; object-fit: cover; }
.tape-badge {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(11,92,72,.85); color: var(--gold-light);
  font-size: 9px; text-align: center; padding: 2px 0; letter-spacing: 1px;
}
.tape-nm { font-size: 11px; color: var(--gold-light); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ============ 5. Browse Channels — fan-shaped circular grid ============ */
.channel-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 10px;
  padding: 6px 16px 12px;
}
.channel-card { text-align: center; }
.channel-img {
  position: relative; aspect-ratio: 1/1; border-radius: 50%; overflow: hidden;
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 4px var(--black), 0 0 0 5px var(--gold-deep);
}
.channel-img img { width: 100%; height: 100%; object-fit: cover; }
.channel-ch {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(10,10,12,.75); color: var(--gold-light);
  font-size: 9px; text-align: center; letter-spacing: 1px;
}
.channel-nm { font-size: 11px; margin-top: 6px; color: var(--cream); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ============ 6. Action — trophy podium ============ */
.podium {
  display: flex; align-items: flex-end; justify-content: center; gap: 10px;
  padding: 10px 16px 20px;
}
.podium-item { text-align: center; position: relative; }
.podium-img {
  position: relative; overflow: hidden;
  border: 2px solid var(--gold);
}
.podium-item.p1 .podium-img { width: 108px; height: 108px; order: 2; box-shadow: 0 0 16px rgba(212,175,55,.5); }
.podium-item.p2 .podium-img { width: 84px; height: 84px; order: 1; }
.podium-item.p3 .podium-img { width: 84px; height: 84px; order: 3; }
.podium-item.p1 { order: 2; }
.podium-item.p2 { order: 1; }
.podium-item.p3 { order: 3; }
.podium-img img { width: 100%; height: 100%; object-fit: cover; }
.podium-rank {
  position: absolute; top: -8px; right: -8px;
  background: var(--gold); color: var(--black); font-weight: bold;
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 11px;
  border: 2px solid var(--black);
}
.podium-nm { font-size: 11px; color: var(--gold-light); margin-top: 8px; }

/* ============ 7. Puzzle — chevron row ============ */
.polaroid-row { display: flex; gap: 0; padding: 6px 16px 16px; overflow-x: auto; }
.polaroid {
  flex: 0 0 118px; margin-right: -18px;
  background: var(--black-3);
  clip-path: polygon(0 0, 82% 0, 100% 50%, 82% 100%, 0 100%, 18% 50%);
  border: 1px solid var(--gold-deep);
  padding: 4px 22px 8px 10px;
  position: relative; z-index: 1;
}
.polaroid:hover, .polaroid:nth-child(odd) { z-index: 2; }
.polaroid-img { aspect-ratio: 1/1; overflow: hidden; }
.polaroid-img img { width: 100%; height: 100%; object-fit: cover; }
.polaroid-nm { font-size: 10px; text-align: center; color: var(--gold-light); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ============ 8. Kids — deco-medallion bubbles ============ */
.bubble-wrap { display: flex; gap: 16px; padding: 10px 16px 16px; justify-content: center; flex-wrap: wrap; }
.bubble-card { text-align: center; width: 92px; }
.bubble-img {
  aspect-ratio: 1/1; border-radius: 50%; overflow: hidden;
  border: 3px solid var(--emerald-light);
  background: conic-gradient(var(--gold) 0 10%, transparent 10% 20%, var(--gold) 20% 30%, transparent 30% 40%, var(--gold) 40% 50%, transparent 50% 60%, var(--gold) 60% 70%, transparent 70% 80%, var(--gold) 80% 90%, transparent 90% 100%);
  padding: 3px;
}
.bubble-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.bubble-nm { font-size: 11px; color: var(--gold-light); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ============ 9. Sports — zigzag inlay ============ */
.zig-list { display: flex; flex-direction: column; padding: 6px 16px 16px; gap: 12px; }
.zig-row {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(100deg, var(--black-3) 60%, var(--black-2));
  border: 1px solid var(--gold-deep);
  clip-path: polygon(0 0, 96% 0, 100% 50%, 96% 100%, 0 100%);
  padding: 10px 14px;
}
.zig-row.rev { flex-direction: row-reverse; clip-path: polygon(4% 0, 100% 0, 100% 100%, 4% 100%, 0 50%); }
.zig-img { flex: 0 0 60px; height: 60px; overflow: hidden; border: 1px solid var(--gold); }
.zig-img img { width: 100%; height: 100%; object-fit: cover; }
.zig-body { flex: 1; min-width: 0; }
.zig-nm { color: var(--gold-light); font-size: 14px; font-weight: bold; margin: 0 0 3px; }
.zig-tag {
  font-size: 9px; background: var(--emerald); color: var(--gold-light);
  padding: 1px 7px; letter-spacing: 1px;
}
.zig-desc { font-size: 11px; color: var(--cream); opacity: .7; margin: 4px 0 0; }

/* ============ 10. Adventure — geometric masonry ============ */
.masonry-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
  padding: 6px 16px 16px;
}
.masonry-item:first-child { grid-row: span 2; }
.masonry-item {
  position: relative; overflow: hidden;
  border: 1px solid var(--gold-deep);
  clip-path: polygon(0 8%, 8% 0, 100% 0, 100% 92%, 92% 100%, 0 100%);
}
.masonry-item:first-child { aspect-ratio: 1/2.05; }
.masonry-item:not(:first-child) { aspect-ratio: 1/1; }
.masonry-item img { width: 100%; height: 78%; object-fit: cover; }
.masonry-nm {
  font-size: 11px; text-align: center; color: var(--gold-light);
  background: var(--black-3); padding: 6px 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ============ 11. Racing — grand banner ============ */
.banner-single {
  display: block; position: relative; margin: 6px 16px 16px;
  aspect-ratio: 16/8; overflow: hidden;
  border: 2px solid var(--gold);
}
.banner-single::before {
  content: ''; position: absolute; inset: 6px; border: 1px solid var(--gold-deep); z-index: 2; pointer-events: none;
}
.banner-single img { width: 100%; height: 100%; object-fit: cover; }
.banner-ovl {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  background: linear-gradient(0deg, rgba(10,10,12,.92), transparent);
  padding: 14px 18px;
}
.banner-badge {
  display: inline-block; background: var(--gold); color: var(--black);
  font-size: 10px; font-weight: bold; letter-spacing: 2px; padding: 2px 10px; margin-bottom: 6px;
}
.banner-title { color: var(--gold-light); font-size: 18px; font-weight: bold; margin: 4px 0; }
.banner-desc { color: var(--cream); font-size: 12px; opacity: .8; margin: 0; }

/* ============ 12. Girl — elegant list ============ */
.mag-list { display: flex; flex-direction: column; gap: 12px; padding: 6px 16px 16px; }
.mag-row {
  display: flex; gap: 14px; align-items: center;
  padding-bottom: 12px; border-bottom: 1px dashed var(--gold-deep);
}
.mag-img { flex: 0 0 68px; height: 68px; overflow: hidden; border: 1px solid var(--gold); }
.mag-img img { width: 100%; height: 100%; object-fit: cover; }
.mag-body { flex: 1; min-width: 0; }
.mag-nm { color: var(--gold-light); font-size: 14px; margin: 0 0 4px; font-weight: bold; }
.mag-desc { font-size: 11px; color: var(--cream); opacity: .75; margin: 0; }

/* ============ 13. Arcade — tiered stack ============ */
.stack-row { display: flex; justify-content: center; padding: 16px 16px 24px; }
.stack-card {
  width: 120px; height: 120px; overflow: hidden;
  border: 2px solid var(--gold);
  box-shadow: -10px 10px 0 -4px var(--black-3), -10px 10px 0 -3px var(--gold-deep);
}
.stack-card:nth-child(1) { transform: rotate(-8deg); margin-right: -30px; z-index: 1; }
.stack-card:nth-child(2) { transform: rotate(0deg); z-index: 3; box-shadow: 0 8px 18px var(--shadow); }
.stack-card:nth-child(3) { transform: rotate(8deg); margin-left: -30px; z-index: 1; }
.stack-card img { width: 100%; height: 100%; object-fit: cover; }

/* ============ All Games — geometric grid ============ */
.all-sec { padding-bottom: 10px; }
.all-grid, .games-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  padding: 6px 16px 16px;
}
.agcard, .gcard { text-align: center; }
.agcard-img, .gcard-img {
  aspect-ratio: 1/1; overflow: hidden;
  border: 1px solid var(--gold-deep);
  clip-path: polygon(10% 0, 90% 0, 100% 10%, 100% 90%, 90% 100%, 10% 100%, 0 90%, 0 10%);
}
.agcard-img img, .gcard-img img { width: 100%; height: 100%; object-fit: cover; }
.agcard-nm, .gcard-nm {
  font-size: 11px; color: var(--gold-light); margin-top: 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.more-wrap, .loadmore-wrap { display: flex; justify-content: center; padding: 8px 16px 20px; }
.more-btn, .loadmore-btn {
  background: linear-gradient(120deg, var(--gold-deep), var(--gold));
  color: var(--black); font-weight: bold; letter-spacing: 2px;
  padding: 10px 28px; font-size: 12px; text-transform: uppercase;
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}

/* ============ Filter / Search header + grid ============ */
.filter-hdr {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 16px 10px;
  border-bottom: 2px solid var(--gold);
}
.filter-back {
  background: none; color: var(--gold); font-size: 13px; letter-spacing: 1px;
  border: 1px solid var(--gold-deep); padding: 6px 12px;
}
.filter-title { flex: 1; color: var(--gold-light); font-size: 16px; letter-spacing: 1px; }
.filter-cnt { color: var(--emerald-light); font-size: 12px; }
.empty-msg { text-align: center; color: var(--cream); opacity: .6; padding: 40px 0; }

/* ============ Footer ============ */
.site-footer {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 26px 16px 10px; margin-top: 20px;
  border-top: 2px solid var(--gold);
  color: var(--gold-light); font-size: 12px; letter-spacing: 1px;
}
.site-footer a { color: var(--gold-light); }
.site-footer a:hover { text-decoration: underline; }
.site-footer span { color: var(--gold-deep); }

/* ============ Back to top ============ */
.totop-btn {
  position: fixed; right: 18px; bottom: 24px; z-index: 50;
  width: 44px; height: 44px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--gold-light), var(--gold-deep));
  color: var(--black); font-weight: bold; font-size: 18px;
  border: 2px solid var(--black);
  box-shadow: 0 4px 14px var(--shadow);
}

/* Responsive tweak */
@media (min-width: 640px) {
  .channel-grid { grid-template-columns: repeat(6, 1fr); }
  .all-grid, .games-grid { grid-template-columns: repeat(5, 1fr); }
}
