/* xt · Film Festival Teal — differentiated from source template */

:root {
  --xt-ink: #14231f;
  --xt-ink-soft: #2a3d37;
  --xt-teal: #0f766e;
  --xt-teal-deep: #115e59;
  --xt-teal-bright: #14b8a6;
  --xt-mist: #e8f0ee;
  --xt-paper: #f4f8f6;
  --xt-sand: #dce8e4;
  --xt-line: #c5d5d0;
  --xt-muted: #5c736c;
  --xt-amber: #c27803;
  --xt-white: #ffffff;
  --xt-radius: 4px;
  --xt-font-display: 'Noto Serif SC', 'Songti SC', serif;
  --xt-font-body: 'Noto Sans SC', 'PingFang SC', sans-serif;
  --xt-shadow: 0 1px 0 rgba(20, 35, 31, 0.06);
  --xt-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--xt-font-body);
  color: var(--xt-ink);
  background: var(--xt-paper);
  -webkit-font-smoothing: antialiased;
}

.xt-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 80% 50% at 100% -10%, rgba(20, 184, 166, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at -10% 30%, rgba(15, 118, 110, 0.08), transparent 50%),
    linear-gradient(180deg, var(--xt-mist) 0%, var(--xt-paper) 28%, var(--xt-paper) 100%);
}

.xt-main {
  flex: 1;
  min-width: 0;
}

.xt-shell a {
  color: inherit;
  text-decoration: none;
}

.xt-wrap {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

/* ——— Header ——— */
.xt-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 248, 246, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--xt-line);
}

.xt-header__top {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 64px;
  padding: 0.65rem 0;
}

.xt-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  min-width: 0;
}

.xt-brand__mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--xt-teal);
  color: var(--xt-white);
  border-radius: 2px;
  flex-shrink: 0;
  transition: transform 0.35s var(--xt-ease);
}

.xt-brand:hover .xt-brand__mark {
  transform: rotate(-6deg) scale(1.05);
}

.xt-brand__text {
  font-family: var(--xt-font-display);
  font-weight: 700;
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: var(--xt-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 14rem;
}

.xt-header__search {
  flex: 1;
  max-width: 420px;
  margin-left: auto;
  position: relative;
  display: none;
}

@media (min-width: 768px) {
  .xt-header__search {
    display: block;
  }
  .xt-brand__text {
    max-width: 22rem;
  }
}

.xt-header__search input {
  width: 100%;
  height: 40px;
  padding: 0 1rem 0 2.5rem;
  border: 1px solid var(--xt-line);
  border-radius: var(--xt-radius);
  background: var(--xt-white);
  font: inherit;
  color: var(--xt-ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.xt-header__search input:focus {
  border-color: var(--xt-teal);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.xt-header__search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--xt-muted);
  pointer-events: none;
}

.xt-header__actions {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .xt-header__actions {
    display: flex;
  }
}

.xt-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 40px;
  padding: 0 0.9rem;
  border: 1px solid var(--xt-line);
  border-radius: var(--xt-radius);
  background: transparent;
  color: var(--xt-ink-soft);
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.xt-btn-ghost:hover {
  border-color: var(--xt-teal);
  color: var(--xt-teal-deep);
  background: rgba(15, 118, 110, 0.06);
}

.xt-menu-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--xt-line);
  border-radius: var(--xt-radius);
  background: var(--xt-white);
  color: var(--xt-ink);
  cursor: pointer;
}

@media (min-width: 768px) {
  .xt-menu-btn {
    display: none;
  }
}

.xt-header__cats {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding: 0 0 0.75rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.xt-header__cats::-webkit-scrollbar {
  display: none;
}

.xt-cat-chip {
  flex-shrink: 0;
  padding: 0.4rem 0.85rem;
  font-size: 0.8125rem;
  color: var(--xt-muted);
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.xt-cat-chip:hover,
.xt-cat-chip.is-active {
  color: var(--xt-teal-deep);
  background: rgba(15, 118, 110, 0.1);
  border-color: rgba(15, 118, 110, 0.25);
}

.xt-mobile-panel {
  display: none;
  padding: 0 0 1rem;
  border-top: 1px solid var(--xt-line);
}

.xt-mobile-panel.is-open {
  display: block;
}

.xt-mobile-panel .xt-header__search {
  display: block;
  max-width: none;
  margin: 0.85rem 0;
}

.xt-mobile-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.35rem;
}

/* ——— Hero ——— */
.xt-hero {
  position: relative;
  overflow: hidden;
  padding: 2.5rem 0 2rem;
}

.xt-hero__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .xt-hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    min-height: 340px;
  }
}

.xt-hero__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--xt-teal);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.xt-hero h1 {
  font-family: var(--xt-font-display);
  font-size: clamp(1.85rem, 4.5vw, 3.1rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--xt-ink);
  margin: 0 0 1rem;
}

.xt-hero__sub {
  color: var(--xt-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 1.5rem;
  max-width: 34rem;
}

.xt-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.xt-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 1.35rem;
  background: var(--xt-teal);
  color: var(--xt-white) !important;
  border: none;
  border-radius: var(--xt-radius);
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.25s var(--xt-ease);
}

.xt-btn-primary:hover {
  background: var(--xt-teal-deep);
  transform: translateY(-1px);
}

.xt-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 1.35rem;
  background: transparent;
  color: var(--xt-ink) !important;
  border: 1px solid var(--xt-ink);
  border-radius: var(--xt-radius);
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.xt-btn-outline:hover {
  background: var(--xt-ink);
  color: var(--xt-white) !important;
}

.xt-hero__visual {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--xt-sand);
  box-shadow: var(--xt-shadow);
}

.xt-hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--xt-ease);
}

.xt-hero__visual:hover img {
  transform: scale(1.04);
}

.xt-hero__visual-meta {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.25rem 1.15rem;
  background: linear-gradient(transparent, rgba(20, 35, 31, 0.85));
  color: var(--xt-white);
}

.xt-hero__visual-meta strong {
  display: block;
  font-family: var(--xt-font-display);
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.xt-hero__visual-meta span {
  font-size: 0.8125rem;
  opacity: 0.85;
}

.xt-hero__accent {
  position: absolute;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(15, 118, 110, 0.35);
  border-radius: 50%;
  right: -40px;
  top: -40px;
  pointer-events: none;
  animation: xt-orbit 18s linear infinite;
}

@keyframes xt-orbit {
  to {
    transform: rotate(360deg);
  }
}

/* ——— Sections ——— */
.xt-section {
  padding: 2.25rem 0;
}

.xt-section--alt {
  background: rgba(255, 255, 255, 0.55);
  border-block: 1px solid var(--xt-line);
}

.xt-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid var(--xt-ink);
}

.xt-section__head h2 {
  font-family: var(--xt-font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  margin: 0;
  color: var(--xt-ink);
}

.xt-section__head p {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  color: var(--xt-muted);
}

.xt-section__more {
  flex-shrink: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--xt-teal) !important;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.xt-section__more:hover {
  border-bottom-color: var(--xt-teal);
}

/* ——— Category rail ——— */
.xt-cat-rail {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

@media (min-width: 640px) {
  .xt-cat-rail {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .xt-cat-rail {
    grid-template-columns: repeat(8, 1fr);
  }
}

.xt-cat-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 1rem 0.9rem;
  background: var(--xt-white);
  border: 1px solid var(--xt-line);
  border-radius: var(--xt-radius);
  border-left: 3px solid var(--xt-teal);
  transition: transform 0.25s var(--xt-ease), border-color 0.2s, background 0.2s;
}

.xt-cat-tile:hover {
  transform: translateY(-3px);
  background: var(--xt-mist);
  border-color: var(--xt-teal);
}

.xt-cat-tile span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--xt-ink);
}

.xt-cat-tile small {
  font-size: 0.7rem;
  color: var(--xt-muted);
  letter-spacing: 0.06em;
}

/* ——— Movie card ——— */
.xt-card {
  display: flex;
  flex-direction: column;
  background: var(--xt-white);
  border: 1px solid var(--xt-line);
  border-radius: var(--xt-radius);
  overflow: hidden;
  transition: transform 0.3s var(--xt-ease), border-color 0.2s;
}

.xt-card:hover {
  transform: translateY(-4px);
  border-color: var(--xt-teal);
}

.xt-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--xt-sand);
}

.xt-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s var(--xt-ease);
}

.xt-card:hover .xt-card__media img {
  transform: scale(1.06);
}

.xt-card__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(20, 35, 31, 0.35);
  opacity: 0;
  transition: opacity 0.25s;
  color: var(--xt-white);
}

.xt-card:hover .xt-card__play {
  opacity: 1;
}

.xt-card__play span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 2px solid var(--xt-white);
  border-radius: 50%;
  background: rgba(15, 118, 110, 0.85);
}

.xt-card__score {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  padding: 0.2rem 0.5rem;
  background: var(--xt-ink);
  color: var(--xt-amber);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 2px;
}

.xt-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.95rem 1rem 1.1rem;
  flex: 1;
}

.xt-card__title {
  font-family: var(--xt-font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--xt-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.xt-card:hover .xt-card__title {
  color: var(--xt-teal-deep);
}

.xt-card__desc {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--xt-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.xt-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--xt-line);
  font-size: 0.75rem;
  color: var(--xt-muted);
}

.xt-card__tag {
  color: var(--xt-teal-deep);
  font-weight: 600;
}

.xt-card__tag:hover {
  text-decoration: underline;
}

.xt-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .xt-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .xt-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1100px) {
  .xt-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ——— Features ——— */
.xt-features {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .xt-features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.xt-feature {
  padding: 1.35rem 1.25rem;
  background: var(--xt-white);
  border-top: 3px solid var(--xt-teal);
  border-inline: 1px solid var(--xt-line);
  border-bottom: 1px solid var(--xt-line);
}

.xt-feature h3 {
  font-family: var(--xt-font-display);
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.xt-feature p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--xt-muted);
}

/* ——— Footer ——— */
.xt-footer {
  margin-top: auto;
  background: var(--xt-ink);
  color: rgba(255, 255, 255, 0.78);
  padding: 3rem 0 1.75rem;
  position: relative;
}

.xt-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--xt-teal-bright), var(--xt-teal), transparent 70%);
}

.xt-footer__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .xt-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.xt-footer__brand {
  font-family: var(--xt-font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--xt-white);
  margin-bottom: 0.75rem;
}

.xt-footer p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.7;
}

.xt-footer h3 {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--xt-teal-bright);
  margin: 0 0 0.85rem;
  font-weight: 600;
}

.xt-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.xt-footer a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.xt-footer a:hover {
  color: var(--xt-teal-bright);
}

.xt-footer__bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ——— Category page ——— */
.xt-cat-page {
  padding: 1.75rem 0 3rem;
}

.xt-cat-page__banner {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 1.5rem 1.35rem;
  background: var(--xt-white);
  border: 1px solid var(--xt-line);
  border-left: 4px solid var(--xt-teal);
}

.xt-cat-page__banner h1 {
  font-family: var(--xt-font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0;
}

.xt-cat-page__banner p {
  margin: 0;
  color: var(--xt-muted);
  font-size: 0.9375rem;
}

.xt-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--xt-muted);
  margin-bottom: 0.35rem;
}

.xt-breadcrumb a:hover {
  color: var(--xt-teal);
}

.xt-cat-layout {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 960px) {
  .xt-cat-layout {
    grid-template-columns: 200px 1fr;
    align-items: start;
  }
}

.xt-cat-side {
  display: none;
  background: var(--xt-white);
  border: 1px solid var(--xt-line);
  padding: 1rem 0.75rem;
  position: sticky;
  top: 120px;
}

@media (min-width: 960px) {
  .xt-cat-side {
    display: block;
  }
}

.xt-cat-side h2 {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--xt-muted);
  margin: 0 0 0.75rem;
  padding: 0 0.5rem;
}

.xt-cat-side a {
  display: block;
  padding: 0.45rem 0.5rem;
  font-size: 0.875rem;
  color: var(--xt-ink-soft);
  border-radius: 2px;
  transition: background 0.15s, color 0.15s;
}

.xt-cat-side a:hover,
.xt-cat-side a.is-active {
  background: rgba(15, 118, 110, 0.1);
  color: var(--xt-teal-deep);
  font-weight: 600;
}

.xt-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: var(--xt-white);
  border: 1px solid var(--xt-line);
  margin-bottom: 1.15rem;
}

.xt-toolbar select {
  height: 36px;
  padding: 0 0.65rem;
  border: 1px solid var(--xt-line);
  border-radius: var(--xt-radius);
  background: var(--xt-paper);
  font: inherit;
  font-size: 0.875rem;
  color: var(--xt-ink);
}

.xt-toolbar__count {
  font-size: 0.8125rem;
  color: var(--xt-muted);
}

.xt-view-toggle {
  display: inline-flex;
  border: 1px solid var(--xt-line);
  border-radius: var(--xt-radius);
  overflow: hidden;
}

.xt-view-toggle button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: none;
  background: transparent;
  color: var(--xt-muted);
  cursor: pointer;
}

.xt-view-toggle button.is-active {
  background: var(--xt-teal);
  color: var(--xt-white);
}

.xt-about-box {
  margin-top: 2rem;
  padding: 1.35rem 1.25rem;
  background: var(--xt-white);
  border: 1px solid var(--xt-line);
}

.xt-about-box h2 {
  font-family: var(--xt-font-display);
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
}

.xt-about-box p {
  margin: 0 0 0.75rem;
  color: var(--xt-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.xt-about-box p:last-child {
  margin-bottom: 0;
}

/* ——— Play page ——— */
.xt-play {
  background: var(--xt-ink);
  padding-bottom: 0;
}

.xt-play__bar {
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
  background: var(--xt-teal-deep);
  letter-spacing: 0.04em;
}

.xt-play__stage {
  background: #000;
  max-width: 1180px;
  margin: 0 auto;
  border-inline: 3px solid var(--xt-teal);
}

.xt-play__body {
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(20, 184, 166, 0.08), transparent 55%),
    var(--xt-paper);
  padding: 1.75rem 0 3rem;
}

.xt-play__layout {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 960px) {
  .xt-play__layout {
    grid-template-columns: 1fr 300px;
    align-items: start;
  }
}

.xt-play__info {
  background: var(--xt-white);
  border: 1px solid var(--xt-line);
  padding: 1.35rem 1.25rem 1.5rem;
}

.xt-play__info h1 {
  font-family: var(--xt-font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  margin: 0 0 1rem;
  line-height: 1.35;
}

.xt-play__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  font-size: 0.875rem;
  color: var(--xt-muted);
  margin-bottom: 1.15rem;
}

.xt-play__stats a {
  color: var(--xt-teal-deep);
  font-weight: 600;
}

.xt-play__stats a:hover {
  text-decoration: underline;
}

.xt-play__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.xt-btn-fav {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 40px;
  padding: 0 1rem;
  border: 1px solid var(--xt-line);
  border-radius: var(--xt-radius);
  background: var(--xt-paper);
  color: var(--xt-ink);
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.xt-btn-fav.is-on {
  border-color: var(--xt-teal);
  background: rgba(15, 118, 110, 0.1);
  color: var(--xt-teal-deep);
}

.xt-play__desc h3 {
  font-family: var(--xt-font-display);
  font-size: 1.05rem;
  margin: 0 0 0.65rem;
  padding-top: 1rem;
  border-top: 1px solid var(--xt-line);
}

.xt-play__desc p {
  margin: 0 0 0.85rem;
  color: var(--xt-ink-soft);
  line-height: 1.7;
  font-size: 0.9375rem;
}

.xt-play__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.xt-play__tags span {
  font-size: 0.75rem;
  color: var(--xt-muted);
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--xt-line);
  border-radius: 2px;
}

.xt-side-panel {
  background: var(--xt-white);
  border: 1px solid var(--xt-line);
  padding: 1.1rem 1rem;
  margin-bottom: 1rem;
}

.xt-side-panel h3 {
  font-family: var(--xt-font-display);
  font-size: 1rem;
  margin: 0 0 0.85rem;
  padding-bottom: 0.55rem;
  border-bottom: 2px solid var(--xt-ink);
}

.xt-related {
  display: grid;
  gap: 0.75rem;
}

.xt-related a {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 0.65rem;
  align-items: center;
  padding: 0.35rem;
  border-radius: 2px;
  transition: background 0.15s;
}

.xt-related a:hover {
  background: var(--xt-mist);
}

.xt-related img {
  width: 88px;
  height: 52px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}

.xt-related h4 {
  margin: 0 0 0.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.xt-related small {
  font-size: 0.7rem;
  color: var(--xt-muted);
}

.xt-side-cats a {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.4rem;
  font-size: 0.875rem;
  color: var(--xt-ink-soft);
  border-bottom: 1px dashed var(--xt-line);
  transition: color 0.15s, padding-left 0.2s;
}

.xt-side-cats a:last-child {
  border-bottom: none;
}

.xt-side-cats a:hover {
  color: var(--xt-teal-deep);
  padding-left: 0.65rem;
}

/* ——— Search ——— */
.xt-search-page {
  padding: 2rem 0 3rem;
}

.xt-search-page h1 {
  font-family: var(--xt-font-display);
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
}

.xt-search-page > .xt-wrap > p {
  color: var(--xt-muted);
  margin: 0 0 1.5rem;
}

/* ——— Pager ——— */
.a2-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.a2-pager__btn,
.a2-pager__num {
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border: 1px solid var(--xt-line);
  border-radius: var(--xt-radius);
  background: var(--xt-white);
  color: var(--xt-ink);
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.a2-pager__btn:hover:not(:disabled),
.a2-pager__num:hover {
  border-color: var(--xt-teal);
  color: var(--xt-teal-deep);
}

.a2-pager__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.a2-pager__num.is-active {
  background: var(--xt-teal);
  border-color: var(--xt-teal);
  color: var(--xt-white);
}

.a2-pager__ellipsis {
  color: var(--xt-muted);
  padding: 0 0.25rem;
}

.a2-pager__pages {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

/* ——— ABABSEO mark ——— */
.ababseo-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
}

.ababseo-mark__sky {
  position: relative;
  width: 36px;
  height: 22px;
  overflow: hidden;
}

.ababseo-mark__plane {
  position: absolute;
  left: 0;
  top: 2px;
  width: 16px;
  height: 16px;
  color: var(--xt-teal-bright);
  animation: ababseo-fly 3.8s ease-in-out infinite;
}

.ababseo-mark__plane svg {
  width: 100%;
  height: 100%;
  display: block;
}

.ababseo-mark__trail {
  position: absolute;
  left: -10px;
  top: 7px;
  width: 14px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--xt-teal-bright));
  opacity: 0.6;
  animation: ababseo-trail 3.8s ease-in-out infinite;
}

.ababseo-mark__spark {
  position: absolute;
  right: 0;
  top: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  animation: ababseo-spark 3.8s ease-in-out infinite;
}

.ababseo-mark__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.ababseo-mark__label {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.45);
}

.ababseo-mark__name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--xt-teal-bright);
  letter-spacing: 0.06em;
  animation: ababseo-shimmer 4.5s ease-in-out infinite;
}

@keyframes ababseo-fly {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(14px);
  }
}

@keyframes ababseo-trail {
  0%,
  100% {
    opacity: 0.2;
    transform: scaleX(0.6);
  }
  50% {
    opacity: 0.7;
    transform: scaleX(1);
  }
}

@keyframes ababseo-spark {
  0%,
  40%,
  100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

@keyframes ababseo-shimmer {
  0%,
  100% {
    opacity: 0.75;
  }
  50% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .xt-brand__mark,
  .xt-hero__visual img,
  .xt-card,
  .xt-card__media img,
  .xt-hero__accent,
  .ababseo-mark__plane,
  .ababseo-mark__trail,
  .ababseo-mark__spark,
  .ababseo-mark__name {
    animation: none !important;
    transition: none !important;
  }
}
/* ——— Play helpers ——— */
.xt-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.xt-stat--score {
  color: var(--xt-amber);
}
.xt-tip {
  font-size: 0.875rem;
  color: var(--xt-teal);
  align-self: center;
}
.xt-play__actions .xt-btn-primary {
  gap: 0.4rem;
}
.xt-play__more {
  margin-top: 1.75rem;
}
.xt-play__info .xt-breadcrumb {
  margin-bottom: 0.75rem;
}
.xt-side-panel h2,
.xt-play__desc h2 {
  font-family: var(--xt-font-display);
  font-size: 1.05rem;
  margin: 0 0 0.75rem;
}
.xt-play__desc h2 {
  padding-top: 1rem;
  border-top: 1px solid var(--xt-line);
}
.xt-side-panel h2 {
  padding-bottom: 0.55rem;
  border-bottom: 2px solid var(--xt-ink);
}
.xt-related h3 {
  margin: 0 0 0.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ——— Auth / 404 ——— */
.xt-auth {
  padding: 2.5rem 1rem 3rem;
  display: flex;
  justify-content: center;
}
.xt-auth__card {
  width: 100%;
  max-width: 400px;
  background: var(--xt-white);
  border: 1px solid var(--xt-line);
  border-top: 3px solid var(--xt-teal);
  padding: 1.75rem 1.35rem;
}
.xt-auth__card h1 {
  font-family: var(--xt-font-display);
  font-size: 1.5rem;
  margin: 0 0 0.35rem;
}
.xt-auth__card > p {
  margin: 0 0 1.25rem;
  color: var(--xt-muted);
  font-size: 0.875rem;
}
.xt-auth__card form {
  display: grid;
  gap: 0.85rem;
}
.xt-auth__card input {
  height: 44px;
  padding: 0 0.85rem;
  border: 1px solid var(--xt-line);
  border-radius: var(--xt-radius);
  font: inherit;
  background: var(--xt-paper);
}
.xt-auth__card input:focus {
  outline: none;
  border-color: var(--xt-teal);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}
.xt-auth__err {
  margin: 0;
  color: #b91c1c;
  font-size: 0.875rem;
}
.xt-auth__card .xt-btn-primary {
  width: 100%;
}
.xt-auth__foot {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  color: var(--xt-muted);
}
.xt-auth__foot a {
  color: var(--xt-teal-deep);
  font-weight: 600;
}
.xt-empty {
  padding: 4rem 1rem;
  text-align: center;
}
.xt-empty h1 {
  font-family: var(--xt-font-display);
  font-size: 3rem;
  margin: 0 0 0.75rem;
  color: var(--xt-teal);
}
.xt-empty p {
  color: var(--xt-muted);
  margin: 0 0 1.25rem;
}

/* ——— Mobile category chips ——— */
.xt-cat-mobile {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding-bottom: 0.85rem;
  margin-bottom: 0.25rem;
  scrollbar-width: none;
}
.xt-cat-mobile::-webkit-scrollbar {
  display: none;
}
@media (min-width: 960px) {
  .xt-cat-mobile {
    display: none;
  }
}

/* ——— Mobile adaptive ——— */
@media (max-width: 640px) {
  .xt-wrap {
    width: min(100%, calc(100% - 1.25rem));
  }
  .xt-header__top {
    min-height: 56px;
    gap: 0.5rem;
  }
  .xt-brand__text {
    max-width: min(52vw, 11rem);
    font-size: 0.9rem;
  }
  .xt-brand__mark {
    width: 32px;
    height: 32px;
  }
  .xt-header__cats {
    padding-bottom: 0.55rem;
    gap: 0.25rem;
  }
  .xt-cat-chip {
    padding: 0.35rem 0.7rem;
    font-size: 0.75rem;
  }
  .xt-hero {
    padding: 1.5rem 0 1.25rem;
  }
  .xt-hero h1 {
    font-size: 1.65rem;
  }
  .xt-hero__sub {
    font-size: 0.9rem;
  }
  .xt-hero__cta {
    flex-direction: column;
  }
  .xt-hero__cta .xt-btn-primary,
  .xt-hero__cta .xt-btn-outline {
    width: 100%;
  }
  .xt-section {
    padding: 1.5rem 0;
  }
  .xt-section__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .xt-card__body {
    padding: 0.8rem 0.85rem 0.95rem;
  }
  .xt-card__title {
    font-size: 0.9375rem;
  }
  .xt-play__stage {
    border-inline-width: 0;
  }
  .xt-play__body {
    padding: 1.15rem 0 2rem;
  }
  .xt-play__info {
    padding: 1.1rem 1rem 1.25rem;
  }
  .xt-play__info h1 {
    font-size: 1.15rem;
  }
  .xt-play__stats {
    gap: 0.5rem 0.75rem;
    font-size: 0.8125rem;
  }
  .xt-play__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .xt-play__actions .xt-btn-primary,
  .xt-play__actions .xt-btn-fav {
    width: 100%;
    justify-content: center;
  }
  .xt-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .xt-footer {
    padding: 2.25rem 0 1.5rem;
  }
  .xt-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .a2-pager {
    gap: 0.35rem;
  }
  .a2-pager__btn,
  .a2-pager__num {
    min-width: 36px;
    height: 36px;
    padding: 0 0.55rem;
    font-size: 0.8125rem;
  }
}

@supports (padding: env(safe-area-inset-bottom)) {
  .xt-shell {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
  .xt-footer {
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
  }
}

.xt-toolbar__sort,
.xt-toolbar__right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.xt-toolbar__sort label {
  font-size: 0.875rem;
  color: var(--xt-muted);
}
.xt-empty-text {
  text-align: center;
  color: var(--xt-muted);
  padding: 4rem 0;
}
.xt-player {
  width: 100%;
  background: #000;
  max-height: min(70vh, 720px);
}
.xt-player__video {
  display: block;
  width: 100%;
  height: 100%;
  max-height: min(70vh, 720px);
  object-fit: contain;
  background: #000;
}
