body {
    margin: 0;
    font-family: 'Pretendard', sans-serif;
    background-color: #000;
}

.main-container {
    max-width: 1920px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    box-sizing: border-box;
}

/* 헤더 스타일링 */
.header {
    width: 100%;
    height: 90px;
    position: relative;
    background: black;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 53px;
    z-index: 1000;
    box-sizing: border-box;
}

.logo-container {
    width: 186px;
    height: 90px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo {
    width: 203.06px;
    height: 67.26px;
    margin-left: -17.06px;
    margin-top: 5px;
    max-width: 100%;
    height: auto;
}

.nav-menu {
    display: flex;
    gap: 50px;
    margin-left: 10px;
    flex: 1;
    justify-content:flex-start;
    max-width: 1300px;
    overflow: hidden;
}

.nav-item {
    text-decoration: none;
    color: #c7c7c7;
    font-size: 18px;
    font-weight: 400;
    line-height: 19.43px;
    text-align: center;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-item:hover {
    color: white;
}

.auth-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

.signup-btn {
    width: 83.95px;
    height: 35.09px;
    background: #fe153c;
    border: none;
    border-radius: 3px;
    color: white;
    font-size: 16.9px;
    font-weight: 400;
    line-height: 19.43px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.signup-btn:hover {
    background: #e01236;
}

.login-btn {
    width: 65.14px;
    height: 35.09px;
    background: #3b3b3b;
    border: none;
    border-radius: 3px;
    color: #d8d8d8;
    font-size: 16.9px;
    font-weight: 400;
    line-height: 19.43px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-btn:hover {
    background: #4b4b4b;
}

/* 햄버거 버튼 스타일 */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 3px;
    margin-left: 10px;
    position: relative;
    z-index: 999;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background: white;
    border-radius: 1px;
    transition: all 0.3s ease;
    display: block;
    box-sizing: border-box;
}

.hamburger-line:nth-child(1),
.hamburger-line:nth-child(2),
.hamburger-line:nth-child(3) {
    height: 2px;
    background: white;
}

/* 모바일 메뉴 오버레이 */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 모바일 메뉴 */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100%;
    background: #1a1a1a;
    z-index: 1999;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 20px;
    border-bottom: 1px solid #333;
}

.mobile-menu-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    transition: color 0.3s ease;
}

.mobile-menu-close:hover {
    color: #fe153c;
}

.mobile-menu-items {
    padding: 30px 0;
}

.mobile-nav-item {
    display: block;
    padding: 15px 30px;
    color: #c7c7c7;
    text-decoration: none;
    font-size: 18px;
    font-weight: 400;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-item:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
    padding-left: 40px;
}

.slider-container {
    position: relative;
    margin: 0px auto;
    max-width: 1820px;
    width: 100%;
    height: auto;
    min-height: 300px;
    overflow: hidden;
    border-radius: 20px;
}

.slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 20px;
}

.slide-logo {
    position: absolute;
    left: 2vw;
    bottom: 2vw;
    width: 33vw;
    max-width: 643px;
    height: 12vw;
    max-height: 240px;
}

.slide-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.indicators {
    position: absolute;
    bottom: 40px;
    right: 60px;
    display: flex;
    gap: 12px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    transition: background-color 0.3s;
}

.indicator.active {
    background-color: #ffffff;
}

.brand-section {
    padding: 3vw 0;
    width: 100%;
    max-width: 1820px;
    margin: 0 auto;
    overflow-x: auto;
    background-color: #000;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.brand-slider {
    display: flex;
    gap: 12px;
    width: max-content;
}

.brand-box {
    flex: 0 0 auto;
    width: 15vw;
    max-width: 290px;
    height: 5vw;
    max-height: 100px;
    background: linear-gradient(to bottom, #262626, #191919);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-box img {
    width: 10vw;
    max-width: 200px;
    height: 2.5vw;
    max-height: 50px;
    object-fit: contain;
}

.brand-slider:active {
    cursor: grabbing;
}

/* 스크롤바 숨기기 */
.brand-section::-webkit-scrollbar {
    display: none;
}

.brand-section {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* 카테고리 선택 섹션 */
.category-section {
    max-width: 1820px;
    margin: 0 auto;
    padding: 40px 50px;
}

.category-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.category-btn {
    padding: 8px 24px;
    background: #2a2a2a;
    border-radius: 25px;
    color: #c7c7c7;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Pretendard', sans-serif;
}

.category-btn:hover {
    color: #fe153c;
    border-color: #fe153c;
    color: white;
}

.category-btn.active {
    background: #fe153c;
    border-color: #fe153c;
    color: white;
}

/* 투표 랭킹 섹션 */
.voting-section {
    max-width: 1820px;
    margin: 0 auto;
    padding: 0 50px 80px;
}

.section-title {
    color: white;
    font-size: 24px;
    font-weight: 700;
    line-height: 26px;
    margin-bottom: 40px;
    text-align: center;
}

/* 1,2위 상단 섹션 */
.top-winners {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-bottom: 60px;
    align-items: center;
    position: relative;
}

.winner-card {
    position: relative;
    background: #1a1a1a;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 2px solid transparent;
    width: 350px;
    height: auto;
}

.winner-card.first-place {
    border-color: #fe153c;
    box-shadow: 0 0 40px rgba(254, 21, 60, 0.5);
}

.winner-card.second-place {
    border-color: #fe153c;
    box-shadow: 0 0 40px rgba(254, 21, 60, 0.5);
}

/* VS 디자인 */
.vs-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: #fe153c;
    border-radius: 50%;
    box-shadow: 0 0 40px rgba(254, 21, 60, 0.5);
}

.vs-text {
    color: white;
    font-size: 24px;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.winner-image {
    width: 100%;
    height: auto;
    aspect-ratio: 9/16;
    object-fit: cover;
}

.winner-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    text-align: center;
}

.winner-rank {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    z-index: 2;
}

.first-place .winner-rank {
    background: #fe153c;
    color: #ffffff;
}

.second-place .winner-rank {
    background: #fe153c;
    color: #ffffff;
}

.winner-name {
    color: white;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.winner-votes {
    color: #fe153c;
    font-size: 16px;
    font-weight: 500;
}

.vote-btn {
    width: 100%;
    height: 40px;
    background: #fe153c;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s ease;
    font-family: 'Pretendard', sans-serif;
}

.vote-btn:hover {
    background: #e01236;
}

/* 후보자 그리드 - PC형에서 5개씩 배치 */
.candidates-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.candidate-card {
    position: relative;
    background: #1a1a1a;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.candidate-card:hover {
    transform: translateY(-5px);
    border-color: #fe153c;
    box-shadow: 0 10px 30px rgba(254, 21, 60, 0.2);
}

.candidate-image {
    width: 100%;
    height: auto;
    aspect-ratio: 9/16;
    object-fit: cover;
}

.candidate-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(#00000000, #000000b6, #000000e7);
}

/* 프로필 라인 양쪽 끝 배치로 수정 */
.profile-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    color: white;
    font-size: 16px;
    font-weight: 500;
}

.profile-info {
    display: flex;
    align-items: center;
}

.profile-photo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.profile-name {
    color: white;
    font-weight: 600;
}

.profile-separator {
    margin: 0 8px;
    color: #ffffff;
}

/* 공유 버튼 스타일 */
.share-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    transition: all 0.3s ease;
}

.share-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    filter: brightness(0.7);
    transition: all 0.3s ease;
}

.share-btn:hover .share-icon {
    filter: brightness(1);
    transform: scale(1.1);
}

/* 공유 팝업 스타일 */
.share-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.share-popup {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 20px;
    padding: 30px;
    width: 320px;
    border: 1px solid #333;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.share-popup-overlay.active .share-popup {
    transform: scale(1);
}

.share-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.share-popup-title {
    color: white;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Pretendard', sans-serif;
}

.share-popup-close {
    background: transparent;
    border: none;
    color: #c7c7c7;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.share-popup-close:hover {
    color: #fe153c;
}

.share-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.share-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #c7c7c7;
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    font-weight: 500;
}

.share-option:hover {
    background: rgba(254, 21, 60, 0.1);
    border-color: rgba(254, 21, 60, 0.3);
    color: white;
    transform: translateY(-2px);
}

.share-option-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    object-fit: contain;
}

.share-option-text {
    flex: 1;
}

/* 투표 팝업 스타일 */
.vote-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vote-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.vote-popup {
    position: relative;
    background: #1a1a1a;
    border-radius: 20px;
    overflow: hidden;
    width: 400px;
    max-width: 90vw;
    transform: scale(0.8);
    transition: all 0.3s ease;
    border: 2px solid #3e3e3e;
}

.vote-popup-overlay.active .vote-popup {
    transform: scale(1);
}

.vote-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.vote-popup-close:hover {
    background: rgba(254, 21, 60, 0.8);
}

.vote-popup-video {
    width: 100%;
    height: 0;
    padding-bottom: 177.78%; /* 9:16 비율 */
    position: relative;
    background: #000;
}

.vote-popup-video img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vote-popup-info {
    padding: 20px;
    background: linear-gradient(#00000000, #000000b6, #000000e7);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.vote-popup .profile-line {
    margin-bottom: 15px;
    font-size: 16px;
}

.vote-popup .profile-photo {
    width: 35px;
    height: 35px;
}

.vote-popup .stats-line {
    margin-bottom: 20px;
    font-size: 16px;
}

.vote-popup .view-icon-img,
.vote-popup .heart-icon-img,
.vote-popup .comment-icon-img {
    width: 22px;
    height: 22px;
}

.vote-popup .action-buttons {
    gap: 12px;
}

.vote-popup .candidate-vote-btn,
.vote-popup .other-video-btn {
    height: 45px;
    font-size: 16px;
    font-weight: 600;
}

/* 두번째 줄: 뷰수 좋아요(하트) 댓글보기 한줄 배치 */
.stats-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    font-size: 14px;
    gap: 10px;
}

.view-stats, .heart-stats, .comment-view {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
}

.view-icon-img, .heart-icon-img, .comment-icon-img {
    width: 20px;
    height: 20px;
}

.view-icon {
    font-size: 14px;
    color: #ffffff;
}

.view-count, .heart-count {
    color: #ffffff;
    font-weight: 500;
}

/* 좋아요 버튼 스타일 */
.heart-stats {
    cursor: pointer;
}

.heart-icon-img {
    transition: all 0.2s ease;
}

.heart-stats.liked .heart-icon-img {
    transform: scale(1.1);
}

.heart-stats:hover .heart-icon-img {
    transform: scale(1.1);
}

.heart-btn {
    background: transparent;
    border: none;
    color: #fe153c;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s ease;
}

.heart-btn:hover {
    transform: scale(1.2);
}

.comment-view {
    color: #c7c7c7;
    cursor: pointer;
    transition: color 0.3s ease;
    justify-content: center;
}

.comment-view:hover {
    color: white;
}

/* 구분자 제거 - 더 이상 사용하지 않음 */
.stats-separator {
    display: none;
}

/* 세번째 줄: 투표하기 버튼 / 다른 영상보기 버튼 */
.action-buttons {
    display: flex;
    gap: 8px;
}

.candidate-vote-btn {
    flex: 1;
    height: 35px;
    background: #fe153c;
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Pretendard', sans-serif;
}

.candidate-vote-btn:hover {
    background: #e01236;
}

.other-video-btn {
    flex: 1;
    height: 35px;
    background: transparent;
    border: 1px solid #ffffff;
    border-radius: 10px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Pretendard', sans-serif;
}

.other-video-btn:hover {
    background: #c7c7c7;
    color: #000;
}

.candidate-rank {
    color: #888;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
}

.candidate-name {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.candidate-votes {
    color: #fe153c;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
}

/* 1400px 이하 - 5개씩 */
@media (max-width: 1400px) and (min-width: 1201px) {
    .nav-menu {
        gap: 35px;
        margin-left: 0;
        max-width: 700px;
    }
    .nav-item {
        font-size: 17px;
    }
    .section {
        padding: 60px 30px;
    }
    
    .candidates-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
    }
}

/* 1200px 이하 - 4개씩 */
@media (max-width: 1200px){
    .nav-menu {
        gap: 25px;
        margin-left: 0;
        max-width: 600px;
    }
    .nav-item {
        font-size: 16px;
    }

    .slider-container {
        height: 50vw;
    }
    .slide-logo {
        width: 40vw;
        height: 15vw;
    }
    .brand-box {
        width: 20vw;
        height: 7vw;
    }
    .section {
        padding: 60px 20px;
    }
    .candidates-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
    }
}


/* 1000px 이하 - 3개씩 */
@media (max-width: 1000px) {
    .header {
        padding: 0 30px;
        flex-wrap: wrap;
    }

    .logo-container {
        width: auto;
        min-width: 140px;
    }

    .logo {
        width: 160px;
        height: auto;
        margin-left: 0;
        margin-top: 0;
    }

    .nav-menu {
        display: none;
    }

    .auth-buttons {
        gap: 8px;
        flex-shrink: 0;
    }

    .signup-btn {
        width: 75px;
        height: 32px;
        font-size: 15px;
    }

    .login-btn {
        width: 60px;
        height: 32px;
        font-size: 15px;
    }

    .hamburger-btn {
        display: flex !important;
        width: 28px;
        height: 20px;
        margin-left: 10px;
    }

    .banner-section {
        height: 250px;
    }

    .banner-content {
        bottom: 30px;
        left: 30px;
    }

    .banner-title {
        font-size: 28px;
    }

    .banner-subtitle {
        font-size: 16px;
    }

    .category-section {
        padding: 30px 30px;
    }

    .voting-section {
        padding: 0 30px 60px;
    }



    .candidates-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

/* 768px 이하 - 2개씩 */
@media (max-width: 768px){
    .header {
        padding: 0 20px;
        height: 70px;
    }

    .logo {
        width: 140px;
    }

    .auth-buttons {
        gap: 6px;
    }

    .signup-btn {
        width: 65px;
        height: 30px;
        font-size: 13px;
    }

    .login-btn {
        width: 50px;
        height: 30px;
        font-size: 13px;
    }

    .nav-menu {
        display: none;
    }


    .hamburger-btn {
        display: flex !important;
        width: 25px;
        height: 18px;
        margin-left: 8px;
    }

    .banner-section {
        height: 200px;
    }

    .banner-content {
        bottom: 20px;
        left: 20px;
    }

    .banner-title {
        font-size: 24px;
    }

    .banner-subtitle {
        font-size: 14px;
    }

    .category-section {
        padding: 30px 30px;
    }

    .voting-section {
        padding: 0 30px 60px;
    }

    .top-winners {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

    .vs-container {
        position: static;
        transform: none;
        margin: -20px;
    }

    .winner-card.first-place,
    .winner-card.second-place {
        width: 300px;
        height: 100%;
    }

    .candidates-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

}

/* 480px 이하 - 1개씩 */
@media (max-width: 480px) {
    .header {
        padding: 0 10px;
        height: 70px;
    }

    .logo-container {
        width: auto;
        min-width: 100px;
    }

    .logo {
        width: 120px;
        height: auto;
        margin-left: 0;
        margin-top: 0;
    }
    
    .nav-menu {
        display: none;
    }

    .auth-buttons {
        gap: 5px;
    }

    .signup-btn {
        width: 60px;
        height: 28px;
        font-size: 12px;
    }

    .login-btn {
        width: 50px;
        height: 28px;
        font-size: 12px;
    }

    .hamburger-btn {
        width: 22px;
        height: 16px;
        margin-left: 5px;
    }

    .slider-container {
        height: 45vw;
        min-height: 180px;
    }
    
    .slide-logo {
        width: 50vw;
        height: 25vw;
    }


    .indicators {
        position: absolute;
        bottom: 20px;
        right: 30px;
        display: flex;
        gap: 8px;
    }

    .indicator {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.4);
        transition: background-color 0.3s;
    }


    .candidates-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 15px;
    }


}