/* === TK Cinema Magazine Layout === */

/* Page decorative background */
.tk-page--home {
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, var(--movie-primary-soft), transparent 70%),
    var(--movie-bg);
}

/* === Cinematic Hero === */
.tk-hero {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 24px;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid var(--movie-border);
  box-shadow: var(--movie-shadow);
}

.tk-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 25% 30%, var(--movie-primary-soft), transparent 60%),
    radial-gradient(ellipse 50% 60% at 75% 70%, var(--movie-primary-soft), transparent 60%),
    linear-gradient(135deg, var(--movie-surface), var(--movie-bg) 90%);
  z-index: 0;
}

.tk-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 30px,
    var(--movie-primary-soft) 30px,
    var(--movie-primary-soft) 31px
  );
  opacity: 0.3;
}

.tk-hero__content {
  position: relative;
  z-index: 1;
  padding: 48px 32px;
  max-width: 680px;
}

.tk-hero__kicker {
  display: inline-flex;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--movie-primary-soft);
  color: var(--movie-primary);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
  border: 1px solid var(--movie-primary);
}

.tk-hero__content h1 {
  margin: 0 0 14px;
  font-size: 36px;
  line-height: 1.2;
  color: var(--movie-text);
}

.tk-hero__content > p {
  color: var(--movie-text-soft);
  line-height: 1.75;
  margin: 0 0 26px;
  font-size: 15px;
}

.tk-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 22px;
}

.tk-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.tk-hero__tag {
  display: inline-flex;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--movie-surface-soft);
  color: var(--movie-text-soft);
  font-size: 13px;
  border: 1px solid var(--movie-border);
}

/* === Spotlight: Editor's Pick === */
.tk-spotlight {
  margin-bottom: 24px;
  padding: 24px;
  background: var(--movie-surface);
  border: 1px solid var(--movie-border);
  border-radius: var(--movie-radius);
  box-shadow: var(--movie-shadow);
}

.tk-spotlight__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.tk-spotlight__card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--movie-border);
  background: var(--movie-surface-soft);
  transition: all 0.25s ease;
}

.tk-spotlight__card:hover {
  border-color: var(--movie-primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.tk-spotlight__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--movie-surface-soft);
}

.tk-spotlight__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.tk-spotlight__card:hover .tk-spotlight__thumb img {
  transform: scale(1.05);
}

.tk-spotlight__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 12px;
  border-radius: 6px;
  background: var(--movie-primary);
  color: var(--movie-on-primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  z-index: 2;
}

.tk-spotlight__body {
  padding: 16px;
}

.tk-spotlight__body h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: var(--movie-text);
}

.tk-spotlight__meta {
  font-size: 13px;
  color: var(--movie-text-soft);
  margin-bottom: 8px;
}

.tk-spotlight__body p {
  font-size: 13px;
  color: var(--movie-text-soft);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* === Split: Latest + Rankings === */
.tk-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.tk-split__col {
  padding: 24px;
  background: var(--movie-surface);
  border: 1px solid var(--movie-border);
  border-radius: var(--movie-radius);
  box-shadow: var(--movie-shadow);
}

/* Compact List */
.tk-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tk-list__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--movie-border);
  background: var(--movie-surface-soft);
  transition: all 0.2s ease;
}

.tk-list__item:hover {
  border-color: var(--movie-primary);
  background: var(--movie-primary-soft);
  transform: translateX(4px);
}

.tk-list__thumb {
  flex-shrink: 0;
  width: 48px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--movie-surface-soft);
}

.tk-list__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tk-list__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tk-list__body strong {
  font-size: 14px;
  line-height: 1.4;
  color: var(--movie-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tk-list__body > span {
  font-size: 12px;
  color: var(--movie-text-soft);
}

.tk-list__new {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--movie-accent);
  color: var(--movie-bg);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Rank List */
.tk-rank {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tk-rank__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--movie-border);
  background: var(--movie-surface-soft);
  transition: all 0.2s ease;
}

.tk-rank__item:hover {
  border-color: var(--movie-primary);
  background: var(--movie-primary-soft);
  transform: translateX(4px);
}

.tk-rank__num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  background: var(--movie-surface);
  color: var(--movie-text-soft);
}

.tk-rank__num--top {
  background: var(--movie-primary);
  color: var(--movie-on-primary);
}

.tk-rank__thumb {
  flex-shrink: 0;
  width: 44px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--movie-surface-soft);
}

.tk-rank__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tk-rank__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tk-rank__body strong {
  font-size: 14px;
  line-height: 1.4;
  color: var(--movie-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tk-rank__body > span {
  font-size: 12px;
  color: var(--movie-text-soft);
}

/* === Category Pills === */
.tk-categories {
  margin-bottom: 24px;
  padding: 24px;
  background: var(--movie-surface);
  border: 1px solid var(--movie-border);
  border-radius: var(--movie-radius);
  box-shadow: var(--movie-shadow);
}

.tk-categories__list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tk-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--movie-border);
  background: var(--movie-surface-soft);
  color: var(--movie-text);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.tk-pill:hover {
  background: var(--movie-primary);
  color: var(--movie-on-primary);
  border-color: var(--movie-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/* === Brand Story + Stats === */
.tk-story {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  margin-bottom: 24px;
  padding: 28px;
  background: var(--movie-surface);
  border: 1px solid var(--movie-border);
  border-radius: var(--movie-radius);
  box-shadow: var(--movie-shadow);
}

.tk-story__text h2 {
  margin: 0 0 16px;
  font-size: 24px;
  color: var(--movie-text);
}

.tk-story__text p {
  color: var(--movie-text-soft);
  line-height: 1.85;
  margin: 0 0 16px;
  font-size: 14px;
}

.tk-story__text a.movie-btn {
  margin-top: 4px;
}

.tk-story__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-content: center;
}

.tk-stat {
  padding: 20px;
  border-radius: 16px;
  background: var(--movie-surface-soft);
  border: 1px solid var(--movie-border);
  text-align: center;
  transition: all 0.2s ease;
}

.tk-stat:hover {
  border-color: var(--movie-primary);
  transform: translateY(-2px);
}

.tk-stat strong {
  display: block;
  font-size: 22px;
  color: var(--movie-primary);
  margin-bottom: 6px;
}

.tk-stat span {
  font-size: 13px;
  color: var(--movie-text-soft);
}

/* === FAQ (single column) === */
.tk-faq {
  margin-bottom: 24px;
  padding: 24px;
  background: var(--movie-surface);
  border: 1px solid var(--movie-border);
  border-radius: var(--movie-radius);
  box-shadow: var(--movie-shadow);
}

.tk-faq__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tk-faq__item {
  padding: 18px 22px;
  border-radius: 16px;
  border: 1px solid var(--movie-border);
  background: var(--movie-surface-soft);
  transition: all 0.2s ease;
}

.tk-faq__item:hover {
  border-color: var(--movie-primary);
  background: var(--movie-primary-soft);
}

.tk-faq__item h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--movie-text);
}

.tk-faq__item p {
  margin: 0;
  color: var(--movie-text-soft);
  line-height: 1.75;
  font-size: 14px;
}

/* === Responsive === */
@media (max-width: 1100px) {
  .tk-spotlight__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tk-split {
    grid-template-columns: 1fr;
  }

  .tk-story {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .tk-hero {
    min-height: 340px;
  }

  .tk-hero__content {
    padding: 32px 20px;
  }

  .tk-hero__content h1 {
    font-size: 26px;
  }

  .tk-spotlight__grid {
    grid-template-columns: 1fr;
  }

  .tk-story__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tk-list__thumb,
  .tk-rank__thumb {
    width: 40px;
    height: 54px;
  }
}

@media (max-width: 560px) {
  .tk-hero__content h1 {
    font-size: 22px;
  }

  .tk-story__stats {
    grid-template-columns: 1fr;
  }
}
