/* ABABSEO mark · blue theme footer */

.ababseo-mark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  user-select: none;
}

.ababseo-mark__plane-wrap {
  position: relative;
  width: 36px;
  height: 28px;
  flex-shrink: 0;
}

.ababseo-mark__plane {
  position: absolute;
  left: 0;
  top: 4px;
  width: 22px;
  height: 22px;
  color: #60a5fa;
  animation: ababseo-fly 3.6s ease-in-out infinite;
}

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

.ababseo-mark__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1.05;
}

.ababseo-mark__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #9ca3af;
}

.ababseo-mark__name {
  font-size: 20px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.14em;
  background: linear-gradient(105deg, #60a5fa 0%, #fff 40%, #a78bfa 70%, #fff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: ababseo-shimmer 5s ease-in-out infinite;
}

@keyframes ababseo-fly {
  0% {
    transform: translate(0, 2px) rotate(-8deg);
  }
  20% {
    transform: translate(8px, -6px) rotate(4deg);
  }
  45% {
    transform: translate(16px, 1px) rotate(-2deg);
  }
  70% {
    transform: translate(6px, -8px) rotate(10deg);
  }
  100% {
    transform: translate(0, 2px) rotate(-8deg);
  }
}

@keyframes ababseo-shimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ababseo-mark__plane,
  .ababseo-mark__name {
    animation: none;
  }
}

/* ========== Play page · Cinema Deck ========== */
.a2-play {
  position: relative;
  isolation: isolate;
  padding: 0 0 64px;
  min-height: 60vh;
  overflow: hidden;
  background: #0b1220;
}

.a2-play__backdrop {
  position: absolute;
  inset: 0 0 auto;
  height: min(72vh, 640px);
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.a2-play__backdrop-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(28px) saturate(1.15) brightness(0.45);
  transform: scale(1.08);
}

.a2-play__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.35) 0%, rgba(11, 18, 32, 0.85) 55%, #0b1220 100%);
}

.a2-play__shell {
  position: relative;
  z-index: 1;
  max-width: 80rem;
  margin: 0 auto;
  padding: 20px 1rem 0;
}

@media (min-width: 640px) {
  .a2-play__shell {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .a2-play__shell {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.a2-play__crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  margin-bottom: 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.a2-play__crumb a {
  color: rgba(255, 255, 255, 0.78);
}

.a2-play__crumb a:hover {
  color: #93c5fd;
}

.a2-play__crumb-sep {
  margin: 0 8px;
  opacity: 0.45;
}

.a2-play__crumb-item:last-child {
  color: #fff;
  max-width: 100%;
}

.a2-play__crumb-item:last-child span {
  display: inline-block;
  max-width: min(60vw, 420px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

.a2-play__stage {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
  background: #000;
  animation: a2-play-rise 0.45s ease both;
}

.a2-player {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 70vh;
  background: #000;
}

.a2-player__video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

.a2-play__dock {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 20px;
  align-items: center;
  margin-top: 18px;
  padding: 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
  animation: a2-play-rise 0.5s ease 0.06s both;
}

.a2-play__score {
  width: 88px;
  height: 88px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #2563eb, #9333ea);
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
}

.a2-play__score strong {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}

.a2-play__score span {
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.9;
}

.a2-play__dock-main {
  min-width: 0;
}

.a2-play__kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.a2-play__kicker a,
.a2-play__kicker span {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.a2-play__kicker a {
  background: #dbeafe;
  color: #2563eb;
}

.a2-play__kicker a:hover {
  background: #bfdbfe;
}

.a2-play__kicker span {
  background: #f3f4f6;
  color: #6b7280;
}

.a2-play__title {
  margin: 0 0 10px;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 800;
  line-height: 1.25;
  color: #111827;
}

.a2-play__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: #6b7280;
}

.a2-play__stats span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.a2-play__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.a2-play__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
}

.a2-play__btn:hover {
  transform: translateY(-1px);
}

.a2-play__btn--fav {
  background: #fee2e2;
  color: #dc2626;
}

.a2-play__btn--fav.is-on,
.a2-play__btn--fav:hover {
  background: #dc2626;
  color: #fff;
}

.a2-play__btn--share {
  background: #2563eb;
  color: #fff;
}

.a2-play__btn--share:hover {
  background: #1d4ed8;
}

.a2-play__btn--next {
  background: #111827;
  color: #fff;
}

.a2-play__btn--next:hover {
  background: #1f2937;
}

.a2-play__body {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: 16px;
  margin-top: 16px;
  animation: a2-play-rise 0.55s ease 0.1s both;
}

.a2-play__synopsis,
.a2-play__channels {
  background: #fff;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.a2-play__synopsis h2,
.a2-play__channels h2,
.a2-play-rail__head h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #111827;
}

.a2-play__synopsis p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: #374151;
}

.a2-play__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.a2-play__tags span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: #4b5563;
  background: #f3f4f6;
}

.a2-play__channel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.a2-play__channel-grid a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  background: linear-gradient(135deg, #eff6ff, #faf5ff);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.a2-play__channel-grid a:hover,
.a2-play__channel-grid a.is-active {
  background: linear-gradient(135deg, #2563eb, #9333ea);
  color: #fff;
  transform: translateY(-1px);
}

.a2-play__more-cat {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: #2563eb;
}

.a2-play__more-cat:hover {
  color: #1d4ed8;
}

.a2-play-rail {
  margin-top: 28px;
  animation: a2-play-rise 0.55s ease 0.14s both;
}

.a2-play-rail__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.a2-play-rail__head h2 {
  margin: 0;
  color: #fff;
}

.a2-play-rail__head span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.a2-play-rail__track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.a2-play-rail__card {
  flex: 0 0 220px;
  scroll-snap-align: start;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.a2-play-rail__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.a2-play-rail__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
}

.a2-play-rail__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.a2-play-rail__card:hover .a2-play-rail__img {
  transform: scale(1.05);
}

.a2-play-rail__n {
  position: absolute;
  left: 8px;
  top: 8px;
  min-width: 28px;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: rgba(0, 0, 0, 0.65);
}

.a2-play-rail__dur {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #9333ea);
}

.a2-play-rail__title {
  margin: 10px 12px 4px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: #111827;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.a2-play-rail__meta {
  margin: 0 12px 12px;
  font-size: 12px;
  color: #6b7280;
}

@keyframes a2-play-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .a2-play__dock {
    grid-template-columns: 72px 1fr;
  }

  .a2-play__score {
    width: 72px;
    height: 72px;
    border-radius: 14px;
  }

  .a2-play__score strong {
    font-size: 26px;
  }

  .a2-play__actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .a2-play__btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .a2-play__body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .a2-play__shell {
    padding-top: 14px;
  }

  .a2-play__stage,
  .a2-play__dock,
  .a2-play__synopsis,
  .a2-play__channels {
    border-radius: 12px;
  }

  .a2-play__dock {
    padding: 14px;
    gap: 12px;
  }

  .a2-play-rail__card {
    flex-basis: 180px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .a2-play__stage,
  .a2-play__dock,
  .a2-play__body,
  .a2-play-rail {
    animation: none;
  }
}

/* ========== Category pagination ========== */
.a2-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  padding: 16px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.a2-pager__pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.a2-pager__btn,
.a2-pager__num {
  min-height: 38px;
  min-width: 38px;
  padding: 0 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #374151;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.a2-pager__btn:hover:not(:disabled),
.a2-pager__num:hover {
  border-color: #93c5fd;
  color: #2563eb;
  background: #eff6ff;
}

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

.a2-pager__num.is-active {
  background: linear-gradient(135deg, #2563eb, #9333ea);
  border-color: transparent;
  color: #fff;
}

.a2-pager__ellipsis {
  min-width: 24px;
  text-align: center;
  color: #9ca3af;
  font-weight: 700;
}
