/* 유튜브 구독자수 랭킹 페이지 유니크 전용 스타일 - 메인 콘텐츠 영역만 */

/* 유튜브 랭킹 유니크 전용 변수 설정 */
:root {
    --ytrank-unique-primary-color: #ff0000;
    --ytrank-unique-secondary-color: #282828;
    --ytrank-unique-accent-color: #ffd700;
    --ytrank-unique-text-primary: #ffffff;
    --ytrank-unique-text-secondary: #aaaaaa;
    --ytrank-unique-bg-primary: #0f0f0f;
    --ytrank-unique-bg-secondary: #1a1a1a;
    --ytrank-unique-bg-tertiary: #2a2a2a;
    --ytrank-unique-border-color: #333333;
    --ytrank-unique-shadow-color: rgba(0, 0, 0, 0.3);
    --ytrank-unique-gradient-primary: linear-gradient(135deg, #ff0000 0%, #cc0000 50%, #990000 100%);
    --ytrank-unique-gradient-gold: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
    --ytrank-unique-gradient-silver: linear-gradient(135deg, #c0c0c0 0%, #a8a8a8 100%);
    --ytrank-unique-gradient-bronze: linear-gradient(135deg, #cd7f32 0%, #b8860b 100%);
}

/* 유튜브 랭킹 페이지 메인 콘텐츠 영역만 배경 적용 */
body.ytrank-unique-page .main-content.ytrank-unique-main {
    background: var(--ytrank-unique-bg-primary) !important;
    color: var(--ytrank-unique-text-primary) !important;
}

/* 사이드바와 채팅 영역은 원래 스타일 유지 */
body.ytrank-unique-page .left-sidebar,
body.ytrank-unique-page .right-sidebar {
    background: inherit !important;
    color: inherit !important;
}

/* 최적화된 레이아웃 - 3단 구조 유지 */
body.ytrank-unique-page .portal-container {
    display: grid !important;
    grid-template-columns: 280px 1fr 300px !important;
    gap: 1rem !important;
    max-width: 1800px !important;
    margin: 1.5rem auto 0 auto !important;
    width: 100% !important;
    padding: 0 1.5rem !important;
}

/* 유튜브 랭킹 메인 콘텐츠 영역만 스타일링 */
body.ytrank-unique-page .main-content {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    background: var(--ytrank-unique-bg-primary) !important;
    color: var(--ytrank-unique-text-primary) !important;
    padding: 2rem !important;
    border-radius: 16px !important;
    margin: 0 !important;
}

/* 포털 타이틀 배너 */
.portal-title-banner {
    position: relative;
    margin-bottom: 0.5rem;
    border-radius: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 50%, #990000 100%);
    box-shadow: 0 10px 40px rgba(255, 0, 0, 0.3);
    border: none;
    backdrop-filter: blur(10px);
    padding: 2.5rem 0;
}

.portal-title-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: bannerShine 3s ease-in-out infinite;
    z-index: 1;
}

@keyframes bannerShine {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.banner-container {
    position: relative;
    z-index: 2;
    padding: 0 2rem;
    text-align: center;
}

.banner-content {
    max-width: 800px;
    margin: 0 auto;
}

.banner-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, #ffffff 0%, #ffcccc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.banner-subtitle {
    font-size: 1.1rem;
    color: #e0e0e0;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
}

.banner-description {
    font-size: 1rem;
    color: #cccccc;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 배너 호버 효과 */
.portal-title-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 50px rgba(255, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.portal-title-banner:hover::before {
    animation-duration: 1.5s;
}

/* 배너 아이콘 효과 - h1 스타일에서 완전히 분리 */
.banner-title::before {
    content: '▶';
    display: inline-block !important;
    margin-right: 0.5rem !important;
    font-size: 2.2rem !important;
    animation: iconBounce 2s ease-in-out infinite !important;
    background: #ffffff !important;
    border-radius: 8px !important;
    padding: 0.3rem 0.5rem !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
    color: #ff0000 !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    font-weight: bold !important;
    font-family: Arial, sans-serif !important;
    text-shadow: none !important;
    background-clip: initial !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    z-index: 10 !important;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* 배너 장식 요소 */
.portal-title-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: bannerGlow 4s ease-in-out infinite;
    z-index: 0;
}

@keyframes bannerGlow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

/* 유튜브 히어로 섹션 */
.ytrank-unique-hero-section {
    position: relative;
    margin-bottom: 2rem;
    border-radius: 16px;
    overflow: hidden;
    min-height: 280px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.ytrank-unique-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 50%, #990000 100%);
    z-index: 1;
}

.ytrank-unique-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 2;
}

.ytrank-unique-hero-content {
    position: relative;
    z-index: 3;
    padding: 3rem 2rem;
    text-align: center;
    color: white;
    max-width: 900px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.ytrank-unique-hero-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    position: relative;
}

.ytrank-unique-hero-icon {
    font-size: 3.5rem;
    color: #ff0000;
    animation: youtubeHeroIconPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(255, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.ytrank-unique-hero-icon:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 6px 12px rgba(255, 0, 0, 0.5));
}

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

.ytrank-unique-hero-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.ytrank-unique-hero-main {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #ffcccc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.ytrank-unique-hero-sub {
    font-size: 1.2rem;
    color: #cccccc;
    font-weight: 400;
}

.ytrank-unique-hero-description {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.ytrank-unique-hero-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.ytrank-unique-hero-search {
    width: 100%;
    max-width: 500px;
}

.ytrank-unique-hero-search-container {
    position: relative;
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 0.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ytrank-unique-hero-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff;
    font-size: 1.1rem;
    z-index: 1;
}

.ytrank-unique-hero-search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1rem 1rem 1rem 3rem;
    color: #ffffff;
    font-size: 1rem;
    outline: none;
}

.ytrank-unique-hero-search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.ytrank-unique-hero-search-btn {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    border: none;
    border-radius: 25px;
    padding: 1rem 2rem;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ytrank-unique-hero-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

.ytrank-unique-hero-actions {
    display: flex;
    gap: 1rem;
}

.ytrank-unique-hero-refresh,
.ytrank-unique-hero-filter {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 0.8rem 1.5rem;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
}

.ytrank-unique-hero-refresh:hover,
.ytrank-unique-hero-filter:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* 유튜브 대시보드 */
.ytrank-unique-dashboard {
    margin-bottom: 2rem;
}

.ytrank-unique-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.ytrank-unique-dashboard-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ytrank-unique-text-primary);
    margin: 0;
}

.ytrank-unique-dashboard-title i {
    color: var(--ytrank-unique-primary-color);
}

.ytrank-unique-dashboard-update {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--ytrank-unique-text-secondary);
    font-size: 0.9rem;
}

.ytrank-unique-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}

.ytrank-unique-dashboard-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 12px;
    padding: 1.2rem;
    border: 1px solid #333;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.ytrank-unique-dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--ytrank-unique-gradient-primary);
    border-radius: 16px 16px 0 0;
}

.ytrank-unique-dashboard-card.primary::before {
    background: var(--ytrank-unique-gradient-primary);
}

.ytrank-unique-dashboard-card.secondary::before {
    background: linear-gradient(135deg, #00ff00 0%, #00cc00 100%);
}

.ytrank-unique-dashboard-card.accent::before {
    background: var(--ytrank-unique-gradient-gold);
}

.ytrank-unique-dashboard-card.info::before {
    background: linear-gradient(135deg, #0066ff 0%, #0044cc 100%);
}

.ytrank-unique-dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.ytrank-unique-dashboard-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.ytrank-unique-dashboard-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #ffffff;
}

.ytrank-unique-dashboard-card.primary .ytrank-unique-dashboard-card-icon {
    background: var(--ytrank-unique-gradient-primary);
}

.ytrank-unique-dashboard-card.secondary .ytrank-unique-dashboard-card-icon {
    background: linear-gradient(135deg, #00ff00 0%, #00cc00 100%);
}

.ytrank-unique-dashboard-card.accent .ytrank-unique-dashboard-card-icon {
    background: var(--ytrank-unique-gradient-gold);
}

.ytrank-unique-dashboard-card.info .ytrank-unique-dashboard-card-icon {
    background: linear-gradient(135deg, #0066ff 0%, #0044cc 100%);
}

.ytrank-unique-dashboard-card-trend {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #00ff00;
}

.ytrank-unique-dashboard-card-content {
    text-align: left;
}

.ytrank-unique-dashboard-card-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--ytrank-unique-text-primary);
    margin-bottom: 0.5rem;
}

.ytrank-unique-dashboard-card-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ytrank-unique-text-primary);
    margin-bottom: 0.3rem;
}

.ytrank-unique-dashboard-card-description {
    font-size: 0.85rem;
    color: var(--ytrank-unique-text-secondary);
    line-height: 1.4;
}

/* 유튜브 랭킹 리스트 - 완전 유니크 클래스명 */
.ytrank-unique-unique-list-section {
    margin-bottom: 2rem !important;
}

.ytrank-unique-unique-list-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 1.5rem !important;
    padding: 0 0.5rem !important;
}

.ytrank-unique-unique-list-title {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: var(--ytrank-unique-text-primary) !important;
}

.ytrank-unique-unique-list-title-icon {
    font-size: 1.8rem !important;
    color: var(--ytrank-unique-primary-color) !important;
    filter: drop-shadow(0 2px 4px rgba(255, 0, 0, 0.3)) !important;
}

.ytrank-unique-unique-list-update {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    font-size: 0.9rem !important;
    color: var(--ytrank-unique-text-secondary) !important;
}

.ytrank-unique-unique-list-update-icon {
    font-size: 1rem !important;
    color: var(--ytrank-unique-accent-color) !important;
}

.ytrank-unique-unique-list {
    display: grid !important;
    gap: 1.5rem !important;
    padding: 0.5rem !important;
    background: rgba(0, 0, 0, 0.1) !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(5px) !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* 일반 항목 스타일 (4위 이하) - top-1, top-2, top-3가 아닌 경우에만 적용 */
.ytrank-unique-unique-item:not(.top-1):not(.top-2):not(.top-3) {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%) !important;
    border-radius: 16px !important;
    padding: 1rem 1.5rem !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    gap: 1.2rem !important;
    align-items: center !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
    position: relative !important;
    overflow: hidden !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.ytrank-unique-unique-item:not(.top-1):not(.top-2):not(.top-3)::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.05) 0%, rgba(255, 0, 0, 0.02) 100%) !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    z-index: 1 !important;
}

.ytrank-unique-unique-item:not(.top-1):not(.top-2):not(.top-3):hover::before {
    opacity: 1 !important;
}

.ytrank-unique-unique-item:not(.top-1):not(.top-2):not(.top-3):hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4) !important;
    border-color: rgba(255, 0, 0, 0.3) !important;
}

/* ===== 1, 2, 3위 전용 유니크 스타일 ===== */
/* 공통 스타일 */
.yt-top1-special-item,
.yt-top2-special-item,
.yt-top3-special-item {
    padding: 1rem 1.5rem !important;
    margin: 0 !important;
    margin-bottom: 1rem !important;
    min-height: 80px !important;
    max-height: none !important;
    height: auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 16px !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 1.2rem !important;
    align-items: center !important;
    justify-content: flex-start !important;
    position: relative !important;
    overflow: visible !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* 1위 전용 스타일 */
.yt-top1-special-item {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 165, 0, 0.1)) !important;
    border: 2px solid #FFD700 !important;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3) !important;
}

.yt-top1-special-item:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 30px rgba(255, 215, 0, 0.5) !important;
}

/* 2위 전용 스타일 */
.yt-top2-special-item {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.15), rgba(169, 169, 169, 0.1)) !important;
    border: 2px solid #C0C0C0 !important;
    box-shadow: 0 6px 20px rgba(192, 192, 192, 0.3) !important;
}

.yt-top2-special-item:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 30px rgba(192, 192, 192, 0.5) !important;
}

/* 3위 전용 스타일 */
.yt-top3-special-item {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.15), rgba(184, 134, 11, 0.1)) !important;
    border: 2px solid #CD7F32 !important;
    box-shadow: 0 6px 20px rgba(205, 127, 50, 0.3) !important;
}

.yt-top3-special-item:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 30px rgba(205, 127, 50, 0.5) !important;
}

.ytrank-unique-unique-rank-badge {
    width: 60px !important;
    height: 60px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.ytrank-unique-unique-rank-badge[data-rank="1"] {
    background: var(--ytrank-unique-gradient-gold) !important;
    border: 3px solid #ffd700 !important;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3) !important;
}

.ytrank-unique-unique-rank-badge[data-rank="1"]:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.5) !important;
}

.ytrank-unique-unique-rank-badge[data-rank="2"] {
    background: var(--ytrank-unique-gradient-silver) !important;
    border: 3px solid #c0c0c0 !important;
    box-shadow: 0 4px 20px rgba(192, 192, 192, 0.3) !important;
}

.ytrank-unique-unique-rank-badge[data-rank="2"]:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 6px 25px rgba(192, 192, 192, 0.5) !important;
}

.ytrank-unique-unique-rank-badge[data-rank="3"] {
    background: var(--ytrank-unique-gradient-bronze) !important;
    border: 3px solid #cd7f32 !important;
    box-shadow: 0 4px 20px rgba(205, 127, 50, 0.3) !important;
}

.ytrank-unique-unique-rank-badge[data-rank="3"]:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 6px 25px rgba(205, 127, 50, 0.5) !important;
}

.ytrank-unique-unique-rank-badge[data-rank]:not([data-rank="1"]):not([data-rank="2"]):not([data-rank="3"]) {
    background: linear-gradient(135deg, #444444 0%, #666666 100%) !important;
    border: 3px solid #555 !important;
}

.ytrank-unique-unique-rank-badge[data-rank]:not([data-rank="1"]):not([data-rank="2"]):not([data-rank="3"]):hover {
    transform: scale(1.05) !important;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4) !important;
}

/* 1, 2, 3위 배지 공통 스타일 */
.yt-top1-special-badge,
.yt-top2-special-badge,
.yt-top3-special-badge {
    width: 60px !important;
    height: 60px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    position: relative !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* 1위 배지 */
.yt-top1-special-badge {
    background: var(--ytrank-unique-gradient-gold) !important;
    border: 3px solid #ffd700 !important;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3) !important;
}

.yt-top1-special-badge:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.5) !important;
}

/* 2위 배지 */
.yt-top2-special-badge {
    background: var(--ytrank-unique-gradient-silver) !important;
    border: 3px solid #c0c0c0 !important;
    box-shadow: 0 4px 20px rgba(192, 192, 192, 0.3) !important;
}

.yt-top2-special-badge:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 6px 25px rgba(192, 192, 192, 0.5) !important;
}

/* 3위 배지 */
.yt-top3-special-badge {
    background: var(--ytrank-unique-gradient-bronze) !important;
    border: 3px solid #cd7f32 !important;
    box-shadow: 0 4px 20px rgba(205, 127, 50, 0.3) !important;
}

.yt-top3-special-badge:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 6px 25px rgba(205, 127, 50, 0.5) !important;
}

.ytrank-unique-unique-streamer-info {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    flex: 1 !important;
    min-width: 0 !important;
}

.ytrank-unique-unique-profile-section {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    flex: 1 !important;
    min-width: 0 !important;
}

.ytrank-unique-unique-profile-section .ytrank-unique-unique-profile-image {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    object-position: center !important;
    border: 3px solid #ff0000 !important;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    display: block !important;
    max-width: 60px !important;
    max-height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
    clip-path: circle(50%) !important;
    -webkit-clip-path: circle(50%) !important;
}

.ytrank-unique-unique-profile-image {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    object-position: center !important;
    border: 3px solid #ff0000 !important;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    display: block !important;
    max-width: 60px !important;
    max-height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
    clip-path: circle(50%) !important;
    -webkit-clip-path: circle(50%) !important;
}

.ytrank-unique-unique-profile-image::before {
    content: '' !important;
    position: absolute !important;
    top: -2px !important;
    left: -2px !important;
    right: -2px !important;
    bottom: -2px !important;
    background: linear-gradient(45deg, #ff0000, #ff6666, #ff0000) !important;
    border-radius: 50% !important;
    z-index: -1 !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

.ytrank-unique-unique-profile-image:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.5) !important;
}

.ytrank-unique-unique-profile-image:hover::before {
    opacity: 1 !important;
}

.ytrank-unique-unique-default-avatar {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    border: 3px solid #ff3333 !important;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
}

.ytrank-unique-unique-default-avatar::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%) !important;
    transform: translateX(-100%) !important;
    transition: transform 0.6s ease !important;
}

.ytrank-unique-unique-default-avatar:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.5) !important;
}

.ytrank-unique-unique-default-avatar:hover::before {
    transform: translateX(100%) !important;
}

.ytrank-unique-unique-channel-details {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
}

.ytrank-unique-unique-channel-name {
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    color: var(--ytrank-unique-text-primary) !important;
    margin-bottom: 0.3rem !important;
}

.ytrank-unique-channel-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.ytrank-unique-badge {
    background: var(--ytrank-unique-gradient-primary);
    color: #ffffff;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.ytrank-unique-badge.featured {
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
    color: #000000;
}

.ytrank-unique-badge.recommended {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: #ffffff;
}

.ytrank-unique-badge.partner {
    background: linear-gradient(135deg, #9c27b0 0%, #673ab7 100%);
    color: #ffffff;
    position: relative;
}

/* 다이아몬드 등급 */
.ytrank-unique-badge.partner-diamond {
    background: linear-gradient(135deg, #00bcd4 0%, #0097a7 100%);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 188, 212, 0.5);
}

/* 플래티넘 등급 */
.ytrank-unique-badge.partner-platinum {
    background: linear-gradient(135deg, #e0e0e0 0%, #bdbdbd 100%);
    color: #333333;
    box-shadow: 0 0 8px rgba(224, 224, 224, 0.5);
}

/* 골드 등급 */
.ytrank-unique-badge.partner-gold {
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
    color: #000000;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

/* 실버 등급 */
.ytrank-unique-badge.partner-silver {
    background: linear-gradient(135deg, #c0c0c0 0%, #a8a8a8 100%);
    color: #000000;
    box-shadow: 0 0 6px rgba(192, 192, 192, 0.5);
}

/* 브론즈 등급 */
.ytrank-unique-badge.partner-bronze {
    background: linear-gradient(135deg, #cd7f32 0%, #b8860b 100%);
    color: #ffffff;
    box-shadow: 0 0 6px rgba(205, 127, 50, 0.5);
}

.ytrank-unique-badge.partner .partner-level {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.1rem 0.4rem;
    margin-left: 0.3rem;
    font-size: 0.6rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 다이아몬드 등급의 등급 표시 */
.ytrank-unique-badge.partner-diamond .partner-level {
    background: rgba(0, 188, 212, 0.3);
    border: 1px solid rgba(0, 188, 212, 0.5);
    color: #ffffff;
}

/* 플래티넘 등급의 등급 표시 */
.ytrank-unique-badge.partner-platinum .partner-level {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: #333333;
}

/* 골드 등급의 등급 표시 */
.ytrank-unique-badge.partner-gold .partner-level {
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(0, 0, 0, 0.3);
    color: #000000;
}

/* 실버 등급의 등급 표시 */
.ytrank-unique-badge.partner-silver .partner-level {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(0, 0, 0, 0.3);
    color: #000000;
}

/* 브론즈 등급의 등급 표시 */
.ytrank-unique-badge.partner-bronze .partner-level {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
}

.ytrank-unique-badge.live {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    color: #ffffff;
    animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.ytrank-unique-channel-description {
    font-size: 0.9rem;
    color: var(--ytrank-unique-text-secondary);
    line-height: 1.4;
}

.ytrank-unique-stats-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.ytrank-unique-subscriber-stats {
    text-align: right;
}

.ytrank-unique-subscriber-count {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ytrank-unique-text-primary);
    margin-bottom: 0.2rem;
}

.ytrank-unique-subscriber-change {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.3rem;
    font-size: 0.9rem;
}

.ytrank-unique-change {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 600;
}

.ytrank-unique-change.positive {
    color: #00ff00;
}

.ytrank-unique-change.negative {
    color: #ff4444;
}

.ytrank-unique-change-label {
    font-size: 0.8rem;
    color: var(--ytrank-unique-text-secondary);
}

.ytrank-unique-live-stats {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    color: #ff4444;
    font-weight: 600;
}

.ytrank-unique-viewer-count {
    color: #ff4444;
}

.ytrank-unique-actions-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ytrank-unique-action-btn {
    background: var(--ytrank-unique-gradient-primary);
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.ytrank-unique-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

.ytrank-unique-no-results {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--ytrank-unique-text-secondary);
}

.ytrank-unique-no-results-icon {
    font-size: 4rem;
    color: var(--ytrank-unique-text-secondary);
    margin-bottom: 1rem;
}

.ytrank-unique-no-results h3 {
    font-size: 1.5rem;
    color: var(--ytrank-unique-text-primary);
    margin-bottom: 1rem;
}

.ytrank-unique-no-results p {
    font-size: 1rem;
    margin-bottom: 2rem;
}

.ytrank-unique-btn-clear-search {
    background: var(--ytrank-unique-gradient-primary);
    border: none;
    border-radius: 8px;
    padding: 0.8rem 2rem;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ytrank-unique-btn-clear-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
}

/* 반응형 디자인 */
@media (max-width: 1200px) {
    body.ytrank-unique-page .portal-container {
        max-width: 1200px !important;
        padding: 0 1.5rem !important;
    }
}

@media (max-width: 768px) {
    body.ytrank-unique-page .portal-container {
        padding: 0 1rem !important;
    }
    
    .ytrank-unique-hero-main {
        font-size: 2rem;
    }
    
    .ytrank-unique-hero-content {
        padding: 2rem 1rem;
        margin: 0 0.5rem;
    }
    
    .ytrank-unique-hero-icon {
        font-size: 2.5rem;
    }
    
    .ytrank-unique-dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .ytrank-unique-unique-item {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        gap: 1rem !important;
        padding: 1rem !important;
    }
    
    .ytrank-unique-unique-streamer-info {
        flex-direction: column !important;
        text-align: center !important;
    }
    
    .ytrank-unique-unique-stats-section {
        align-items: center !important;
    }
    
    .ytrank-unique-hero-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .ytrank-unique-hero-search {
        max-width: 100%;
    }
    
    .ytrank-unique-unique-list {
        padding: 0.25rem !important;
        gap: 1rem !important;
    }
    
    .ytrank-unique-unique-list-header {
        flex-direction: column !important;
        gap: 1rem !important;
        text-align: center !important;
    }
    
    .ytrank-unique-unique-profile-section {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    
    /* 포털 타이틀 배너 반응형 */
    .portal-title-banner {
        margin-bottom: 0.5rem;
        border-radius: 0;
        padding: 1.5rem 0;
    }
    
    .banner-container {
        padding: 0 1rem;
    }
    
    .banner-title {
        font-size: 2rem;
    }
    
    .banner-title::before {
        font-size: 1.8rem;
    }
    
    .banner-subtitle {
        font-size: 1rem;
    }
    
    .banner-description {
        font-size: 0.9rem;
    }
}

/* ytrank-unique-profile 스타일 */
.ytrank-unique-profile {
    flex-shrink: 0 !important;
}

.ytrank-unique-profile-image {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 3px solid #ff0000 !important;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3) !important;
}

/* 1, 2, 3위 프로필 이미지 크기 통일 */
.yt-top1-special-item .ytrank-unique-profile,
.yt-top2-special-item .ytrank-unique-profile,
.yt-top3-special-item .ytrank-unique-profile {
    flex-shrink: 0 !important;
    width: 60px !important;
    height: 60px !important;
}

.yt-top1-special-item .ytrank-unique-profile-image,
.yt-top2-special-item .ytrank-unique-profile-image,
.yt-top3-special-item .ytrank-unique-profile-image,
.yt-top1-special-item .ytrank-unique-default-avatar,
.yt-top2-special-item .ytrank-unique-default-avatar,
.yt-top3-special-item .ytrank-unique-default-avatar {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
    max-width: 60px !important;
    max-height: 60px !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
}

.ytrank-unique-default-avatar {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    border: 3px solid #ff3333 !important;
}

/* ytrank-unique-channel-info 스타일 */
.ytrank-unique-channel-info {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    align-items: flex-start !important;
    justify-content: center !important;
}

.ytrank-unique-channel-header {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    flex-wrap: wrap !important;
    width: 100% !important;
}

.ytrank-unique-channel-name {
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    margin: 0 !important;
    text-align: left !important;
}

.ytrank-unique-channel-meta {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    flex-wrap: wrap !important;
}

/* 1, 2, 3위 채널 정보 왼쪽 정렬 강제 */
.yt-top1-special-item .ytrank-unique-channel-info,
.yt-top2-special-item .ytrank-unique-channel-info,
.yt-top3-special-item .ytrank-unique-channel-info {
    align-items: flex-start !important;
    text-align: left !important;
}

.yt-top1-special-item .ytrank-unique-channel-name,
.yt-top2-special-item .ytrank-unique-channel-name,
.yt-top3-special-item .ytrank-unique-channel-name {
    text-align: left !important;
    align-self: flex-start !important;
}

.yt-top1-special-item .ytrank-unique-channel-header,
.yt-top2-special-item .ytrank-unique-channel-header,
.yt-top3-special-item .ytrank-unique-channel-header {
    justify-content: flex-start !important;
    align-items: center !important;
}

/* ytrank-unique-stats 스타일 */
.ytrank-unique-stats {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 0.5rem !important;
    flex-shrink: 0 !important;
}

/* ytrank-unique-subscriber-info 스타일 */
.ytrank-unique-subscriber-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 0.3rem !important;
    flex-shrink: 0 !important;
}

.ytrank-unique-subscriber-count {
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    color: #ff6b6b !important;
}

.ytrank-unique-subscriber-label {
    font-size: 0.85rem !important;
    color: #aaaaaa !important;
}

.ytrank-unique-subscriber-change {
    font-size: 0.9rem !important;
    color: #aaaaaa !important;
}

/* ytrank-unique-change-info 스타일 */
.ytrank-unique-change-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 0.3rem !important;
    flex-shrink: 0 !important;
}

.ytrank-unique-change-indicator {
    display: flex !important;
    align-items: center !important;
    gap: 0.3rem !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
}

.ytrank-unique-change-indicator.positive {
    color: #51cf66 !important;
}

.ytrank-unique-change-indicator.negative {
    color: #ff6b6b !important;
}

.ytrank-unique-change-number {
    font-weight: 600 !important;
}

.ytrank-unique-change-percent {
    font-size: 0.85rem !important;
    font-weight: 600 !important;
}

.ytrank-unique-change-percent.positive {
    color: #51cf66 !important;
}

.ytrank-unique-change-percent.negative {
    color: #ff6b6b !important;
}

/* ytrank-unique-actions 스타일 */
.ytrank-unique-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    flex-shrink: 0 !important;
}

.ytrank-unique-action-btn,
.ytrank-unique-channel-link {
    background: #ff0000 !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 0.6rem 1.2rem !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    transition: all 0.3s ease !important;
    font-size: 0.9rem !important;
    white-space: nowrap !important;
}

.ytrank-unique-action-btn:hover,
.ytrank-unique-channel-link:hover {
    background: #cc0000 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.5) !important;
}

.ytrank-unique-action-btn i,
.ytrank-unique-channel-link i {
    font-size: 1rem !important;
}

/* 접속자 통계 스타일 - index.css와 동일하게 작은 글자 크기 */
body.ytrank-unique-page .visitor-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

body.ytrank-unique-page .visitor-stat {
    text-align: center;
    padding: 1rem;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

body.ytrank-unique-page .visitor-stat:hover {
    background: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

body.ytrank-unique-page .visitor-number {
    font-size: 1.5rem !important;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

body.ytrank-unique-page .visitor-label {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

/* 반응형 디자인 */
@media (max-width: 992px) {
    body.ytrank-unique-page .visitor-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body.ytrank-unique-page .visitor-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    body.ytrank-unique-page .visitor-stats {
        grid-template-columns: 1fr;
    }
}