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

body {
    font-family: 'NanumSquareRound', sans-serif;
    line-height: 1.6;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    padding-bottom: 80px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    color: #333;
    margin-bottom: 20px;
}

.search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

#searchInput {
    padding: 10px;
    width: 300px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    font-family: 'NanumSquareRound', sans-serif;
}

#resetButton {
    order: 1;  /* 순서 지정 */
}

button {
    font-family: 'NanumSquareRound', sans-serif;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #45a049;
}

.categories {
    margin-bottom: 20px;
}

.main-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.sub-categories {
    display: none;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.category-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background-color: #808080;
    color: white;
}

.category-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.category-btn.active {
    background-color: #2196F3;
}

/* 메인 카테고리 버튼 색상 */
.category-btn.songlist { background-color: #2196F3; }
.category-btn.random { background-color: #9C27B0; }
.category-btn.links { background-color: #FF5722; }
.category-btn.lottery { background-color: #E91E63; }
.category-btn.youtube { background-color: #FF0000; }
.category-btn.calendar { background-color: #4CAF50; }
.category-btn.chatgpt { background-color: #10a37f; }
.category-btn.history { background-color: #795548; }

/* 서브 카테고리 버튼 색상 */
.category-btn.sub { background-color: #666; }
.category-btn.sub.active { background-color: #2196F3; }
.category-btn.sub.trot { background-color: #E91E63; }
.category-btn.sub.rock { background-color: #9C27B0; }
.category-btn.sub.ballad { background-color: #4CAF50; }
.category-btn.sub.kpop { background-color: #2196F3; }
.category-btn.sub.sooni { background-color: #FF9800; }

/* iframe 컨테이너 스타일 */
.iframe-container {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
    background: white;
}

.iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    overflow: hidden;
}

/* 링크 컨테이너 스타일 */
#links-container {
    display: none;
    margin: 20px 0;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    padding: 20px;
}

.logo-links a {
    transition: transform 0.3s ease;
}

.logo-links a:hover {
    transform: scale(1.1);
}

#songList {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;  /* 모든 방향의 간격을 20px로 통일 */
    padding: 20px;
    width: 100%;
}

.song-card {
    flex: 0 0 calc(12.5% - 13px);
    min-width: 140px;
    height: 60px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.song-artist {
    padding: 2px 8px;
    font-size: 0.9rem;
    font-weight: 800;
    border-radius: 8px 8px 0 0;
    color: white;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    background-color: #666;  /* 기본 회색 */
}

.song-artist:hover {
    opacity: 0.9;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    transform: translateY(-1px);
}

.song-artist::after {
    content: '🔍';
    position: absolute;
    right: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
    font-size: 0.8rem;
}

.song-artist:hover::after {
    opacity: 1;
}

.song-title {
    flex: 1;
    padding: 4px 8px;  /* 패딩 줄임 */
    font-size: 0.85rem;  /* 폰트 크기 줄임 */
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;  /* 높이 줄임 */
}

footer {
    text-align: center;
    padding: 20px;
    color: #666;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f5f5f5;
    z-index: 100;
    border-top: 1px solid #ddd;
}

#scrollTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    background-color: #333;
}

.song-title a {
    color: #333;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;  /* 최대 2줄까지 표시 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    width: 100%;
    line-height: 1.2;  /* 줄 간격 줄임 */
}

.song-title a:hover {
    color: #2196F3;
    text-decoration: underline;
}

.logo-container {
    text-align: center;
    margin: 20px 0 30px 0;
    padding: 10px;
}

.logo-container a {
    text-decoration: none;
}

.logo-image {
    max-width: 200px;  /* 로고 크기 조절 */
    height: auto;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.logo-image:hover {
    transform: scale(1.05);  /* 호버 시 살짝 커지는 효과 */
}

.lottery-link {
    text-align: center;
    margin: 20px 0;
}

.lottery-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #FF9800;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.lottery-button:hover {
    background-color: #F57C00;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* 가수별 배경색 */
.artist-baegna .song-artist {
    background-color: #FF69B4;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.1);
}

.artist-bigmama .song-artist {
    background-color: #4169E1;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.1);
}

.artist-seeya .song-artist {
    background-color: #20B2AA;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.1);
}

.artist-davichi .song-artist {
    background-color: #FF7F50;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.1);
}

.artist-noel .song-artist {
    background-color: #6B8E23;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.1);
}

.artist-mcthemax .song-artist {
    background-color: #E2F0CB;  /* 연한 민트 그린 */
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.1);
}

.artist-bmk .song-artist {
    background-color: #DCD3FF;  /* 연한 라벤더 */
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.1);
}

.artist-yada .song-artist {
    background-color: #FFE5D9;  /* 연한 살구색 */
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.1);
}

.artist-default .song-artist {
    background-color: #FFB5E8;  /* 파스텔 핑크 */
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.1);
}

.artist-simkyusun .song-artist {
    background-color: #FFD1DC;  /* 연한 분홍 */
}

.artist-sinyongje .song-artist {
    background-color: #98FB98;  /* 연한 초록 */
}

.artist-wsg .song-artist {
    background-color: #87CEFA;  /* 연한 하늘 */
}

.artist-ailee .song-artist {
    background-color: #BA55D3;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.1);
}

.artist-jeah .song-artist, .artist-leeyh .song-artist {
    background-color: #F0E68C;  /* 연한 노랑 */
}

.artist-zia .song-artist {
    background-color: #E6E6FA;  /* 라벤더 */
}

.artist-kimyj .song-artist {
    background-color: #FFA07A;  /* 연한 주황 */
}

.artist-bigbang .song-artist {
    background-color: #20B2AA;  /* 청록색 */
}

.artist-leesh .song-artist {
    background-color: #FFB6C1;  /* 연한 핑크 */
}

.artist-lyn .song-artist {
    background-color: #ADD8E6;  /* 연한 파랑 */
}

.artist-mamamoo .song-artist {
    background-color: #4B0082;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.1);
}

.artist-gilgu .song-artist {
    background-color: #90EE90;  /* 연한 녹색 */
}

.artist-taeyeon .song-artist {
    background-color: #9932CC;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.1);
}

.artist-vibe .song-artist {
    background-color: #008B8B;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.1);
}

.artist-leesc .song-artist {
    background-color: #DEB887;  /* 황토색 */
}

.artist-monday .song-artist {
    background-color: #2E8B57;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.1);
}

.artist-marktub .song-artist {
    background-color: #48D1CC;  /* 청록색 */
}

.artist-leeeum .song-artist {
    background-color: #FF69B4;  /* 진한 분홍 */
}

.artist-nct .song-artist {
    background-color: #32CD32;  /* 라임색 */
}

.artist-thelisten .song-artist {
    background-color: #BA55D3;  /* 중간 보라 */
}

.artist-parkjh .song-artist, .artist-sohyang .song-artist {
    background-color: #FF8C00;  /* 진한 주황 */
}

.artist-gummy .song-artist {
    background-color: #9370DB;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.1);
}

.artist-bubble .song-artist {
    background-color: #FF1493;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.1);
}

.artist-kimyj2 .song-artist {
    background-color: #CD853F;  /* 갈색 */
}

.artist-fly .song-artist {
    background-color: #6A5ACD;  /* 슬레이트블루 */
}

.artist-kimny .song-artist {
    background-color: #DB7093;  /* 팔레바이올렛 */
}

.artist-vos .song-artist {
    background-color: #8FBC8F;  /* 다크시그린 */
}

.artist-leeyj .song-artist {
    background-color: #DDA0DD;  /* 자주색 */
}

.artist-soon .song-artist {
    background-color: #F4A460;  /* 샌디브라운 */
}

.back-button {
    display: none;  /* 기본적으로는 숨김 */
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #666;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-button:hover {
    background-color: #555;
    transform: translateY(-2px);
}

.info-message {
    text-align: center;
    color: #666;
    margin: 15px 0;
    font-size: 0.9rem;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    font-weight: 500;
}

/* 긴 제목을 가진 카드는 2칸 차지 */
.song-card[data-long-title="true"] {
    flex: 0 0 calc(25% - 15px);  /* 4개씩 표시 */
    max-width: calc(25% - 15px);
}

.artist-row {
    margin-bottom: 2px;
}

.artist-row:last-child {
    margin-bottom: 0;
}

/* 랜덤 노래 카드 스타일 */
.random-song-container {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
}

.random-song-card {
    text-align: center;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 40px;
    margin: 20px auto;
}

.random-song-card .song-artist {
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 5px 5px 0 0;
    text-align: center;
}

.random-song-card .song-title {
    font-size: 2rem;
    font-weight: bold;
    padding: 20px;
    text-align: center;
}

.random-song-card .song-title a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
    display: block;
    width: 100%;
}

.random-song-card .song-title a:hover {
    color: #2196F3;
}

/* 추첨기 컨테이너 스타일 수정 */
.lottery-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 65%;      /* 80%에서 65%로 줄임 */
    height: 65vh;    /* 80vh에서 65vh로 줄임 */
    max-width: 680px; /* 800px에서 680px로 줄임 */
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
}

.lottery-header {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1002;
}

.lottery-close-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ff4444;
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.lottery-close-btn:hover {
    background-color: #ff0000;
    transform: rotate(90deg);
}

.lottery-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}

/* 불필요한 스타일 제거 */
.lottery-overlay,
.lottery-popup,
.close-lottery,
.close-button {  /* random.css의 닫기 버튼 스타일도 제거 */
    display: none;
}

/* 모바일 반응형 처리 */
@media (max-width: 1400px) {
    .song-card {
        flex: 0 0 calc(16.66% - 13px);  /* 6개씩 */
    }
}

@media (max-width: 1100px) {
    .song-card {
        flex: 0 0 calc(20% - 13px);  /* 5개씩 */
    }
}

@media (max-width: 900px) {
    .song-card {
        flex: 0 0 calc(25% - 13px);  /* 4개씩 */
    }
}

@media (max-width: 700px) {
    .song-card {
        flex: 0 0 calc(33.33% - 13px);  /* 3개씩 */
    }
}

@media (max-width: 500px) {
    .song-card {
        flex: 0 0 calc(50% - 13px);  /* 2개씩 */
    }
}

.category-btn.calendar {
    background-color: #9C27B0;  /* 보라색 계열 */
}

/* 달력 컨테이너 스타일 */
.calendar-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1000px;  /* 너비 유지 */
    height: 1200px;  /* 높이 증가 */
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    overflow: hidden;
}

.calendar-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
    transform: scale(0.85);  /* 축소 비율 조정 */
    transform-origin: top center;
}

.calendar-header {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1002;
}

.calendar-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ff4444;
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1010;  /* 버튼이 항상 최상단에 표시되도록 */
}

.calendar-close-btn:hover {
    background-color: #ff0000;
    transform: rotate(90deg);
}

.calendar-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}

.song-item {
    flex: 0 0 calc(25% - 15px);  /* 4개씩 표시되도록 25%로 설정 */
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px;
    transition: transform 0.2s;
    cursor: pointer;
}

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

.song-thumbnail {
    width: 200px;
    height: 150px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 10px;
}

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

.song-info {
    padding: 0 4px;
}

.song-artist {
    color: #ffffff;
    font-size: 0.9em;
    padding: 4px 12px;
    background-color: #2196F3;
    border-radius: 4px;
    display: inline-block;
}

/* 제거할 스타일 */
.song-title,
.song-category {
    display: none;
}

/* 이미지 크기 조정 관련 스타일 제거 */
.song-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.song-item img[src=""], 
.song-item img:not([src]) {
    content: url("http://baegna.com/img/sum.png");
}

/* 반응형 처리 수정 */
@media (max-width: 1200px) {
    .song-item {
        flex: 0 0 calc(33.33% - 14px); /* 3개씩 */
    }
}

@media (max-width: 768px) {
    .song-item {
        flex: 0 0 calc(50% - 10px); /* 2개씩 */
    }
}

@media (max-width: 480px) {
    .song-item {
        flex: 0 0 100%; /* 1개씩 */
    }
}

.filter-info {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    margin-bottom: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filter-text {
    font-size: 1.1em;
    color: #333;
}

.reset-btn {
    padding: 6px 12px;
    background-color: #666;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
}

.reset-btn:hover {
    background-color: #555;
}

/* 랜덤 선택된 노래를 위한 특별 스타일 */
.random-song-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.random-song-container .song-item {
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
}

.random-song-container .filter-info {
    text-align: center;
    margin-bottom: 30px;
}

.random-song-container .filter-text {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 10px;
}

.total-songs {
    order: 2;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background-color: #f0f0f0;
    border-radius: 5px;
    font-size: 0.95em;
    color: #333;
    margin: 0 10px;
    font-weight: 500;
}

.visitor-counter {
    order: 3;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background-color: #f0f0f0;
    border-radius: 5px;
    font-size: 0.95em;
    color: #333;
    margin: 0 0 0 10px;
    font-weight: 500;
}

#visitorCount {
    font-weight: bold;
    color: #2196F3;
    margin: 0 5px;
    font-size: 1.1em;
}

.category-btn.youtube {
    background-color: #FF0000;  /* YouTube 빨간색 */
}

.youtube-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    z-index: 1000;
}

.youtube-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.youtube-back-btn {
    position: fixed;
    top: 10px;
    left: 10px;
    padding: 8px 16px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    z-index: 1001;
}

/* 썸네일 오버레이 스타일 */
.thumbnail {
    width: 100%;
    position: relative;
    margin-bottom: 8px;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.thumbnail::after {
    content: attr(data-title);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: white;
    font-size: 1.2em;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 1;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #000;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

/* 호버 시 이미지 확대 효과 */
.thumbnail:hover img {
    transform: scale(1.05);
}

/* 컨텐츠 컨테이너 스타일 */
.content-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 유튜브 컨텐츠 스타일 */
.youtube-content {
    text-align: center;
}

.youtube-content h2 {
    font-size: 1.8em;
    color: #FF0000;
    margin-bottom: 20px;
}

.youtube-embed {
    position: relative;
    width: 100%;
    padding-top: 20px;
    margin-bottom: 20px;
}

/* 히스토리 컨텐츠 스타일 */
.history-content {
    text-align: center;
    padding: 40px 20px;
}

.history-content h2 {
    font-size: 1.8em;
    color: #795548;
    margin-bottom: 30px;
}

.cafe-board {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
}

.cafe-link {
    display: block;
    transition: transform 0.3s ease;
}

.cafe-link:hover {
    transform: scale(1.05);
}

.board-content {
    margin-top: 20px;
    font-size: 1.2em;
    color: #666;
}

.board-content p {
    margin: 10px 0;
}

/* 랜덤 노래 카드 스타일 수정 */
.random-song-container {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
}

.random-song-card {
    text-align: center;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 40px;
    margin: 20px auto;
}

.random-song-card .song-title {
    font-size: 2rem;
    font-weight: bold;
    margin: 20px 0;
}

.random-song-card .song-artist {
    font-size: 1.5rem;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

/* 유튜브 페이지 스타일 */
.youtube-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.back-btn {
    padding: 8px 16px;
    background-color: #f0f0f0;
    color: #333;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
}

.youtube-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    margin: 20px 0;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
}

.stat-label {
    font-size: 0.9em;
    color: #666;
}

.subscribe-btn {
    padding: 10px 20px;
    background-color: #FF0000;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.video-sections {
    padding: 20px;
}

.video-sections h3 {
    margin: 30px 0 20px;
    color: #333;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* 히스토리 페이지 스타일 */
.history-header {
    text-align: center;
    padding: 20px;
    margin-bottom: 30px;
}

.history-timeline {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.year-section {
    margin-bottom: 40px;
}

.year-header {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

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

.month-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

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

.content-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.content-section h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

/* YouTube 섹션 스타일 */
.youtube-section {
    padding: 20px;
}

.youtube-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
}

.stat-item {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.video-section h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
}

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

.video-item {
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}

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

.video-item img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 8px;
}

.video-info {
    padding: 10px;
}

.video-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.video-date {
    font-size: 12px;
    color: #666;
}

/* 히스토리 섹션 스타일 */
.history-section {
    padding: 20px;
}

.history-header {
    text-align: center;
    margin-bottom: 30px;
}

.cafe-logo {
    width: 200px;
    height: auto;
    margin-bottom: 15px;
}

.history-header p {
    font-size: 16px;
    color: #666;
}

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

.story-item {
    text-decoration: none;
    color: inherit;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.2s;
}

.story-item:hover {
    transform: translateY(-5px);
    background: #f0f0f0;
}

.story-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.story-desc {
    font-size: 14px;
    color: #666;
}

/* 비디오 팝업 스타일 */
.video-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.video-popup-container {
    position: relative;
    width: 80%;
    max-width: 1000px;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}

.video-popup-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    z-index: 1001;
}

.video-popup-content {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 비율 */
    height: 0;
    overflow: hidden;
}

.video-popup-content iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
} 