/*
================================================
AXION LIVE 통합 스타일시트 (live_style.css)
================================================
1.  Global & Root Variables (전역 스타일 및 변수)
2.  Common Components (헤더, 버튼 등 공통 요소)
3.  List Page Styles (live_list.php - 방송 목록)
4.  View Page Styles (view.php - 방송 시청)
5.  Chat Section Styles (채팅창)
6.  Modal Styles (모달창)
7.  Keyframe Animations (애니메이션)
================================================
*/

/* 1. Global & Root Variables
------------------------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700&display=swap');

:root {
    --background-color: #121212;
    --surface-color: #1e1e1e;
    --primary-text-color: #e0e0e0;
    --secondary-text-color: #a0a0a0;
    --accent-color: #CC232A;
    --error-color: #cf6679;
    --live-red-color: #e53935;
    --yellow-accent: #fdd835;
    --streamer-badge-color: #D81416;
    --donor-badge-color: #5795DC;
    --vip-badge-start: #EB1D1D;
    --vip-badge-end: #C1481B;
    --system-message-bg: rgba(117, 61, 123, 0.35);
    --gift-message-bg: rgba(204, 35, 42, 0.55);
}

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

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: var(--background-color);
    color: var(--primary-text-color);
    font-size: 14px;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* 2. Common Components
------------------------------------------------ */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    margin-bottom: 24px;
}

.logo a {
    font-size: 24px;
    font-weight: 700;
}

.search-bar {
    display: flex;
    width: 40%;
}

.search-bar input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #444;
    border-radius: 20px 0 0 20px;
    background-color: #222;
    color: #fff;
    font-size: 16px;
    outline: none;
}

.search-bar button {
    padding: 10px 15px;
    border: none;
    background-color: #333;
    color: #fff;
    cursor: pointer;
    border-radius: 0 20px 20px 0;
}

.user-actions button, .user-actions a {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
}

.login-btn {
    background-color: transparent;
    color: #fff;
}

.signup-btn {
    background-color: var(--accent-color);
    color: #000;
}

.live-badge {
    background-color: var(--live-red-color);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9em;
    line-height: 1;
}

.live-indicator {
    display: none; /* JS로 방송 시작 시 flex로 변경 */
    align-items: center;
    margin-right: 8px;
}

/* 3. List Page Styles (live_list.php)
------------------------------------------------ */
.featured-section {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.main-stream-player {
    flex-grow: 1;
    position: relative;
    aspect-ratio: 16 / 9;
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
}

.main-stream-player img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stream-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 50%);
}

.streamer-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.streamer-info .live-badge {
    font-size: 14px;
}

.streamer-id {
    font-size: 18px;
    font-weight: 500;
}

.volume-control {
    align-self: flex-start;
    cursor: pointer;
    font-size: 24px;
}

.next-streams-playlist {
    width: 320px;
    flex-shrink: 0;
}

.next-streams-playlist ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.next-streams-playlist li a {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #1f1f1f;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.next-streams-playlist li a:hover {
    background-color: #333;
}

.next-streams-playlist .thumb {
    width: 120px;
    height: 68px;
    object-fit: cover;
    border-radius: 4px;
}

.next-streams-playlist .info .title {
    font-weight: 500;
    margin-bottom: 4px;
}

.next-streams-playlist .info .viewers {
    font-size: 14px;
    color: var(--secondary-text-color);
}

.popular-section .section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.popular-section .section-header h2 {
    font-size: 22px;
}

.on-air {
    border: 1px solid #e91e63;
    color: #e91e63;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.stream-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.stream-card {
    background-color: #1f1f1f;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

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

.card-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9; /* 기본 가로 비율, live_list.php에서 세로로 덮어씀 */
}

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

.card-thumbnail .live-indicator {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--live-red-color);
    padding: 3px 7px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    display: block;
}

.card-info {
    display: flex;
    padding: 12px;
    gap: 12px;
    align-items: center;
}

.profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}

.stream-title {
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stream-description {
    font-size: 14px;
    color: var(--secondary-text-color);
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stream-tags {
    margin-top: 8px;
    display: flex;
    gap: 6px;
}

.tag {
    background-color: #333;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 10px;
}

/* 4. View Page Styles (view.php)
------------------------------------------------ */
.view-page-layout {
    display: flex;
    gap: 20px;
    height: calc(100vh - 120px); /* 헤더와 패딩을 제외한 전체 높이 */
}

.video-section-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.video-player {
    flex-grow: 1;
    background-color: #000;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
}

#remoteVideo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none; /* JS로 제어 */
}

#status-message {
    position: absolute;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.no-stream-id-container {
    width: 100%;
    height: calc(100vh - 120px);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
}

.stream-details {
    padding: 16px 24px;
    background-color: #1a1a1a;
    border-top: 1px solid #333;
}
.stream-details h1 {
    font-size: 1.4em;
    margin: 0 0 8px 0;
    color: var(--primary-text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.stream-meta {
    display: flex;
    align-items: center;
    font-size: 0.95em;
    color: var(--secondary-text-color);
}
#stream-duration {
    font-weight: 500;
}

/* 5. Chat Section Styles
------------------------------------------------ */
.chat-section {
    width: 350px;
    min-width: 300px;
    flex-shrink: 0;
    background-color: var(--surface-color);
    display: flex;
    flex-direction: column;
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
}

.chat-header {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #333;
    background-color: #2a2a2a;
    flex-shrink: 0;
}

.header-stat {
    display: flex;
    align-items: center;
    font-size: 1em;
    font-weight: 500;
}

.header-stat i {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    color: var(--secondary-text-color);
}

.header-stat span {
    color: var(--primary-text-color);
}

.chat-messages-wrapper {
    flex-grow: 1;
    position: relative;
    display: flex;
    overflow: hidden;
}

.chat-messages-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to bottom, var(--surface-color), transparent);
    z-index: 2;
    pointer-events: none;
}

.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column-reverse; /* 새 메시지가 아래에서 위로 쌓임 */
}

.chat-messages::-webkit-scrollbar { width: 8px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    background-clip: padding-box;
    border: 2px solid transparent;
}
.chat-messages::-webkit-scrollbar-thumb:hover { background-color: rgba(255, 255, 255, 0.4); }

.message {
    margin-bottom: 8px;
    line-height: 1.5;
    word-wrap: break-word;
    font-size: 0.95em;
}

.message-user {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 6px 10px;
    border-radius: 5px;
}

.message-system, .message-join, .message-follow, .message-like, .message-gift {
    text-align: center;
    background-color: var(--system-message-bg);
    padding: 6px 10px;
    border-radius: 12px;
    font-size: 0.9em;
    color: var(--secondary-text-color);
    align-self: center;
    max-width: 90%;
}

.message-gift {
    background-color: var(--gift-message-bg);
    color: var(--primary-text-color);
}

.message-gift strong {
    color: var(--yellow-accent);
}

.badge {
    display: inline-block;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
    color: #fff;
    margin-right: 4px;
    vertical-align: middle;
}
.badge-streamer { background-color: var(--streamer-badge-color); }
.badge-donor { background-color: var(--donor-badge-color); }
.badge-level { background: linear-gradient(to right, #444, #222); }
.badge-vip { background: linear-gradient(to right, var(--vip-badge-start), var(--vip-badge-end)); }

.username {
    font-weight: bold;
    cursor: pointer;
}
.username:hover { text-decoration: underline; }

.streamer-info-chat {
    padding: 8px 12px;
    font-size: 0.9em;
    color: var(--secondary-text-color);
    background-color: #2a2a2a;
    border-top: 1px solid #333;
    flex-shrink: 0;
}

.streamer-info-chat strong {
    color: var(--accent-color);
    font-weight: 600;
}

.chat-input-form {
    display: flex;
    padding: 10px;
    border-top: 1px solid #333;
    flex-shrink: 0;
}

.chat-input-form input {
    flex-grow: 1;
    background-color: #333;
    border: 1px solid #555;
    border-radius: 5px;
    color: var(--primary-text-color);
    padding: 10px;
    margin-right: 10px;
    outline: none;
}

.chat-input-form button {
    background-color: var(--accent-color);
    border: none;
    color: #000;
    padding: 0 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}
.chat-input-form button:hover { opacity: 0.9; }

/* 6. Modal Styles
------------------------------------------------ */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal-content {
    background-color: #2a2a2a;
    padding: 20px;
    border-radius: 8px;
    width: 300px;
    text-align: center;
}
.modal-content h3 { margin-top: 0; margin-bottom: 20px; }
.modal-content #modal-actions button {
    display: block;
    width: 100%;
}
.modal-content button {
    padding: 10px;
    margin-top: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
}
.modal-btn-action { background-color: var(--accent-color); color: black; }
.modal-btn-destructive { background-color: var(--error-color); color: white; }
.modal-btn-cancel { background-color: #555; color: white; }


/* 7. Keyframe Animations
------------------------------------------------ */
@keyframes pulsate-live {
    0% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(229, 57, 53, 0); }
    100% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0); }
}

.live-indicator .live-badge {
    animation: pulsate-live 2s infinite;
}

/* ================================
   네비게이션 메뉴
================================ */
.main-navigation {
    width: 100%;
    background-color: var(--surface-color);
    border-radius: 12px;
    padding: 0 20px;
    margin-bottom: 24px;
    border: 1px solid #2a2a2a;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto; /* 모바일에서 메뉴가 많아지면 스크롤 */
}

.main-navigation ul li a {
    display: block;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--secondary-text-color);
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    position: relative;
    white-space: nowrap; /* 메뉴 이름이 줄바꿈되지 않도록 */
}

.main-navigation ul li a:hover {
    color: var(--primary-text-color);
}

/* 현재 페이지(active) 메뉴 스타일 */
.main-navigation ul li.active a {
    color: var(--accent-color);
    font-weight: 700;
}

.main-navigation ul li.active a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15%;
    width: 70%;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

/* ================================
   검색 결과 페이지 (search.php) - 섹션 분리
================================ */

/* 결과 섹션 제목 */
.result-section-title {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #2a2a2a;
    display: flex;
    align-items: center;
    gap: 10px;
}
.result-section-title i {
    color: var(--accent-color);
}

/* 오프라인 채널 리스트 */
.channel-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.channel-list-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background-color: var(--surface-color);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease;
    animation: fadeIn 0.5s ease-out forwards;
    animation-delay: var(--delay);
}
.channel-list-item:hover {
    background-color: #2a2a2a;
}

.profile-img-small {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}
.profile-img-small img,
.profile-img-small .placeholder-small {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #555;
    color: #fff;
    text-align: center;
    font-size: 1.5rem;
    line-height: 50px;
}

.channel-nick {
    font-weight: 500;
    font-size: 1.1rem;
}

.follow-btn {
    margin-left: auto; /* 버튼을 오른쪽 끝으로 밀어냄 */
    background-color: var(--accent-color);
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
}
.follow-btn:hover {
    opacity: 0.8;
}

/* ================================
   채널 페이지 (channel.php)
================================ */

/* 채널 헤더 (배너) */
.channel-header {
    height: 250px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    margin-bottom: 20px;
    position: relative;
}
.header-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(18, 18, 18, 0.9) 0%, rgba(18, 18, 18, 0) 100%);
    box-sizing: border-box;
}
.profile-area {
    display: flex;
    align-items: flex-end;
    gap: 20px;
}
.profile-image img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #fff;
}
.profile-info h1 {
    margin: 0 0 5px 0;
    font-size: 2rem;
    color: #fff;
}
.follower-count {
    color: var(--secondary-text-color);
}
.profile-actions {
    margin-left: auto;
}
.follow-btn {
    background-color: var(--accent-color);
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
}
.follow-btn:hover {
    opacity: 0.8;
}

/* 채널 네비게이션 (탭) */
.channel-nav {
    display: flex;
    border-bottom: 1px solid #333;
    margin-bottom: 30px;
}
.nav-tab {
    padding: 15px 25px;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--secondary-text-color);
    text-decoration: none;
    position: relative;
    transition: color 0.2s ease;
}
.nav-tab:hover {
    color: #fff;
}
.nav-tab.active {
    color: var(--accent-color);
    font-weight: 700;
}
.nav-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent-color);
}

/* 탭 컨텐츠 */
.tab-pane {
    display: none;
}
.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s;
}

/* 다시보기(VOD) 그리드 */
.vod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.vod-card {
    background-color: var(--surface-color);
    border-radius: 8px;
    overflow: hidden;
}
.vod-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
}
.vod-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.vod-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background-color: rgba(0,0,0,0.8);
    color: #fff;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}
.vod-info {
    padding: 12px;
}
.vod-info h4 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    color: var(--primary-text-color);
}
.vod-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--secondary-text-color);
}

/* 정보(About) 탭 */
.about-content {
    display: flex;
    gap: 40px;
}
.streamer-bio { flex: 2; }
.streamer-links { flex: 1; }
.streamer-bio p { line-height: 1.8; white-space: pre-wrap; }
.streamer-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    text-decoration: none;
    color: var(--primary-text-color);
    border-radius: 8px;
    transition: background-color 0.2s ease;
}
.streamer-links a:hover {
    background-color: var(--surface-color);
}

/* ================================
   채널 페이지 - 프로필 이미지 대체 UI
================================ */
.profile-image-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #fff;
    background-color: #555;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
}


/* ================================
   랭킹 페이지 (ranking.php)
================================ */
.ranking-page-container {
    max-width: 800px;
    margin: 0 auto;
}

/* 기간 탭 메뉴 */
.ranking-tabs {
    display: flex;
    justify-content: center;
    background-color: var(--surface-color);
    border-radius: 12px;
    margin-bottom: 40px;
    padding: 5px;
}
.ranking-tabs a {
    flex: 1;
    padding: 12px 10px;
    text-align: center;
    text-decoration: none;
    color: var(--secondary-text-color);
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.ranking-tabs a:hover {
    background-color: #2a2a2a;
    color: #fff;
}
.ranking-tabs a.active {
    background-color: var(--accent-color);
    color: #000;
    box-shadow: 0 4px 15px rgba(187, 134, 252, 0.3);
}

/* Top 3 시상대 */
.podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 40px;
}

.podium-item {
    width: 200px;
    padding: 20px;
    background-color: var(--surface-color);
    border-radius: 12px;
    text-align: center;
    position: relative;
    border-top: 4px solid;
    /* ✨ [수정] 애니메이션 시작 상태 및 transition 설정 */
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.podium-rank {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #000;
}

.podium-profile {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #333;
    margin: 0 auto 15px auto; /* 중앙 정렬 */
}

.podium-item.rank-1 .podium-profile { 
    width: 120px; 
    height: 120px; 
}

.podium-profile-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #555;
    color: #fff;
    font-size: 4rem;
    font-weight: 700;
}
.podium-item.rank-1 .podium-profile-placeholder { font-size: 5rem; }

.podium-nick {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.podium-score {
    font-size: 1.1rem;
    color: var(--yellow-accent);
    font-weight: 500;
}
.podium-score i {
    color: var(--yellow-accent);
}

/* 1,2,3위별 스타일 */
.podium-item.rank-1 { order: 2; height: 280px; border-color: #FFD700; }
.podium-item.rank-2 { order: 1; height: 250px; border-color: #C0C0C0; }
.podium-item.rank-3 { order: 3; height: 250px; border-color: #CD7F32; }

.podium-item.rank-1 .podium-rank { background: #FFD700; }
.podium-item.rank-2 .podium-rank { background: #C0C0C0; }
.podium-item.rank-3 .podium-rank { background: #CD7F32; }


/* 4위 이하 리스트 */
.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ranking-list-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: var(--surface-color);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    /* ✨ [수정] 애니메이션 시작 상태 및 transition 설정 */
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out, background-color 0.2s ease;
}

.ranking-list-item:hover {
    background-color: #2a2a2a;
}

.rank-number {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-text-color);
    width: 40px;
    text-align: center;
}

.ranker-profile {
    /* ✨ [추가] 리스트 프로필 이미지가 담길 컨테이너 */
    width: 50px;
    height: 50px;
    margin: 0 15px;
}
.ranker-profile img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.ranker-profile-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #555;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.ranker-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ranker-nick {
    font-size: 1.1rem;
    font-weight: 500;
}

.ranker-score {
    margin-left: auto;
    font-size: 1rem;
    font-weight: 500;
    color: var(--secondary-text-color);
}
.ranker-score i {
    color: var(--yellow-accent);
}

/* LIVE 배지 */
.live-badge-ranking {
    display: inline-block;
    margin-top: 10px;
    background-color: var(--live-red-color);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    animation: pulsate-live 2s infinite;
    text-decoration: none;
}
.live-badge-ranking.small {
    padding: 3px 8px;
    font-size: 0.8rem;
    margin-top: 0;
}

/* ✨ [수정] 애니메이션을 실행시킬 클래스 */
.podium-item.visible,
.ranking-list-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ✨ [추가] LIVE 배지 애니메이션 */
@keyframes pulsate-live {
    0% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(229, 57, 53, 0); }
    100% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0); }
}