/* 日韩剧集大全 — 兜底与移动端适配 */

html,
body {
  margin: 0;
  background: #f9fafb;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

#root,
.app-shell {
  overflow-x: clip;
  max-width: 100%;
}

img,
video {
  max-width: 100%;
  height: auto;
}

/* —— 被 purge 掉的通用工具类 —— */
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.break-words {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.min-w-0 {
  min-width: 0;
}
.whitespace-nowrap {
  white-space: nowrap;
}
.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}
.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}
.h-7 {
  height: 1.75rem;
}
.w-7 {
  width: 1.75rem;
}
.mr-1\.5 {
  margin-right: 0.375rem;
}
.gap-2 {
  gap: 0.5rem;
}
.gap-3 {
  gap: 0.75rem;
}
.gap-x-2 {
  column-gap: 0.5rem;
}
.gap-y-1 {
  row-gap: 0.25rem;
}
.gap-x-6 {
  column-gap: 1.5rem;
}
.gap-y-2 {
  row-gap: 0.5rem;
}
.flex-wrap {
  flex-wrap: wrap;
}
.flex-shrink-0 {
  flex-shrink: 0;
}
.justify-center {
  justify-content: center;
}
.hidden {
  display: none;
}
.inline {
  display: inline;
}
.block {
  display: block;
}
.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* 自定义播放器进度条 / 音量条 */
input[type='range'].slider {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: #4b5563;
  border-radius: 9999px;
  outline: none;
}
input[type='range'].slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 9999px;
  background: #3b82f6;
  cursor: pointer;
}
input[type='range'].slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: none;
  border-radius: 9999px;
  background: #3b82f6;
  cursor: pointer;
}

/* 隐藏横向滚动条但保留滑动（分类栏） */
.overflow-x-auto {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.overflow-x-auto::-webkit-scrollbar {
  display: none;
}

/* 商务合作：会飞的小飞机 + ABABSEO（无胶囊、无链接） */
.ababseo-fly {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  user-select: none;
  line-height: 1;
}
.ababseo-fly__plane {
  display: inline-flex;
  animation: ababseoFly 2.6s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(59, 130, 246, 0.45));
  transform-origin: center;
}
.ababseo-fly__plane svg {
  display: block;
}
.ababseo-fly__text {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  background: linear-gradient(100deg, #60a5fa 0%, #3b82f6 40%, #a855f7 70%, #f472b6 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: ababseoShine 3.4s linear infinite;
}

@keyframes ababseoFly {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(4px, -5px) rotate(-6deg);
  }
  50% {
    transform: translate(8px, -2px) rotate(3deg);
  }
  75% {
    transform: translate(3px, -6px) rotate(-4deg);
  }
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

@keyframes ababseoShine {
  to {
    background-position: 220% center;
  }
}

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

/* —— sm 断点（≥640px）补充 —— */
@media (min-width: 640px) {
  .sm\:inline {
    display: inline;
  }
  .sm\:block {
    display: block;
  }
  .sm\:flex {
    display: flex;
  }
  .sm\:hidden {
    display: none;
  }
  .sm\:text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }
  .sm\:text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
  }
  .sm\:text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }
  .sm\:text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
  .sm\:text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
  }
  .sm\:text-base {
    font-size: 1rem;
    line-height: 1.5rem;
  }
  .sm\:py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
  .sm\:py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  .sm\:py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
  .sm\:px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .sm\:px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
  }
  .sm\:p-6 {
    padding: 1.5rem;
  }
  .sm\:px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .sm\:mb-4 {
    margin-bottom: 1rem;
  }
  .sm\:mb-6 {
    margin-bottom: 1.5rem;
  }
  .sm\:mb-8 {
    margin-bottom: 2rem;
  }
  .sm\:mb-12 {
    margin-bottom: 3rem;
  }
  .sm\:mt-12 {
    margin-top: 3rem;
  }
  .sm\:gap-4 {
    gap: 1rem;
  }
  .sm\:gap-6 {
    gap: 1.5rem;
  }
  .sm\:gap-8 {
    gap: 2rem;
  }
  .sm\:space-x-4 > :not([hidden]) ~ :not([hidden]) {
    margin-left: 1rem;
  }
  .sm\:space-x-8 > :not([hidden]) ~ :not([hidden]) {
    margin-left: 2rem;
  }
  .sm\:space-y-8 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 2rem;
  }
  .sm\:space-y-12 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 3rem;
  }
  .sm\:h-8 {
    height: 2rem;
  }
  .sm\:w-8 {
    width: 2rem;
  }
  .sm\:mr-2 {
    margin-right: 0.5rem;
  }
  .sm\:flex-row {
    flex-direction: row;
  }
  .sm\:items-center {
    align-items: center;
  }
  .sm\:justify-between {
    justify-content: space-between;
  }
  .sm\:py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  .sm\:py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
  .sm\:space-y-4 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 1rem;
  }
  .sm\:space-y-8 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 2rem;
  }
}

/* —— md 断点（≥768px）补充 —— */
@media (min-width: 768px) {
  .md\:flex {
    display: flex;
  }
  .md\:hidden {
    display: none;
  }
  .md\:block {
    display: block;
  }
  .md\:rotate-3 {
    --tw-rotate: 3deg;
    transform: rotate(3deg);
  }
  .md\:text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
  }
  .md\:text-6xl {
    font-size: 3.75rem;
    line-height: 1;
  }
  .md\:h-80 {
    height: 20rem;
  }
  .md\:py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
  .md\:text-left {
    text-align: left;
  }
}

/* —— 手机端额外收紧 —— */
@media (max-width: 639px) {
  .max-w-7xl {
    max-width: 100%;
  }

  .ababseo-fly__text {
    font-size: 1rem;
    letter-spacing: 0.1em;
  }

  .ababseo-fly__plane svg {
    width: 24px;
    height: 24px;
  }
}
