/* AI 奥斯卡活动页 — 金黑影展风格 */

.oscar-page {
  --oscar-gold: #c9a227;
  --oscar-gold-mid: #e8c547;
  --oscar-gold-light: #f5e6b8;
  --oscar-dark: #121212;
  --oscar-dark-surface: #1e1e1e;
  --oscar-dark-elevated: #2a2620;
}

body:has(.oscar-page) {
  background: linear-gradient(180deg, #0a0a0a 0%, #1a1510 45%, #121212 100%);
  min-height: 100vh;
}

.oscar-page .container {
  max-width: 1200px;
}

/* --- Banner --- */

.oscar-banner {
  margin: 0 0 20px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  line-height: 0;
}

.oscar-banner__img {
  width: 100%;
  height: clamp(160px, 28vw, 380px);
  object-fit: cover;
  display: block;
}

/* --- Info bar (below banner) --- */

.oscar-info-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 20px 24px;
  border-radius: 14px;
  background: linear-gradient(145deg, #2a2218 0%, #1a1510 50%, #0f0d0a 100%);
  border: 1px solid rgba(201, 162, 39, 0.35);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
}

.oscar-info-bar__main {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.oscar-info-bar__desc {
  color: rgba(245, 230, 184, 0.9);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.oscar-info-bar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

.oscar-countdown {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(201, 162, 39, 0.12);
  border: 1px solid rgba(201, 162, 39, 0.32);
}

.oscar-countdown__label {
  font-size: 13px;
  color: rgba(245, 230, 184, 0.82);
}

.oscar-countdown__value {
  font-size: 22px;
  line-height: 1;
  color: var(--oscar-gold-mid);
  letter-spacing: 0.02em;
}

/* --- Vote budget pills --- */

.oscar-vote-budget {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.oscar-vote-budget__item {
  font-size: 13px;
  color: var(--oscar-gold-light);
  background: rgba(201, 162, 39, 0.12);
  border: 1px solid rgba(201, 162, 39, 0.35);
  padding: 5px 12px;
  border-radius: 999px;
}

/* --- Seen stats --- */

.oscar-seen-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 13px;
  color: rgba(245, 230, 184, 0.75);
}

.oscar-seen-stats__item {
  white-space: nowrap;
}

.oscar-seen-stats__sep {
  color: rgba(245, 230, 184, 0.35);
  user-select: none;
}

.oscar-seen-stats strong {
  color: var(--oscar-gold-mid);
}

/* --- Seen badge on card --- */

.oscar-seen-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  pointer-events: none;
  line-height: 1.3;
}

.oscar-seen-badge--new {
  background: rgba(239, 68, 68, 0.85);
  color: #fff;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.oscar-seen-badge--seen {
  background: rgba(201, 162, 39, 0.2);
  color: rgba(245, 230, 184, 0.6);
  border: 1px solid rgba(201, 162, 39, 0.25);
}

/* --- Main + section headings --- */

.oscar-main {
  display: flex;
  flex-direction: column;
}

.oscar-section__title {
  font-size: 22px;
  font-weight: 700;
  margin: 24px 0 16px;
  padding-left: 4px;
  line-height: 1.3;
}

.oscar-section__title--gold {
  color: var(--oscar-gold-mid);
}

.oscar-section__title--silver {
  color: rgba(203, 213, 225, 0.9);
}

.oscar-section--gold .oscar-section__title {
  margin-top: 0;
}

.oscar-section--silver {
  padding: 0 0 24px;
  margin: 16px 0 0;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.4) 0%, rgba(10, 10, 14, 0.55) 100%);
}

/* --- Works grid: 导演剪辑版（金） / 基础版（银灰） --- */

.oscar-works-grid--gold .work-card {
  border: 1px solid rgba(201, 162, 39, 0.45);
  background: var(--oscar-dark-surface);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.oscar-works-grid--gold .work-card:hover {
  box-shadow:
    0 0 12px rgba(201, 162, 39, 0.25),
    0 8px 28px rgba(0, 0, 0, 0.35);
  border-color: rgba(201, 162, 39, 0.62);
}

.oscar-works-grid--gold .work-card .work-info {
  background: var(--oscar-dark-elevated);
  padding: 0;
}

.oscar-works-grid--gold .work-preview {
  background: #0d0d0d;
  position: relative;
}

.oscar-works-grid--silver .work-card {
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: #1a1c20;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.oscar-works-grid--silver .work-card .work-info {
  background: #1e2024;
  padding: 0;
}

.oscar-works-grid--silver .work-preview {
  background: #0f1114;
  position: relative;
}

.oscar-works-grid--silver .oscar-seen-badge--seen {
  background: rgba(148, 163, 184, 0.15);
  color: rgba(203, 213, 225, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

/* --- Vote bar (3 chips per card) --- */

.oscar-vote-bar {
  display: flex;
  gap: 0;
  width: 100%;
}

.oscar-vote-chip {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 12px 4px 10px;
  border: none;
  border-right: 1px solid rgba(201, 162, 39, 0.15);
  background: transparent;
  color: var(--oscar-gold-light);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-size: 13px;
  position: relative;
}

.oscar-vote-chip:last-child {
  border-right: none;
}

.oscar-vote-chip:hover:not(:disabled) {
  background: rgba(201, 162, 39, 0.12);
}

.oscar-vote-chip--readonly {
  cursor: default;
}

.oscar-vote-chip--readonly:hover {
  background: transparent;
}

.oscar-vote-chip--locked {
  background: rgba(148, 163, 184, 0.08);
  color: rgba(226, 232, 240, 0.62);
}

.oscar-vote-chip--locked .oscar-vote-chip__count {
  color: rgba(226, 232, 240, 0.72);
}

.oscar-vote-chip--locked .oscar-vote-chip__icon {
  opacity: 0.7;
}

.oscar-vote-chip:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.oscar-vote-chip--voted {
  background: rgba(201, 162, 39, 0.2);
  box-shadow: inset 0 -3px 0 0 var(--oscar-gold);
}

.oscar-vote-chip--voted:hover:not(:disabled) {
  background: rgba(201, 162, 39, 0.28);
}

/* Silver section: vote chips (slate / 银灰) */
.oscar-works-grid--silver .oscar-vote-chip {
  border-right-color: rgba(148, 163, 184, 0.22);
  color: rgba(203, 213, 225, 0.88);
}

.oscar-works-grid--silver .oscar-vote-chip:hover:not(:disabled) {
  background: rgba(148, 163, 184, 0.12);
}

.oscar-works-grid--silver .oscar-vote-chip__count {
  color: rgba(186, 198, 214, 0.95);
}

.oscar-works-grid--silver .oscar-vote-chip--voted {
  background: rgba(148, 163, 184, 0.18);
  box-shadow: inset 0 -3px 0 0 rgba(148, 163, 184, 0.55);
}

.oscar-works-grid--silver .oscar-vote-chip--voted:hover:not(:disabled) {
  background: rgba(148, 163, 184, 0.26);
}

.oscar-works-grid--silver .oscar-vote-chip--locked {
  background: rgba(51, 65, 85, 0.22);
  color: rgba(148, 163, 184, 0.58);
}

.oscar-works-grid--silver .oscar-vote-chip--locked .oscar-vote-chip__count {
  color: rgba(186, 198, 214, 0.75);
}

.oscar-vote-chip__icon {
  font-size: 18px;
  line-height: 1;
}

.oscar-vote-chip__count {
  font-size: 13px;
  font-weight: 700;
  color: var(--oscar-gold-mid);
}

/* --- Button overrides for oscar page --- */

.oscar-page .btn-secondary {
  border-color: rgba(201, 162, 39, 0.45);
  color: var(--oscar-gold-light);
  background: rgba(255, 255, 255, 0.06);
}

.oscar-page .btn-secondary:hover {
  background: rgba(201, 162, 39, 0.15);
  border-color: var(--oscar-gold-mid);
  color: #fff;
}

@media (max-width: 768px) {
  .oscar-banner__img {
    height: clamp(100px, 36vw, 220px);
  }

  .oscar-info-bar {
    padding: 16px;
    gap: 12px;
  }

  .oscar-countdown {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .oscar-countdown__value {
    font-size: 18px;
  }

  .oscar-vote-chip {
    padding: 10px 2px 8px;
    font-size: 12px;
  }

  .oscar-vote-chip__icon {
    font-size: 16px;
  }

  .oscar-vote-chip__count {
    font-size: 12px;
  }
}

/* ==========================================================================
   Show 模式 — 颁奖展示页
   ========================================================================== */

.oscar-show-main {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* --- Award section --- */

.oscar-award-section {
  padding: 20px 24px 24px;
  border-radius: 14px;
  background: linear-gradient(145deg, #2a2218 0%, #1a1510 50%, #0f0d0a 100%);
  border: 1px solid rgba(201, 162, 39, 0.25);
}

.oscar-award-section__title {
  font-size: 24px;
  font-weight: 700;
  color: var(--oscar-gold-mid);
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.3;
}

.oscar-award-section__icon {
  font-size: 28px;
  line-height: 1;
}

/* --- Award grid: 1 winner (large) + up to 3 nominees --- */

.oscar-award-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.35fr) minmax(0, 1fr);
  grid-template-rows: auto;
  gap: 16px;
  align-items: start;
}

.oscar-award-grid__winner {
  grid-row: 1 / 2;
  grid-column: 1 / 2;
}

.oscar-award-grid__nominee {
  grid-row: auto;
}

.oscar-award-grid__nominees {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 16px;
  align-content: start;
}

.oscar-award-grid__nominees .oscar-award-grid__nominee {
  min-width: 0;
}

/* --- Show card base --- */

.oscar-show-card {
  border: 1px solid rgba(201, 162, 39, 0.35);
  background: var(--oscar-dark-surface);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.oscar-show-card:hover {
  box-shadow:
    0 0 12px rgba(201, 162, 39, 0.2),
    0 8px 28px rgba(0, 0, 0, 0.35);
  border-color: rgba(201, 162, 39, 0.55);
}

.oscar-show-card .work-preview {
  background: #0d0d0d;
  position: relative;
}

.oscar-show-card .work-info {
  background: var(--oscar-dark-elevated);
  padding: 10px 12px;
}

.oscar-show-card .work-nickname {
  color: var(--oscar-gold-light);
  font-size: 14px;
  margin: 0;
}

.oscar-show-card .btn-portfolio {
  color: rgba(245, 230, 184, 0.7);
  font-size: 12px;
}

.oscar-show-card .btn-portfolio:hover {
  color: var(--oscar-gold-mid);
}

/* --- Winner card: larger & highlighted --- */

.oscar-show-card--winner {
  border-color: var(--oscar-gold);
  box-shadow:
    0 0 20px rgba(201, 162, 39, 0.15),
    0 8px 28px rgba(0, 0, 0, 0.4);
}

.oscar-show-card--winner:hover {
  border-color: var(--oscar-gold-mid);
  box-shadow:
    0 0 24px rgba(201, 162, 39, 0.3),
    0 8px 28px rgba(0, 0, 0, 0.4);
}

.oscar-show-card--winner .work-preview {
  aspect-ratio: 16 / 10;
}

.oscar-show-card--winner .work-nickname {
  font-size: 16px;
  font-weight: 600;
}

/* --- Award label badge (on winner cards) --- */

.oscar-award-label {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  padding: 4px 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.9) 0%, rgba(180, 140, 20, 0.9) 100%);
  color: #1a1510;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* --- Nominee card --- */

.oscar-show-card--nominee {
  border-color: rgba(201, 162, 39, 0.2);
}

.oscar-show-card--nominee .work-preview {
  aspect-ratio: 16 / 10;
}

.oscar-show-card--nominee .work-nickname {
  font-size: 13px;
}

/* --- Screening section (佳片展映) --- */

.oscar-screening-section {
  padding: 20px 24px 28px;
  margin-top: 8px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.4) 0%, rgba(10, 10, 14, 0.55) 100%);
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.oscar-screening-section .oscar-award-section__title {
  color: rgba(203, 213, 225, 0.9);
}

.oscar-screening-grid {
  gap: 16px;
}

.oscar-screening-grid .oscar-show-card {
  border-color: rgba(148, 163, 184, 0.25);
  background: #1a1c20;
}

.oscar-screening-grid .oscar-show-card:hover {
  border-color: rgba(148, 163, 184, 0.45);
  box-shadow:
    0 0 8px rgba(148, 163, 184, 0.1),
    0 8px 28px rgba(0, 0, 0, 0.35);
}

.oscar-screening-grid .oscar-show-card .work-info {
  background: #1e2024;
}

.oscar-screening-grid .oscar-show-card .work-nickname {
  color: rgba(203, 213, 225, 0.9);
}

.oscar-screening-grid .oscar-show-card .btn-portfolio {
  color: rgba(148, 163, 184, 0.7);
}

.oscar-screening-grid .oscar-show-card .btn-portfolio:hover {
  color: rgba(203, 213, 225, 0.95);
}

/* --- Show mode responsive --- */

@media (max-width: 900px) {
  .oscar-award-grid {
    grid-template-columns: 1fr;
  }

  .oscar-award-grid__winner {
    grid-column: 1;
  }

  .oscar-award-grid__nominees {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .oscar-award-section {
    padding: 16px;
  }

  .oscar-award-section__title {
    font-size: 20px;
  }

  .oscar-award-section__icon {
    font-size: 24px;
  }

  .oscar-screening-section {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .oscar-award-grid__nominees {
    grid-template-columns: 1fr;
  }
}
