* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #e50914;
  --dark: #0a0a0a;
  --gray: #1a1a1a;
  --light-gray: #808080;
  --white: #ffffff;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: #000;
  color: var(--white);
  overflow-x: hidden;
  padding-bottom: 70px;
}

/* 加载屏幕 */
.loading-screen {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--gray);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 顶部导航 */
.header {
  position: sticky;
  top: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 100;
  padding: 12px 16px;
  border-bottom: none;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary);
}

.btn-login {
  background: var(--primary);
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
}

.user-menu {
  position: relative;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  object-fit: cover;
}

.dropdown {
  position: absolute;
  right: 0;
  top: 45px;
  background: var(--gray);
  border-radius: 8px;
  min-width: 150px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.dropdown a {
  display: block;
  padding: 12px 16px;
  color: white;
  text-decoration: none;
  cursor: pointer;
}

.dropdown a:hover {
  background: rgba(255,255,255,0.1);
}

/* 分类导航 */
.categories {
  position: sticky;
  top: 52px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99;
  padding: 8px 0;
  border-bottom: none;
}

.category-scroll {
  display: flex;
  gap: 8px;
  padding: 0 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.category-scroll::-webkit-scrollbar {
  display: none;
}

.category-btn {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  border: none;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s;
}

.category-btn.active {
  background: var(--primary);
  color: white;
}

/* 精选轮播 */
.featured {
  padding: 12px 12px 0;
  margin-bottom: 12px;
}

.featured-card {
  position: relative;
  height: 65vh;
  max-height: 520px;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
}

.featured-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 20px 24px;
  background: linear-gradient(transparent, rgba(0,0,0,0.6), rgba(0,0,0,0.9));
}

.featured-info h2 {
  font-size: 22px;
  margin-bottom: 8px;
  line-height: 1.3;
}

.featured-info p {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn-play {
  background: var(--primary);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

/* 剧集列表 */
.series-list {
  padding: 0 6px;
}

.series-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.series-card {
  cursor: pointer;
  transition: transform 0.3s;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

/* 右列下移，形成错开瀑布流效果 */
.series-card:nth-child(2n) {
  margin-top: 24px;
}

.series-card:active {
  transform: scale(0.96);
}

.series-cover {
  position: relative;
  aspect-ratio: 2/3;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0;
}

.series-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.series-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: linear-gradient(135deg, #FFD700, #FF8C00);
  color: black;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: bold;
  z-index: 2;
}

.series-stats {
  position: absolute;
  bottom: 36px;
  right: 6px;
  display: flex;
  gap: 6px;
  font-size: 10px;
  z-index: 2;
}

.series-stats span {
  background: rgba(0,0,0,0.65);
  padding: 2px 8px;
  border-radius: 10px;
  backdrop-filter: blur(4px);
}

/* Episode count badge — top-left when no VIP badge */
.series-episode-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(0,0,0,0.65);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
  z-index: 2;
  backdrop-filter: blur(4px);
}

/* Card overlay — title overlaid on image */
.series-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 8px 8px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  z-index: 1;
}

.series-info h3 {
  font-size: 12px;
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: white;
  font-weight: 600;
}

.series-meta {
  font-size: 10px;
  color: rgba(255,255,255,0.6);
}

/* 加载更多 */
/* 无限滚动哨兵 */
.scroll-sentinel {
  padding: 20px 0;
  text-align: center;
  min-height: 1px;
}

.loading-more-spinner {
  display: flex;
  justify-content: center;
  padding: 10px 0;
}

.spinner-small {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* 模态框 */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5000;
  padding: 20px;
}

.modal-content {
  background: var(--gray);
  border-radius: 12px;
  padding: 30px;
  max-width: 400px;
  width: 100%;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: white;
  font-size: 30px;
  cursor: pointer;
}

.modal-content h2 {
  margin-bottom: 20px;
}

.modal-content input {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  background: var(--dark);
  border: 1px solid var(--light-gray);
  border-radius: 6px;
  color: white;
  font-size: 14px;
}

.btn-primary {
  width: 100%;
  background: var(--primary);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

.auth-switch {
  text-align: center;
  margin-top: 15px;
  font-size: 14px;
  color: var(--light-gray);
}

.auth-switch a {
  color: var(--primary);
  cursor: pointer;
  text-decoration: none;
}

/* ===== Immersive Fullscreen Player ===== */
.player-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: black;
  z-index: 2000;
  overflow: hidden;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

/* Video layer fills viewport */
.video-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease-in-out;
}

.video-layer.slide-up-exit {
  transform: translateY(-100%);
}

.video-layer.slide-down-exit {
  transform: translateY(100%);
}

.video-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: black;
}

/* Video.js overrides — fill viewport, no controls */
.player-modal .video-js {
  width: 100vw !important;
  height: 100vh !important;
  padding-top: 0 !important;
}

.player-modal .video-js video {
  object-fit: contain;
}

.player-modal .vjs-control-bar {
  display: none !important;
}

.player-modal .vjs-big-play-button {
  display: none !important;
}

.player-modal .vjs-loading-spinner {
  z-index: 3;
}

/* ===== Player Overlay (auto-hide) ===== */
.player-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.35s ease;
}

.player-overlay.hidden {
  opacity: 0;
  pointer-events: none !important;
}

.player-overlay > * {
  pointer-events: auto;
}

/* Top bar */
.overlay-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: calc(env(safe-area-inset-top, 12px) + 8px) 12px 12px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, transparent 100%);
  z-index: 5;
}

.player-close {
  background: rgba(0,0,0,0.45);
  border: none;
  color: white;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Right side action buttons */
.overlay-right {
  position: absolute;
  right: 10px;
  bottom: 180px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 11px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.9);
}

.action-btn span:first-child {
  font-size: 30px;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.9));
}

.action-btn.active {
  color: var(--primary);
}

.share-buttons {
  display: none;
}

/* Bottom info bar */
.overlay-bottom {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 80px;
  padding: 0 14px;
  z-index: 5;
}

.overlay-bottom-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.overlay-series-title {
  font-size: 16px;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ep-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  align-self: flex-start;
}

.ep-indicator:active {
  background: rgba(0, 0, 0, 0.85);
}

.ep-indicator svg {
  opacity: 0.8;
}

.overlay-series-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

/* ===== Thin Progress Bar (always visible) ===== */
.progress-thin {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 20px;
  z-index: 10;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
}

.progress-thin-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.25s linear;
  border-radius: 1px;
}

.progress-thin:active .progress-thin-fill,
.progress-thin:hover .progress-thin-fill {
  height: 5px;
}

.progress-thin-handle {
  position: absolute;
  bottom: -4px;
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.2s;
}

.progress-thin:active .progress-thin-handle,
.progress-thin:hover .progress-thin-handle {
  opacity: 1;
}

/* ===== Bottom Drawer ===== */
.drawer-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 20;
}

.bottom-drawer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 45vh;
  background: #1a1a1a;
  border-radius: 16px 16px 0 0;
  z-index: 25;
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
  display: flex;
  flex-direction: column;
}

.bottom-drawer.open {
  transform: translateY(0);
}

.drawer-handle {
  width: 36px;
  height: 4px;
  background: rgba(255,255,255,0.25);
  border-radius: 2px;
  margin: 10px auto 0;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px 8px;
  flex-shrink: 0;
}

.drawer-header h3 {
  font-size: 15px;
  font-weight: 600;
}

.drawer-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 26px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 16px 20px;
  -webkit-overflow-scrolling: touch;
}

/* Episodes grid inside drawer */
.bottom-drawer .episodes-scroll {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding-bottom: 8px;
}

.episode-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: white;
  height: 38px;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  position: relative;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.episode-btn.active {
  background: var(--primary);
  border-color: var(--primary);
}

.ep-number {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
}

.episode-btn.active .ep-number {
  color: white;
  font-weight: bold;
}

.ep-title {
  display: none;
}

.ep-lock {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
}

/* Trailer buttons */
.trailer-btn {
  background: rgba(229, 9, 20, 0.2) !important;
  border-color: rgba(229, 9, 20, 0.4) !important;
}
.trailer-btn.active {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
}
.trailer-btn .ep-number {
  font-size: 12px;
  font-weight: bold;
}

/* Comment drawer specific */
.comment-drawer .drawer-body {
  padding: 0 16px 20px;
}

.comment-drawer .comment-input {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 8px 0 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 12px;
}

.comment-drawer .comment-input textarea {
  flex: 1;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: white;
  padding: 8px 10px;
  font-size: 13px;
  resize: none;
}

.btn-comment-post {
  width: auto !important;
  padding: 8px 16px !important;
  font-size: 13px !important;
  border-radius: 8px !important;
  white-space: nowrap;
}

.comment-drawer .login-prompt {
  text-align: center;
  padding: 12px 0;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
}

.comment-drawer .login-prompt a {
  color: var(--primary);
  cursor: pointer;
}

.comment-drawer .comment-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.comment-drawer .comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.comment-drawer .comment-header {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 4px;
}

.comment-drawer .comment-username {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
}

.comment-drawer .comment-time {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
}

.comment-drawer .comment-text {
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255,255,255,0.9);
}

.comment-drawer .comment-actions {
  margin-top: 4px;
}

.comment-drawer .comment-like {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  cursor: pointer;
  padding: 2px 0;
}

.comment-drawer .comment-like.active {
  color: var(--primary);
}

/* Unlock prompt overlay */
.player-modal .unlock-prompt {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 30;
  padding: 20px;
}

/* 底部导航 */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  justify-content: space-around;
  padding: 6px 0 env(safe-area-inset-bottom, 10px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 2500;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--light-gray);
  text-decoration: none;
  font-size: 11px;
  padding: 8px 16px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-item i {
  font-size: 24px;
  margin-bottom: 4px;
  transition: all 0.3s ease;
}

.nav-item:active {
  transform: scale(0.95);
}

.nav-item.active {
  color: var(--primary);
}

.nav-item.active i {
  transform: scale(1.1);
}

.nav-item span {
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* 响应式 */
@media (min-width: 768px) {
  .series-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .series-card:nth-child(2n) {
    margin-top: 0;
  }
  
  .bottom-nav {
    display: none;
  }
  
  body {
    padding-bottom: 0;
  }

  .featured-card {
    height: 55vh;
    max-height: 600px;
  }

  .series-list {
    padding: 0 12px;
  }
}

@media (min-width: 1024px) {
  .series-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
  }

  .series-list {
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
  }

  .featured {
    padding: 16px 20px 0;
    max-width: 1200px;
    margin: 0 auto;
  }
}

/* 解锁提示 */
.unlock-content {
  background: var(--gray);
  border-radius: 16px;
  padding: 40px;
  max-width: 600px;
  width: 100%;
  text-align: center;
}

.unlock-content h3 {
  font-size: 32px;
  margin-bottom: 10px;
}

.unlock-content > p {
  color: var(--light-gray);
  margin-bottom: 30px;
}

.unlock-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.unlock-option {
  background: var(--dark);
  border: 2px solid var(--light-gray);
  border-radius: 12px;
  padding: 30px 20px;
  transition: all 0.3s ease;
}

.unlock-option:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
}

.unlock-option.highlight {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.1) 0%, rgba(229, 9, 20, 0.05) 100%);
}

.unlock-option h4 {
  font-size: 20px;
  margin-bottom: 10px;
}

.unlock-option p {
  color: var(--light-gray);
  margin-bottom: 20px;
  font-size: 14px;
}

.btn-unlock {
  background: var(--primary);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-unlock:hover {
  background: #f40612;
  transform: scale(1.05);
}

.btn-unlock.btn-buy {
  background: #ff9800;
}

.btn-unlock.btn-buy:hover {
  background: #f57c00;
}

.points-balance {
  font-size: 12px;
  color: #aaa;
  margin-top: 4px;
}

.btn-cancel {
  background: transparent;
  color: var(--light-gray);
  border: 1px solid var(--light-gray);
  padding: 12px 40px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-cancel:hover {
  background: var(--dark);
  color: white;
}

@media (max-width: 768px) {
  .unlock-options {
    grid-template-columns: 1fr;
  }
  
  .unlock-content {
    padding: 30px 20px;
  }
}

/* Toast 提示 */
.toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 10000;
  animation: toast-fade-in 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@keyframes toast-fade-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* 通用弹窗 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  animation: modal-fade-in 0.2s ease;
}

.modal-dialog {
  background: var(--gray);
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  animation: modal-slide-up 0.3s ease;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  color: var(--light-gray);
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.modal-close:hover {
  color: white;
}

.modal-body {
  padding: 24px;
}

.modal-body p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.modal-footer {
  padding: 16px 24px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-footer .btn-primary,
.modal-footer .btn-secondary {
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.modal-footer .btn-primary {
  background: var(--primary);
  color: white;
}

.modal-footer .btn-primary:hover {
  background: #c40812;
}

.modal-footer .btn-secondary {
  background: transparent;
  color: var(--light-gray);
  border: 1px solid var(--light-gray);
}

.modal-footer .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

@keyframes modal-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modal-slide-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
