:root {
  --color-black: #000;
  --color-white: #fff;
  --color-gray-light: #f8f8f8;
  --color-gray-medium: #f5f5f5;
  --color-gray-dark: #999;
  --color-gray-text: #6B7280;
  --color-pink-light: #FEE2E2;
  --color-pink-medium: #FECACA;
  --color-pink-dark: #EC4899;
  --color-blue-light: #EFF6FF;
  --color-blue: #3B82F6;
  --color-primary: #1890ff;
  --color-danger: #ff4d4f;
  --transition-base: all 0.3s ease;
  --transition-fast: all 0.2s ease;
}

html { scroll-behavior: smooth; }
body { background-color: var(--color-gray-medium); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: #333; }

.parent-container { width: 95%; max-width: 1280px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); }
.scroll-box { overflow-y: auto; }
.scroll-box::-webkit-scrollbar { width: 4px; }
.scroll-box::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; }
.scroll-box::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 4px; }
.scroll-box::-webkit-scrollbar-thumb:hover { background: #a1a1a1; }

.media-container { position: relative; width: 100%; overflow: hidden; cursor: pointer; min-height: 200px; }
.media-container::after { content: ""; display: block; padding-bottom: 166.67%; }
.media-video, .photo-img { position: absolute; top: 50%; left: 50%; width: 100%; height: 100%; object-fit: cover; transform: translate(-50%, -50%) scale(1.01); transition: transform 0.5s ease; display: block; }

.play-indicator { position: absolute; top: 50%; left: 50%; z-index: 10; width: 50px; height: 50px; border-radius: 50%; background: rgba(0, 0, 0, 0.6); color: var(--color-white); display: flex; align-items: center; justify-content: center; transform: translate(-50%, -50%) scale(0.9); opacity: 0; transition: var(--transition-base); }
.media-container:not(.playing):hover .play-indicator { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.media-container.playing .play-indicator { opacity: 0; }

.photo-slides { position: absolute; inset: 0; }
.photo-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s ease; z-index: 1; }
.photo-slide.active { opacity: 1; z-index: 1; }

.photo-indicators { position: absolute; bottom: 38px; left: 50%; transform: translateX(-50%); z-index: 10; display: flex; gap: 5px; padding: 4px 8px; background: rgba(0, 0, 0, 0.1); border-radius: 4px; }
.photo-dot { width: 14px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.7); cursor: pointer; transition: all 0.3s ease; }
.photo-dot.active { width: 20px; background: var(--color-pink-medium); }

.media-placeholder, .media-error { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.media-placeholder { background: rgba(241, 241, 241, 0.8); color: #666; font-size: 14px; z-index: 5; }
.media-error { background: var(--color-gray-medium); color: var(--color-gray-dark); font-size: 14px; display: none; z-index: 2; }

.pagination-item { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 25%; transition: var(--transition-fast); }
.pagination-item:not(.active) { color: var(--color-gray-text); border: 1px solid #E5E7EB; }
.pagination-item:not(.active):hover { background: var(--color-pink-light); color: var(--color-pink-dark); border-color: var(--color-pink-medium); }
.pagination-item.active { background: var(--color-pink-light); color: var(--color-pink-dark); border: 1px solid var(--color-pink-medium); font-weight: 500; }

.hidden { display: none !important; }

.skeleton-media { position: relative; width: 100%; padding-bottom: 166.67%; background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 8px; overflow: hidden; }
.skeleton-media-full { position: relative; width: 100%; height: 100%; min-height: 300px; background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 8px; overflow: hidden; }
.skeleton-text { height: 14px; background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 4px; }
.skeleton-text-md { height: 16px; }
.skeleton-text-sm { height: 12px; }
.skeleton-text-lg { height: 20px; }
.skeleton-shimmer { position: absolute; inset: 0; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.loading-spinner { width: 40px; height: 40px; border: 3px solid #f3f3f3; border-top: 3px solid var(--color-pink-dark); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.pagination-ellipsis { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; color: var(--color-gray-text); }

.audio-loading-tip { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); background: rgba(0, 0, 0, 0.7); color: white; padding: 2px 8px; border-radius: 4px; font-size: 12px; z-index: 20; }

.img-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.9); z-index: 9999; align-items: center; justify-content: center; }
.img-modal.show { display: flex; }
.modal-img { max-width: 90%; max-height: 90%; object-fit: contain; border-radius: 8px; }
.close-btn { position: absolute; top: 20px; right: 30px; color: white; font-size: 30px; cursor: pointer; z-index: 10000; }

.avatar-swing { animation: swing 2s ease-in-out infinite; }
@keyframes swing { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }

@media (min-width: 768px) {
  .media-container.playing .media-video, .media-container.playing .photo-slide.active .photo-img { transform: translate(-50%, -50%) scale(1.1); }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .media-video_photo-img { object-fit: contain; }
  .content-height { height: 480px; }
}
@media (min-width: 1024px) {
  .media-video_photo-img { object-fit: contain; }
  .content-height { height: 768px; }
}
