/**
 * Unified styles.css for FiftyTweny.com
 * Worker-based architecture version
 */

/* ------------------ GLOBAL VARIABLES ------------------ */
:root {
  --primary-color: #ff5c75; /* 보라색(#8c00ff)에서 옅은 붉은색으로 변경 */
  --primary-light: #ffebef; /* 연보라색(#f0e6ff)에서 옅은 핑크색으로 변경 */
  --primary-dark: #e04057; /* 진보라색(#7000cc)에서 짙은 붉은색으로 변경 */
  --accent-color: #ff5a87;
  --accent-dark: #ff3870;
  --text-color: #333333;
  --text-light: #666666;
  --text-lighter: #888888;
  --bg-color: #f8f9fa;
  --white: #ffffff;
  --black: #000000;
  --border-radius: 8px;
  --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* ------------------ BASE/RESET STYLES ------------------ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  min-height: 100vh;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: inherit;
}

button, 
.lang-btn, 
a {
  cursor: pointer;
}

ul, ol {
  list-style-type: none;
}

/* ------------------ LOADING INDICATOR ------------------ */
.loading-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--primary-color), transparent);
  z-index: 9999;
  animation: loading-animation 1.5s infinite ease-in-out;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.loading-indicator.visible {
  display: block;
  opacity: 1;
}

@keyframes loading-animation {
  0% {
    transform: translateX(-100%);
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(100%);
    opacity: 0.3;
  }
}

/* ------------------ CONTAINER & LAYOUT ------------------ */
.container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.section {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.section:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.content {
  margin-top: 20px;
}

/* ------------------ HEADER STYLES ------------------ */
header {
  background-image: url('https://phinf.wevpstatic.net/MjAyNTA4MjBfMTUx/MDAxNzU1NjUyMjQ3Njc3.2sT6gTXUIIFAoBbY_IjAA7EeCbnbq2HVLs428wE4zhQg.4QCxFmmdxieRZFfE-wdwnjZZ3AAmvl_-ITOUFPt6RcEg.JPEG/e8e64553-d288-452a-8967-8da25c9e380c.jpeg?type=w1414');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  padding: 20px;
  text-align: center;
  border-radius: var(--border-radius);
  margin-bottom: 30px;
  box-shadow: var(--box-shadow);
  position: relative;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
  position: relative;
  padding: 10px;
}

header h1 {
  margin-top: 40px;
  font-size: 24px;
  color: white;
}

header p {
  margin-top: 10px;
  color: white;
}

.language-selector {
  display: flex;
  gap: 10px;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 100;
}

.home-button {
  display: flex;
  position: absolute;
  background: rgba(255, 92, 116, 0); /* 보라색에서 붉은색 톤으로 변경 */
  top: 10px;
  left: 10px;
  z-index: 100;
}

.lang-btn {
  padding: 6px 12px;
  border: 1px solid rgba(221, 221, 221, 0);
  background: rgba(255, 92, 116, 0); /* 보라색에서 붉은색 톤으로 변경 */
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
  color: white;
}

.lang-btn.active {
  background: rgba(255, 255, 255, 0.733);
  color: #ff5c75; /* 보라색(#8c00ff)에서 붉은색으로 변경 */
  border-color: rgba(255, 255, 255, 0.768);
}

.search-container {
  max-width: 300px;
  width: 100%;
}

/* ------------------ NAVIGATION ------------------ */
nav {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 15px;
  margin-bottom: 30px;
  box-shadow: var(--box-shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav ul {
  display: flex;
  list-style-type: none;
  background-color: white;
  padding: 0;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 0; /* 불필요한 하단 여백 제거 */
  width: 100%; /* 전체 너비를 차지하도록 설정 */
}

nav ul li {
  flex: 1;
  text-align: center;
}

nav ul li a {
  display: block;
  padding: 12px 0;
  color: #333;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap; /* 텍스트가 줄바꿈되지 않도록 설정 */
}

nav ul li a:hover, 
nav ul li a.active {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

/* ------------------ LIKE BUTTON ------------------ */
.like-button-container {
  position: absolute;
  bottom: 15px;
  right: 20px;
}

.like-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s;
}

.like-btn i {
  color: #ff4081;
  margin-right: 8px;
}

.like-btn:hover {
  background-color: #fff0f5;
  border-color: #ff4081;
  transform: scale(1.05);
}

.like-btn.liked {
  animation: pulse 0.3s;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* ------------------ COMMON UI ELEMENTS ------------------ */
h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  color: var(--text-color);
}

h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 60px;
  background: linear-gradient(90deg, var(--accent-color), var(--primary-color)); /* 그라데이션 색상 변경됨 */
  border-radius: 5px;
}

.card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #dfe6e9;
}

/* ------------------ LOADING & ERROR STATES ------------------ */
.loading, .error {
  text-align: center;
  padding: 30px;
  color: #636e72;
}

.error {
  color: #d63031;
}

.sns-feed-loading, .loading-votes, .loading-calendar, .loading-events {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  margin: 10px 0 20px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.spinner {
  width: 40px;
  height: 40px;
  margin-bottom: 15px;
  border: 4px solid rgba(255, 92, 117, 0.1); /* 보라색에서 붉은색 톤으로 변경 */
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.error-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 25px;
  margin: 20px 0;
  background-color: #ffebee;
  border-radius: 8px;
  color: #c62828;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.error-message i {
  font-size: 32px;
  margin-bottom: 15px;
}

.error-message p {
  margin-bottom: 15px;
  font-size: 16px;
}

.retry-button {
  padding: 10px 20px;
  background-color: #c62828;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  transition: background-color 0.2s;
}

.retry-button:hover {
  background-color: #b71c1c;
}

.feed-notice {
  margin: 15px 0;
  padding: 12px 15px;
  background-color: #fff8e1;
  border-left: 4px solid #ffb300;
  border-radius: 4px;
  font-size: 0.95em;
  color: #5d4037;
  display: flex;
  align-items: center;
}

.feed-notice i {
  margin-right: 10px;
  font-size: 18px;
  color: #ffb300;
}

.update-info, .update-info-container {
  text-align: right;
  color: #888;
  font-size: 0.9rem;
  font-style: italic;
  margin-top: 10px;
  margin-bottom: 10px;
}

/* ------------------ REFRESH BUTTON ------------------ */
#refresh-feed {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s;
  margin-bottom: 20px;
}

#refresh-feed:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 아이콘이 중복되어 표시되므로 ::before 가상 요소 제거 */
/* #refresh-feed::before {
  content: "\f2f1";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-right: 8px;
} */

/* 대신 HTML에 포함된 아이콘에 대한 스타일 추가 */
#refresh-feed i {
  margin-right: 8px;
}

/* ------------------ FEED ITEMS ------------------ */
.feed-item {
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid #eee;
  border-radius: 8px;
  background-color: #fff;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.feed-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.feed-item h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #333;
}

.feed-item p {
  margin-bottom: 10px;
  line-height: 1.5;
  color: #555;
}

.feed-item time {
  display: block;
  font-size: 0.85em;
  color: #888;
}

/* ------------------ PROFILE PAGE STYLES ------------------ */
.profile-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}

.profile-info p {
  font-size: 1.1rem;
}

.profile-links ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.profile-links li a {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  background-color: var(--bg-color);
  color: var(--text-color);
  text-decoration: none;
  border-radius: 30px;
  font-weight: 500;
  transition: var(--transition);
}

.profile-links li a i {
  margin-right: 8px;
}

.profile-links li a:hover {
  background-color: var(--accent-color);
  color: var(--white);
  transform: translateY(-2px);
}

/* Member profile styles */
.members-profile {
  margin-top: 40px;
}

.members-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.member-card {
  width: 300px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.member-card:hover {
  transform: translateY(-5px);
}

.profile-image-container {
  width: 100%;
  height: 300px;
  overflow: hidden;
  position: relative;
}

.profile-image-placeholder {
  width: 100%;
  height: 100%;
  background-color: #f5f5f5;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-info {
  padding: 15px;
  text-align: center;
  background-color: #fff;
}

.member-info h4 {
  margin: 0 0 5px 0;
  font-size: 1.2rem;
  color: #333;
}

.member-position {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
}

/* Album styles */
.albums-section {
  margin-top: 40px;
}

.albums-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.album-card {
  width: 200px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.album-card:hover {
  transform: translateY(-5px);
}

.album-card a {
  text-decoration: none;
  color: inherit;
}

.album-image-container {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.album-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.album-info {
  padding: 15px;
  text-align:center;
  background-color: #fff;
}

.album-info-h4 {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
}

.album-release-date {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
}

/* ------------------ SNS FEED PAGE STYLES ------------------ */
.feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  width: 100%;
}

.category-section {
  margin-bottom: 50px;
}

.category-title {
  font-size: 1.5rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-color);
  color: #333;
  display: flex;
  align-items: center;
}

.category-title i {
  margin-right: 10px;
  color: var(--accent-color);
}

.category-container {
  position: relative;
  min-height: 200px;
}

.feed-thumbnail {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 ratio */
  overflow: hidden;
  display: block;
}

.feed-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.feed-thumbnail:hover img {
  transform: scale(1.05);
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-color: rgba(255, 90, 135, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.play-button i {
  font-size: 24px;
  color: white;
}

.feed-thumbnail:hover .play-button {
  opacity: 1;
}

.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 3px 6px;
  border-radius: 3px;
  font-size: 0.8rem;
}

.feed-info {
  padding: 15px;
}

.feed-info h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  line-height: 1.4;
  max-height: 2.8em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  background: none !important;
  color: var(--text-color) !important;
}

.video-title-link {
  color: var(--text-color) !important;
  text-decoration: none !important;
  background: none !important;
  transition: var(--transition);
}

.video-title-link:hover {
  color: #555 !important;
}

.feed-meta {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  color: #666;
}

.feed-meta span {
  margin-right: 15px;
  display: flex;
  align-items: center;
}

.feed-meta i {
  margin-right: 5px;
}

.error-item {
  grid-column: 1 / -1;
  padding: 30px;
  text-align: center;
  color: #666;
}

.error-item a {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent-color);
  text-decoration: none;
}

/* SNS 피드 로딩 메시지 스타일 */
.feed-loading-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 250px;
  padding: 2rem;
  background-color: rgba(248, 249, 250, 0.8);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin: 1rem 0;
  width: 100%;
}

.feed-loading-message .spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1.5s linear infinite;
  margin-bottom: 1rem;
}

.feed-loading-message p {
  font-size: 1.1rem;
  font-weight: 500;
  color: #333;
  margin: 0.5rem 0;
}

.feed-loading-message small {
  color: #666;
  margin-bottom: 1rem;
}

.feed-loading-message .retry-button {
  padding: 0.5rem 1rem;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  margin-top: 1rem;
  transition: background-color 0.2s;
}

.feed-loading-message .retry-button:hover {
  background-color: #2980b9;
}

.feed-loading-message i.fa-spinner {
  font-size: 1.5rem;
  color: #3498db;
  margin-bottom: 0.5rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 콘텐츠 없음 스타일 */
.no-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 150px;
  padding: 2rem;
  background-color: #f8f9fa;
  border-radius: 8px;
  color: #6c757d;
  margin: 1rem 0;
}

/* ------------------ CHART PAGE STYLES ------------------ */
#song-details {
  min-height: 200px;
}

.song-main-info {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.album-image {
  flex: 0 0 200px;
  margin-right: 2rem;
  margin-bottom: 1rem;
}

.album-image img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.song-info {
  flex: 1;
  min-width: 250px;
}

.song-info h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #2d3436;
}

.song-info h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #ff5c75; /* 보라색(#6c5ce7)에서 붉은색으로 변경 */
}

.song-info p {
  margin-bottom: 0.5rem;
  color: #636e72;
}

.song-credits {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: #f5f6fa;
  border-radius: 8px;
}

.credit-item {
  flex: 1;
  min-width: 200px;
  margin-bottom: 0.5rem;
}

.credit-item .label {
  font-weight: 500;
  color: #ff5c75; /* 보라색(#6c5ce7)에서 붉은색으로 변경 */
}

.platform-likes {
  margin-top: 1.5rem;
}

.platform-likes h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.likes-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.platform-like-item {
  flex: 1;
  min-width: 120px;
  padding: 0.8rem;
  background-color: #f5f6fa;
  border-radius: 4px;
  text-align: center;
}

.platform-name {
  display: block;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.like-count {
  display: block;
  font-size: 1.2rem;
  color: #ff5c75; /* 보라색(#6c5ce7)에서 붉은색으로 변경 */
}

.chart-rankings-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.chart-ranking-item {
  flex: 1;
  min-width: 150px;
  max-width: 200px;
  padding: 1.5rem;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.chart-ranking-item:hover {
  transform: translateY(-5px);
}

.chart-ranking-item .platform-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: #ff5c75; /* 보라색(#6c5ce7)에서 붉은색으로 변경 */
}

.chart-ranking-item .chart-type {
  font-size: 0.9rem;
  color: #636e72;
  margin-bottom: 0.8rem;
}

.chart-ranking-item .rank {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2d3436;
  margin-bottom: 0.8rem;
}

.chart-ranking-item .rank-suffix {
  font-size: 1rem;
  vertical-align: super;
}

.chart-ranking-item .chart-date {
  font-size: 0.8rem;
  color: #636e72;
}

#ranking-chart {
  height: 300px;
  max-width: 800px;
  margin: 0 auto;
}

.no-data {
  text-align: center;
  color: #636e72;
  padding: 2rem;
  font-size: 1.1rem;
}

.no-rank {
  font-size: 1.2rem;
  color: #636e72;
  margin: 1rem 0;
}

/* ------------------ VOTE MODULE STYLES ------------------ */
.vote-description-container {
  background-color: #f8f8f8;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  line-height: 1.6;
}

.vote-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.vote-summary {
  font-size: 1.1rem;
  font-weight: bold;
}

#vote-count {
  color: var(--accent-color);
}

.vote-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.vote-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  border-left: 5px solid #ccc;
}

.vote-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.vote-item.important {
  border-left-color: var(--accent-color);
  background-color: #fff9fa;
}

.vote-info {
  flex: 1;
}

.vote-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.vote-title {
  margin: 0;
  font-size: 1.3rem;
  color: #333;
}

.vote-dday {
  font-weight: bold;
  background-color: #f0f0f0;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.9rem;
}

.vote-dday.urgent {
  background-color: var(--accent-color);
  color: white;
}

.vote-description {
  color: #666;
  margin: 10px 0;
  line-height: 1.5;
}

.vote-footer {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 10px;
  font-size: 0.9rem;
}

.vote-category {
  background-color: #e6e6e6;
  padding: 3px 8px;
  border-radius: 3px;
  color: #555;
}

.vote-date {
  color: #888;
}

.vote-action {
  margin-left: 20px;
}

.vote-button {
  display: inline-block;
  background-color: var(--accent-color);
  color: white;
  padding: 10px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
  border: none;
  cursor: pointer;
}

.vote-button:hover {
  background-color: var(--accent-dark);
  transform: scale(1.05);
}

.vote-guide {
  background-color: #f8f8f8;
  border-radius: 10px;
  padding: 20px;
  margin-top: 40px;
  margin-bottom: 30px;
}

.vote-guide h3 {
  margin-top: 0;
  color: #333;
  margin-bottom: 15px;
}

.vote-guide ol {
  padding-left: 20px;
  line-height: 1.6;
}

.vote-guide li {
  margin-bottom: 8px;
}

.no-votes {
  text-align: center;
}

/* ------------------ EVENT CALENDAR STYLES ------------------ */
#event-calendar {
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.calendar-header button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
}

.calendar-header button:hover {
  background-color: var(--primary-dark);
}

#calendar-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-color);
}

.weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  text-align: center;
  font-weight: bold;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  min-height: 400px;
}

.calendar-day {
  height: 100px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 5px;
  position: relative;
  background-color: #f9f9f9;
  transition: background-color 0.2s;
  overflow: hidden;
}

.calendar-day:hover {
  background-color: #f0f0f0;
}

.empty-day {
  height: 100px;
  border-radius: 4px;
}

.day-number {
  font-weight: bold;
  margin-bottom: 5px;
  text-align: right;
  color: var(--text-color);
}

.current-day {
  background-color: var(--primary-light);
  border: 1px solid var(--primary-color);
}

.day-event {
  padding: 3px 6px;
  border-radius: 3px;
  font-size: 0.8rem;
  margin-bottom: 3px;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: transform 0.2s;
}

.day-event:hover {
  transform: translateY(-2px);
}

/* Event type colors */
.day-event.fanmeet { background-color: #e74c3c; }
.day-event.fansign { background-color: #3498db; }
.day-event.comeback { background-color: #9b59b6; }
.day-event.music-show { background-color: #2ecc71; }
.day-event.anniversary { background-color: #f39c12; }
.day-event.vlive { background-color: #1abc9c; }
.day-event.concert { background-color: #d35400; }
.day-event.release { background-color: #8e44ad; }
.day-event.broadcast { background-color: #16a085; }
.day-event.festival { background-color: #27ae60; }
.day-event.other { background-color: #7f8c8d; }

.upcoming-events {
  margin-top: 30px;
}

.upcoming-events h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
}

.event-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.event-item {
  display: flex;
  align-items: center;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s;
  cursor: pointer;
}

.event-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.event-date {
  padding: 15px;
  width: 80px;
  text-align: center;
  color: white;
  font-weight: bold;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.event-info {
  padding: 15px;
  flex: 1;
}

.event-title {
  font-weight: bold;
  margin-bottom: 5px;
  color: var(--text-color);
}

.event-details {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 5px;
}

.event-location {
  font-size: 0.9rem;
  color: var(--text-lighter);
}

/* Event modal styles */
.event-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
}

.event-modal-content {
  background-color: white;
  margin: 10% auto;
  padding: 25px;
  border-radius: 8px;
  width: 70%;
  max-width: 600px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  position: relative;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  color: #aaa;
  cursor: pointer;
}

.close-modal:hover {
  color: var(--text-color);
}

.event-modal-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--text-color);
}

.event-modal-type {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  color: white;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.event-modal-date,
.event-modal-location {
  margin-bottom: 10px;
  color: var(--text-light);
  display: flex;
  align-items: center;
}

.event-modal-date i,
.event-modal-location i {
  margin-right: 10px;
  color: var(--primary-color);
}

.event-modal-description {
  margin: 20px 0;
  line-height: 1.6;
  color: var(--text-color);
}

.event-modal-link {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 15px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.2s;
}

.event-modal-link:hover {
  background-color: var(--primary-dark);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .calendar-grid {
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
  }
  
  .calendar-day {
    height: 80px;
    padding: 2px;
  }
  
  .day-event {
    padding: 2px 4px;
    font-size: 0.7rem;
  }
  
  .event-modal-content {
    width: 90%;
    margin: 20% auto;
  }

  .feed-loading-message {
    min-height: 180px;
    padding: 1.5rem;
  }
  
  .feed-loading-message .spinner {
    width: 30px;
    height: 30px;
  }
  
  .feed-loading-message p {
    font-size: 1rem;
  }
}

/* ------------------ BROADCASTS PAGE STYLES ------------------ */
.featured-broadcast {
  margin-bottom: 30px;
}

.featured-title {
  font-size: 1.4rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.featured-title i {
  color: var(--primary-color);
}

.featured-video {
  display: flex;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.featured-thumbnail {
  flex: 1;
  max-width: 50%;
  position: relative;
}

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

.featured-info {
  flex: 1;
  padding: 20px;
  background-color: #f9f9f9;
  display: flex;
  flex-direction: column;
}

.featured-info h3 {
  margin-top: 0;
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.featured-info .video-title {
  font-size: 1.4rem;
  margin: 0.5em 0 0.8em 0;
  height: auto;
  max-height: 3.6em;
  line-height: 1.3;
  font-weight: 600;
  color: var(--text-color);
}

.featured-meta {
  margin-bottom: 15px;
  color: var(--text-light);
}

.featured-description {
  flex: 1;
  margin-bottom: 20px;
}

.watch-button {
  align-self: flex-start;
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.watch-button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 25px;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.filter-group label {
  font-weight: bold;
  font-size: 0.9rem;
  color: var(--text-light);
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  background: #f5f5f5;
  color: #888888;
  border: none;
  border-radius: 20px;
  padding: 8px 20px;
  margin-right: 8px;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}

.filter-btn.active {
  background: var(--primary-color);
  color: #fff;
}

.filter-btn:hover,
.filter-btn:focus {
  background: var(--primary-color);
  color: #fff;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 992px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .featured-video {
    flex-direction: column;
  }
  
  .featured-thumbnail {
    max-width: 100%;
  }
  
  .video-info {
    padding: 12px;
  }
}

@media (max-width: 576px) {
  .video-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .video-title {
    font-size: 0.95rem;
  }
  
  .video-card {
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
  }
  
  .featured-info .video-title {
    font-size: 1.2rem;
  }
}

.video-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  cursor: pointer;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.video-thumbnail {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  overflow: hidden;
}

.video-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.video-card:hover .video-thumbnail img {
  transform: scale(1.05);
}

.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 3px 6px;
  border-radius: 3px;
  font-size: 0.8rem;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background-color: rgba(255, 92, 117, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.play-button i {
  color: white;
  font-size: 20px;
}

.video-card:hover .play-button {
  opacity: 1;
}

.video-info {
  padding: 15px;
  min-height: 4.5em;
}

.video-title, 
p.video-title,
h4.video-title {
  font-size: 1rem;
  margin: 0.5em 0 0.2em 0;
  height: 3.2em;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  font-weight: bold;
}

.video-show {
  font-size: 0.9rem;
  color: var(--primary-color);
  margin: 0 0 5px 0;
}

.video-date, .video-views {
  font-size: 0.8rem;
  color: var(--text-light);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

channel-name {
  color: var(--primary-color);
  font-weight: 500;
}

.load-more {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.load-more-btn {
  background-color: white;
  border: 1px solid #ddd;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  color: #666666;
  font-weight: 500;
}

.load-more-btn:hover {
  background-color: #f9f9f9;
  border-color: #ccc;
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.load-more-btn[disabled],
.load-more-btn:disabled {
  background: white;
  color: #888888;
  cursor: default;
}

.load-more-btn .no_more_data,
.load-more-btn[disabled] span,
.load-more-btn:disabled span {
  color: #888888;
}

.category-section {
  margin-top: 40px;
}

.category-title {
  font-size: 1.4rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-title i {
  color: var(--primary-color);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.view-all {
  background: none;
  border: none;
  color: var(--primary-color);
  text-decoration: underline;
  cursor: pointer;
}

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 92, 117, 0.2);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease-in-out infinite;
  margin-bottom: 15px;
}

.error-container {
  background-color: #fff0f0;
  border-left: 4px solid var(--primary-color);
  padding: 15px;
  margin: 20px 0;
  color: #d63031;
  border-radius: 4px;
}

.no-results {
  text-align: center;
  padding: 30px;
  color: var(--text-light);
  grid-column: 1 / -1;
}

/* ===== 관리자 페이지(방송 출연 관리자) 스타일 보강 ===== */

/* 관리자 콘텐츠 영역 */
#admin-content {
  margin-top: 20px;
  position: relative;
  z-index: 1;
}

#admin-content.hidden {
  display: none !important;
}

/* 탭 스타일 */
.tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid #ddd;
}

.tab {
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.tab:hover {
  background-color: var(--primary-light);
}

.tab.active {
  border-bottom: 2px solid var(--primary-color);
  font-weight: bold;
}

.tab.logout {
  margin-left: auto;
  color: #e74c3c;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.panel {
  background-color: var(--white);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.form-group {
  margin-bottom: 15px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

input[type="text"],
input[type="url"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 10px 15px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s;
}

button:hover {
  background-color: var(--primary-dark);
}

.tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid #ddd;
}

.tab {
  padding: 10px 20px;
  cursor: pointer;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  background-color: #f8f8f8;
}

.tab.active {
  background-color: white;
  border-color: #ddd;
  margin-bottom: -1px;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.tab.logout {
  margin-left: auto;
  color: #d32f2f;
}

/* 상태 메세지 관련 스타일 */
.status-message {
  padding: 10px;
  margin: 10px 0;
  border-radius: 4px;
  text-align: center;
  display: none;
}

.status-message:not(.hidden) {
  display: block;
}

.status-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.status-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.status-message.info {
  background-color: #cce5ff;
  color: #004085;
  border: 1px solid #b8daff;
}

/* 로딩 관련 스타일 */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  min-height: 100px;
}

.loading.hidden {
  display: none;
}

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

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.action-buttons {
  display: flex;
  gap: 5px;
}

/* 테이블 스타일 */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

th, td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

th {
  background-color: #f2f2f2;
  font-weight: bold;
}

tr:hover {
  background-color: #f5f5f5;
}

/* 검색 및 필터 관련 스타일 */
.search-container {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.search-container input[type="text"] {
  flex: 1;
}

/* 페이지네이션 관련 스타일 */
.pagination {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin: 20px 0;
}

.pagination button, .page-btn {
  background: #666;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 15px;
  transition: background 0.2s, border-color 0.2s;
}

.pagination button.active, .page-btn.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.page-ellipsis {
  padding: 6px 8px;
  color: #aaa;
  font-size: 15px;
}

.tag {
  display: inline-block;
  background-color: #e0e0e0;
  padding: 3px 8px;
  border-radius: 3px;
  margin-right: 5px;
  margin-bottom: 5px;
  font-size: 14px;
}

.tag.featured {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

.status {
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 14px;
}

.status.active {
  background-color: #e8f5e9;
  color: #388e3c;
}

.status.inactive {
  background-color: #ffebee;
  color: #d32f2f;
}

.thumbnail, .youtube-preview {
  width: 120px;
  height: auto;
  object-fit: cover;
  border-radius: 3px;
}

.empty-message {
  text-align: center;
  padding: 20px;
  color: #666;
}

/* 관리자 페이지 추가 스타일 */
.inline-checkbox {
  width: auto !important;
}

.inline-label {
  display: inline !important;
  margin-left: 5px;
}

/* 표시/숨김 유틸리티 클래스 */
.hidden {
  display: none !important;
}

.visible {
  display: block !important;
}

.flex-visible {
  display: flex !important;
}

/* ------------------ FOOTER STYLES ------------------ */
.footer {
  background-color: var(--text-color);
  color: var(--white);
  padding: 20px 0;
  margin-top: 50px;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-content p {
  margin: 5px 0;
  font-size: 0.9rem;
}

.footer-content .disclaimer {
  color: #cccccc;
  font-size: 0.8rem;
  opacity: 0.8;
}

/* ------------------ LIVE PAGE STYLES ------------------ */
.live-placeholder {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-lighter);
  background: var(--white);
  border-radius: var(--border-radius);
  margin: 2rem 0;
  border: 2px dashed #ddd;
}

.live-placeholder i {
  color: var(--primary-color);
  margin-bottom: 1rem;
  opacity: 0.7;
}

.live-placeholder p {
  font-size: 1.1rem;
  margin: 0;
}

