:root {
  --bg: #0b0b0e;
  --panel: #16161c;
  --panel-2: #22222b;
  --border: #2e2e39;
  --border-accent: rgba(247, 37, 133, 0.4);
  --text: #f5f5f7;
  --text-soft: #d9d9e0;
  --text-dim: #b3b3c0;
  --text-muted: #8c8c9b;
  --accent: #f72585;
  --accent-soft: rgba(247, 37, 133, 0.15);
  --red: #ff0000;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

.btn {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.2s;
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    opacity: 0.85;
  }
}

#footer-include {
  width: 100%;
}

.site-footer {
  width: 100%;
  padding: 24px 16px 96px;
  background: var(--panel);
  border-top: 1px solid var(--border);
  color: var(--text);
}

.footer-cols {
  display: flex;
  gap: 32px;
}

.footer-col {
  flex: 1;
}

.footer-col h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 700;
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--text-dim);
  font-size: 0.9375rem;
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .footer-col a:hover {
    color: var(--accent);
  }
}

.footer-copy {
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8125rem;
  text-align: center;
}

.is-waiting {
  pointer-events: none;
  opacity: 0.6;
}

.btn-yes {
  background: var(--accent);
}

.btn-no {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
}

.page {
  padding: 24px 16px;
}

.desktop-blocked body > *:not(.device-block) {
  display: none !important;
}

.desktop-blocked body {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.device-block {
  width: 100%;
  max-width: 1000px;
  padding: 32px 24px;
  text-align: center;
  color: var(--text);
}

.desktop-games {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.game-tile {
  display: block;
  color: var(--text);
  text-decoration: none;
}

.game-tile img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  object-fit: cover;
  background: var(--panel-2);
}

.game-tile span {
  display: block;
  margin-top: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
}

@media (hover: hover) and (pointer: fine) {
  .game-tile:hover img {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  }
}

.device-block h1 {
  margin: 0 0 12px;
}

.device-block p {
  margin: 0;
  color: var(--text-dim);
}

.gpt-ad-slot {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 200px;
  padding: 4px 0;
  background: var(--panel-2);
  overflow: hidden;
}

.gpt-ad-slot.gpt-ad-tall {
  min-height: 200px;
}

.category-page {
  background: var(--bg);
}

.category-page .category-tabs {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.category-page .category-tabs::-webkit-scrollbar {
  display: none;
}

.category-page .image-card {
  position: relative;
}

.video-badge {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  pointer-events: none;
  z-index: 1;
}

.hd-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--red);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
  pointer-events: none;
  z-index: 1;
}

.list-page {
  background: var(--bg);
}

.play-page {
  background: var(--bg);
}

.play-page .player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  -webkit-tap-highlight-color: transparent;
}

.play-page .player:fullscreen {
  aspect-ratio: auto;
  width: 100%;
  height: 100%;
}

.play-page .player:-webkit-full-screen {
  aspect-ratio: auto;
  width: 100%;
  height: 100%;
}

.play-page .player video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}

.play-page .player iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.pl-cover {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  background: #000 center / cover no-repeat;
  opacity: 1;
  transition: opacity 0.15s;
}

.player.is-live .pl-cover {
  opacity: 0;
  pointer-events: none;
}

.pl-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  cursor: pointer;
}

.pl-big {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.player.show-bar .pl-big {
  opacity: 1;
  pointer-events: auto;
}

.pl-big svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

.pl-big .ic-play {
  margin-left: 3px;
}

.pl-big .ic-pause {
  display: none;
}

.player.is-playing .pl-big .ic-play {
  display: none;
}

.player.is-playing .pl-big .ic-pause {
  display: block;
}

.pl-bar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 22px 10px 8px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.player.show-bar .pl-bar {
  opacity: 1;
  pointer-events: auto;
}

.pl-btn {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.pl-btn svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

.pl-toggle .ic-pause,
.pl-mute .ic-muted {
  display: none;
}

.player.is-playing .pl-toggle .ic-play,
.player.is-muted .pl-mute .ic-vol {
  display: none;
}

.player.is-playing .pl-toggle .ic-pause,
.player.is-muted .pl-mute .ic-muted {
  display: block;
}

.pl-time {
  flex: 0 0 auto;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.pl-seek {
  flex: 1 1 auto;
  min-width: 0;
  height: 4px;
  margin: 0;
  border-radius: 2px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(
    to right,
    #fff var(--pl-progress, 0%),
    rgba(255, 255, 255, 0.3) var(--pl-progress, 0%)
  );
}

.pl-seek::-webkit-slider-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  -webkit-appearance: none;
  appearance: none;
}

.pl-seek::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: #fff;
}

.play-page .recent {
  padding: 16px 0 8px;
}

.play-page .recent-title {
  margin: 0 16px 12px;
  font-size: 1.125rem;
  color: var(--text);
}

.recent-list {
  display: flex;
  gap: 12px;
  padding: 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.recent-list::-webkit-scrollbar {
  display: none;
}

.recent-item {
  flex: 0 0 auto;
  display: block;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--panel-2);
}

.recent-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.list-page .image-card {
  position: relative;
}

.list-page .image-card img {
  filter: blur(3px);
  transform: scale(1.08);
}

.list-page .image-card::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  margin: -30px 0 0 -30px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  box-sizing: border-box;
  z-index: 1;
}

.list-page .image-card::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #fff;
  transform: translate(-35%, -50%);
  z-index: 1;
}

.index-page {
  background: var(--bg);
}

.index-page .round-strip {
  padding: 16px 0 8px;
}

.index-page .image-grid,
.search-page .image-grid {
  align-items: stretch;
}

.index-page .round-link {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 80px;
  color: var(--text);
  text-decoration: none;
}

.index-page .round-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
  white-space: nowrap;
}

.index-page .round-count {
  color: var(--accent);
  font-size: 0.9375rem;
  font-weight: 700;
}

.index-page .round-unit {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.index-page .story-thumb,
.search-page .story-thumb {
  position: relative;
}

.index-page .story-thumb::before,
.search-page .story-thumb::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  margin: -30px 0 0 -30px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  box-sizing: border-box;
  z-index: 1;
}

.index-page .story-thumb::after,
.search-page .story-thumb::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #fff;
  transform: translate(-35%, -50%);
  z-index: 1;
}

.story-card {
  display: block;
  color: var(--text);
  text-decoration: none;
}

.story-thumb {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel-2);
}

.story-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-title {
  margin-top: 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.3;
}

.story-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.story-tags span {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 8px 12px;
}

.image-card {
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel-2);
}

.image-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-page .category-tab {
  flex: 0 0 auto;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.category-page .category-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.playnow-page {
  background: var(--bg);
}

.playnow-page .action {
  padding: 16px 12px;
}

.playnow-page .btn {
  display: block;
  text-align: center;
  text-decoration: none;
}

.blog {
  width: 100%;
  padding: 8px 16px 32px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-soft);
}

.blog h2 {
  margin: 0 0 12px;
  font-size: 1.125rem;
}

.blog p {
  margin: 0 0 12px;
}

.age-page {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.age-page .card {
  width: 100%;
  padding-bottom: 32px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.age-page .card-body {
  width: 100%;
  max-width: 480px;
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.age-page .age-note {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.age-page .age-question {
  margin: 0 0 4px;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
}

.doc-page {
  background: var(--bg);
}

.doc {
  padding: 20px 16px 8px;
  color: var(--text-soft);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.doc h1 {
  margin: 0 0 6px;
  font-size: 1.5rem;
  line-height: 1.25;
}

.doc .doc-sub {
  margin: 0 0 20px;
  color: var(--text-muted);
}

.doc h2 {
  margin: 24px 0 8px;
  font-size: 1.125rem;
}

.doc p {
  margin: 0 0 12px;
}

.doc ul {
  margin: 0 0 12px;
  padding-left: 20px;
}

.doc li {
  margin-bottom: 6px;
}

.doc a {
  color: var(--accent);
  word-break: break-word;
}

.doc .doc-note {
  padding: 12px 14px;
  background: var(--panel);
  border-radius: 8px;
}

.faq-item {
  margin-bottom: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
}

.faq-item summary {
  position: relative;
  padding: 14px 40px 14px 16px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 12px;
  font-size: 1.25rem;
  color: var(--accent);
}

.faq-item[open] summary::after {
  content: "\2212";
}

.doc .faq-item p {
  margin: 0;
  padding: 0 16px 14px;
  color: var(--text-dim);
}

.contact-form label {
  display: block;
  margin: 0 0 6px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form .char-count {
  margin: -8px 0 14px;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.contact-form .form-status {
  margin: 12px 0 0;
  color: var(--text-dim);
}

[hidden] {
  display: none !important;
}

.category-page .image-grid,
.list-page .image-grid {
  align-items: stretch;
}

.category-card,
.list-card {
  display: block;
  color: var(--text);
  text-decoration: none;
}

.like-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  pointer-events: none;
}

.like-badge svg {
  width: 12px;
  height: 12px;
  fill: var(--red);
}

.video-badge.badge-left {
  right: auto;
  left: 6px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 6px;
}

.card-name {
  min-width: 0;
  overflow: hidden;
  font-size: 0.8125rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-flag {
  flex: 0 0 auto;
  font-size: 1.125rem;
  line-height: 1;
}

.card-count {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.search-wrap {
  padding: 12px 16px 4px;
}

.search-form {
  position: relative;
}

.search-form svg {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  fill: var(--text-muted);
  pointer-events: none;
}

.search-form input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  -webkit-appearance: none;
  appearance: none;
}

.search-form input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--panel-2);
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 4px;
}

.section-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
}

.section-fans {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.section-fans svg {
  width: 26px;
  height: 26px;
  fill: var(--red);
}

.section-fans span {
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 700;
}

.search-page {
  background: var(--bg);
}

.section-head {
  align-items: center;
}

.section-fans {
  flex-direction: row;
  align-items: center;
  gap: 6px;
}

.category-card {
  overflow: hidden;
  border: 1px solid var(--border-accent);
  border-radius: 12px;
  background: var(--panel);
}

.category-card .image-card {
  border-radius: 0;
}

.category-card .card-meta {
  margin-top: 0;
  padding: 10px 10px 0;
}

.category-card .card-count {
  margin-top: 0;
  padding: 3px 10px 10px;
}

.story-card,
.list-card {
  overflow: hidden;
  border: 1px solid var(--border-accent);
  border-radius: 12px;
  background: var(--panel);
}

.story-card .story-thumb,
.list-card .image-card {
  border-radius: 0;
}

.story-card .story-title,
.list-card .story-title {
  margin-top: 0;
  padding: 10px 10px 0;
}

.story-card .story-tags {
  margin-top: 0;
  padding: 6px 10px 10px;
}

.list-card .card-count {
  margin-top: 0;
  padding: 3px 10px 10px;
}

a.btn {
  display: block;
  text-align: center;
  text-decoration: none;
}
