.daily-recommend-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
}

.daily-recommend-layout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .daily-recommend-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 100%;
  }
}

.page-header {
  margin-bottom: 32px;
}

.page-title {
  font-size: 32px;
  font-weight: 600;
  color: #24292e;
  margin: 0 0 8px 0;
}

.page-subtitle {
  font-size: 16px;
  color: #586069;
  margin: 0;
}

/* 日历样式 */
.calendar-section {
  background: #fff;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  padding: 16px;
  max-width: 500px;
  min-width: 400px;
}

@media (max-width: 768px) {
  .calendar-section {
    max-width: 100%;
    min-width: auto;
  }
}

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

.calendar-nav-btn {
  background: transparent;
  border: 1px solid #d1d5da;
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 12px;
  color: #24292e;
  transition: all 0.2s;
}

.calendar-nav-btn:hover {
  background: #f6f8fa;
  border-color: #0366d6;
}

.calendar-month-year {
  font-size: 16px;
  font-weight: 600;
  color: #24292e;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.calendar-grid.fade-out {
  opacity: 0;
  transform: translateX(-10px);
}

.calendar-grid.fade-in {
  opacity: 1;
  transform: translateX(0);
}

.calendar-weekday {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: #586069;
  padding: 6px 4px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e1e4e8;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  color: #24292e;
  transition: all 0.2s;
  position: relative;
}

.calendar-day:hover {
  background: #f6f8fa;
  border-color: #0366d6;
}

.calendar-day.other-month {
  color: #d1d5da;
  background: #fafbfc;
}

.calendar-day.today {
  background: #0366d6;
  color: #fff;
  font-weight: 600;
  border-color: #0366d6;
}

.calendar-day.has-recommend {
  background: #d1fae5;
  border-color: #10b981;
}

.calendar-day.has-recommend.today {
  background: #0366d6;
}

.calendar-day.selected {
  background: #fef3c7;
  border-color: #f59e0b;
  font-weight: 600;
  color: #24292e;
}

.calendar-day.selected.today {
  background: #fef3c7;
  color: #24292e;
}

/* 推荐卡片样式 - 仿 music_card_gen.py */
#recommendCardArea {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.recommend-card-container {
  width: 100%;
  max-width: 500px;
  position: relative;
}

@media (max-width: 768px) {
  .recommend-card-container {
    max-width: 100%;
  }
}

.recommend-card {
  position: relative;
  width: 100%;
  min-height: 600px;
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 24px;
}

.recommend-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(100px) brightness(0.7);
  transform: scale(1.1);
  z-index: 0;
  opacity: 0.9;
}

.recommend-card-bg[src=""] {
  display: none;
}

.recommend-card-content {
  position: relative;
  z-index: 1;
  background: #FDFDFD;
  margin: 20px;
  border-radius: 20px;
  padding: 20px;
  min-height: calc(100% - 40px);
}

.recommend-card-cover {
  width: 100%;
  max-width: calc(100% - 40px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 15px;
  display: block;
  background: #D3D3D3;
}

.recommend-card-header {
  margin-bottom: 15px;
}

.recommend-card-title {
  font-size: 22px;
  font-weight: 600;
  color: #2A2A2A;
  margin: 0 0 8px 0;
  line-height: 1.3;
  word-wrap: break-word;
}

.recommend-card-artist {
  font-size: 13px;
  font-weight: 600;
  margin: 0;
  color: #555555;
  line-height: 1.5;
  word-wrap: break-word;
}

.recommend-card-separator {
  display: flex;
  gap: 10px;
  margin: 15px 0 20px 0;
  align-items: center;
}

.recommend-card-separator-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #D0D0D0;
}

.recommend-card-middle {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  min-height: 100px;
  align-items: flex-start;
}

.recommend-card-date-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-left: 10px;
  flex-shrink: 0;
  width: 80px;
}

.recommend-card-date-month {
  font-size: 20px;
  font-weight: 500;
  color: #555555;
  margin-bottom: 5px;
  line-height: 1;
}

.recommend-card-date-number {
  font-size: 45px;
  font-weight: 500;
  color: #2A2A2A;
  line-height: 1;
}

.recommend-card-quote-section {
  flex: 1;
  position: relative;
  padding-left: 0;
  min-width: 0;
  padding-right: 50px;
}

.recommend-card-quote {
  font-size: 17px;
  line-height: 1.6;
  color: #4A4A4A;
  margin: 0;
  word-wrap: break-word;
}

.recommend-card-quote-line {
  display: block;
  margin-bottom: 0.54em;
}

.recommend-card-quote-line.text-left {
  text-align: left;
}

.recommend-card-quote-line.text-center {
  text-align: center;
}

.recommend-card-quote-line.text-right {
  text-align: right;
}

.recommend-card-quote-line.text-small {
  font-size: 0.8em;
  opacity: 0.9;
}

/* 分割线样式 - 参考 Python 实现 */
.recommend-card-quote-line.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.25em 0;
  gap: 8px;
  position: relative;
  width: 50%;
  margin-left: auto;
  margin-right: auto;
  min-height: 1.5em;
}

.recommend-card-quote-line.divider::before,
.recommend-card-quote-line.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(
    to right,
    #4A4A4A 0px,
    #4A4A4A 2px,
    transparent 2px,
    transparent 4px
  );
  max-width: 37.5%;
  min-width: 0;
}

.recommend-card-quote-line-divider-text {
  font-size: 0.67em;
  color: #4A4A4A;
  padding: 0 8px;
  white-space: nowrap;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  line-height: 1;
}

/* 空分割线（仅增加空白，参考 Python: padding_v = q_font_h * 0.25） */
.recommend-card-quote-line.divider-empty {
  height: 0.25em;
  margin: 0.25em 0;
  display: block;
  visibility: hidden;
}

/* 优化移动端显示 */
@media (max-width: 768px) {
  .recommend-card-quote-line {
    margin-bottom: 0.4em;
  }
  
  .recommend-card-quote-line.text-small {
    font-size: 0.75em;
  }
  
  .recommend-card-quote-section {
    padding-right: 0;
  }
}

.recommend-card-quote-deco {
  position: absolute;
  right: 0;
  bottom: 0;
  font-size: 50px;
  color: #D0D0D0;
  line-height: 1;
  opacity: 0.6;
  font-family: serif;
  transform: translateY(10px);
  pointer-events: none;
}

.recommend-card-quote-source {
  font-size: 13px;
  font-weight: 300;
  color: #555555;
  text-align: right;
  margin-top: 10px;
}

.recommend-card-footer {
  margin-top: 5px;
}

.recommend-card-footer-separator {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  align-items: center;
}

.recommend-card-footer-text {
  font-size: 16px;
  font-weight: 200;
  color: #555555;
  text-align: center;
  margin: 0;
}

@media (max-width: 768px) {
  .recommend-card-content {
    margin: 20px;
    padding: 20px;
    border-radius: 20px;
  }

  .recommend-card-cover {
    max-width: 100%;
    margin-bottom: 20px;
    border-radius: 15px;
  }
  
  .recommend-card-title {
    font-size: 28px;
  }

  .recommend-card-artist {
    font-size: 18px;
  }
  
  .recommend-card-middle {
    flex-direction: column;
    gap: 15px;
    min-height: auto;
  }

  .recommend-card-date-section {
    padding-left: 0;
    align-items: flex-start;
    width: auto;
  }
  
  .recommend-card-quote-section {
    padding-left: 0;
    padding-right: 0;
  }
  
  .recommend-card-quote-deco {
    right: 0;
    left: auto;
    bottom: 0;
    top: auto;
    font-size: 60px;
    transform: translateY(10px);
  }

  .recommend-card-date-number {
    font-size: 60px;
  }
  
  .recommend-card-date-month {
    font-size: 28px;
  }
  
  .recommend-card-quote {
    font-size: 22px;
  }
  
  .recommend-card-quote-source {
    font-size: 18px;
  }
  
  .recommend-card-footer-text {
    font-size: 20px;
  }
  
  .recommend-card-separator {
    gap: 15px;
    margin: 20px 0 25px 0;
  }
  
  .recommend-card-footer-separator {
    gap: 15px;
    margin-bottom: 16px;
  }
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #586069;
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  opacity: 0.5;
  color: #586069;
}

.empty-state-text {
  font-size: 16px;
}

.recommend-card-play-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: #24292e;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 11;
}

.recommend-card-play-btn:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}

.recommend-card-play-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Toast 提示样式 */
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  background: #24292e;
  color: #fff;
  padding: 12px 20px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 250px;
  max-width: 400px;
  pointer-events: auto;
  animation: toastSlideIn 0.3s ease-out;
  font-size: 14px;
}

.toast.success {
  background: #10b981;
}

.toast.error {
  background: #ef4444;
}

.toast.warning {
  background: #f59e0b;
}

.toast.info {
  background: #3b82f6;
}

@keyframes toastSlideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes toastSlideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.toast.slide-out {
  animation: toastSlideOut 0.3s ease-in forwards;
}

.toast-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.toast-message {
  flex: 1;
}

.toast-close {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 4px;
  opacity: 0.7;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.toast-close:hover {
  opacity: 1;
}

/* 骨架屏样式 */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: 4px;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-card {
  width: 100%;
  max-width: 500px;
  min-height: 400px;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e1e4e8;
  padding: 20px;
}

.skeleton-cover {
  width: 100%;
  aspect-ratio: 1;
  margin-bottom: 15px;
}

.skeleton-title {
  height: 24px;
  width: 70%;
  margin-bottom: 8px;
}

.skeleton-text {
  height: 16px;
  width: 50%;
  margin-bottom: 4px;
}

/* 快速跳转按钮 */
.jump-to-today-btn {
  background: #0366d6;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  display: none;
  margin-left: 8px;
}

.jump-to-today-btn:hover {
  background: #0256c2;
}

.jump-to-today-btn.visible {
  display: inline-block;
}

/* 错误重试按钮 */
.retry-btn {
  background: #0366d6;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  margin-top: 12px;
  transition: background 0.2s;
}

.retry-btn:hover {
  background: #0256c2;
}

@media (max-width: 768px) {
  .toast-container {
    top: 60px;
    right: 10px;
    left: 10px;
  }
  
  .toast {
    min-width: auto;
    max-width: 100%;
  }
  
  .calendar-header {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .calendar-header > div {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .jump-to-today-btn {
    margin-left: 0;
    flex: 1;
  }
}
