@import './player/player.css';
@import './catalog/catalog.css';
@import './ads/ads.css';

:root {
  --bg-primary: #080808;
  --bg-secondary: #141414;
  --bg-tertiary: #1f1f1f;
  --border-color: #262626;
  --text-primary: #ffffff;
  --text-secondary: #a3a3a3;
  --accent-color: #e50914;
  --accent-hover: #b80710;
  --font-stack: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-stack);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* 頂部導航列 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(14, 14, 14, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 24px;
}

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

.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  height: 38px;
  width: auto;
}

.search-box {
  flex: 1;
  max-width: 500px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  background-color: #1a1a1a;
  border: 1px solid #333333;
  border-radius: 20px;
  color: #ffffff;
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
}

.search-input:focus {
  border-color: var(--accent-color);
  background-color: #222222;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  stroke: #737373;
}

/* 快捷標籤列 */
.filter-bar {
  background-color: #101010;
  border-bottom: 1px solid var(--border-color);
  padding: 10px 24px;
  overflow-x: auto;
  white-space: nowrap;
}

.filter-container {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background-color: #1a1a1a;
  border: 1px solid #333333;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-chip:hover {
  color: #ffffff;
  border-color: #555555;
}

.filter-chip.active {
  background-color: var(--accent-color);
  color: #ffffff;
  border-color: var(--accent-color);
}

.filter-chip.chip-priority {
  border-color: #a855f7;
}

/* 主內容區 */
.main-layout {
  max-width: 1600px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* 播放器英雄區 (Hero Player Section) */
.hero-player-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background-color: #0f0f0f;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
}

.player-info-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.player-video-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
}

.player-video-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-secondary);
}

.player-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.player-tag {
  padding: 4px 10px;
  background-color: #1f1f1f;
  border: 1px solid #333333;
  border-radius: 4px;
  font-size: 12px;
  color: #d1d5db;
}

/* 區塊標題 */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 20px;
  background-color: var(--accent-color);
  border-radius: 2px;
}

/* 頁尾 */
.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--border-color);
  background-color: #0c0c0c;
  padding: 32px 24px;
  text-align: center;
  font-size: 13px;
  color: #737373;
}

/* 靜態 SEO 連結 */
.seo-static-links {
  border-top: 1px solid #1a1a1a;
  padding: 24px;
  font-size: 12px;
  color: #555555;
  background-color: #050505;
}

.seo-static-links a {
  color: #666666;
  text-decoration: none;
  margin-right: 14px;
  display: inline-block;
  line-height: 2;
}

.seo-static-links a:hover {
  color: #999999;
}

/* 18+ 年齡驗證彈窗 */
.age-gate-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.age-gate-content {
  background-color: #141414;
  border: 1px solid #333333;
  border-radius: 12px;
  max-width: 460px;
  width: 100%;
  padding: 32px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

.age-gate-icon {
  margin-bottom: 16px;
  color: var(--accent-color);
}

.age-gate-title {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

.age-gate-desc {
  font-size: 14px;
  color: #a3a3a3;
  line-height: 1.6;
  margin-bottom: 24px;
}

.age-gate-btn {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  background-color: var(--accent-color);
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.age-gate-btn:hover {
  background-color: var(--accent-hover);
}

.age-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.age-gate-btn-secondary {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid #333333;
  background-color: transparent;
  color: #888888;
  cursor: pointer;
  transition: all 0.2s ease;
}

.age-gate-btn-secondary:hover {
  color: #ffffff;
  border-color: #555555;
  background-color: #1f1f1f;
}
