	.main-content {
        min-height: calc(100vh - 170px); /* 화면이 클 때는 기존처럼 꽉 채움 */
        height: auto; /* 영상+채팅창 높이가 더 클 경우 자연스럽게 아래로 늘어나 풋터를 밀어냄 */
    }

    .ranking-panel {
        min-height: calc(100vh - 170px);
        height: 100%; /* 옆의 main-content가 늘어나면 동일한 높이로 맞춰지도록 설정 */
    }

    .ranking-item {
        height: 73px;
        display: flex;
        align-items: center;
    }

    .bj-thumb {
        width: 50px;
        height: 50px;
        border-radius: 6px;
        object-fit: cover;
        margin-right: 12px;
        border: 1px solid #333;
        background: #111;
        flex-shrink: 0;
    }

    .bj-info-box {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .bj-title {
        font-size: 12px;
        color: #d4d4d4;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 3px;
    }

    .bj-name {
        font-size: 13px;
        font-weight: bold;
        color: #fff;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #nav-arrow {
        transition: transform 0.3s ease;
    }

    .nav-open #nav-arrow {
        transform: rotate(180deg);
    }

    .chart-container {
        position: relative;
        width: 100%;
        aspect-ratio: 16 / 9;
        max-height: 520px;
        height: auto !important;
        min-height: 0 !important;
        background: #000;
    }

    #youtube-player {
        width: 100% !important;
        height: 100% !important;
    }

    #video-card {
        flex: 0 0 auto !important;
    }

    #chat-card {
        flex: 1 !important;
        min-height: 320px;
    }

    

	#tetris-box {
		flex: 1;
		min-height: 320px;
		display: none;
		align-items: center;
		justify-content: center;
		flex-direction: column;
		background: var(--bg-card);
		border-radius: 8px;
		overflow: hidden;
		margin-bottom: 0;
		padding: 10px;
	}

	#tetris {
		background: #000;
		border: 1px solid #333;
		display: block;
		margin: 0 auto;
	}

    @media (max-width: 1080px) {
        .container {
            align-items: stretch;
        }

        .main-content {
            display: flex !important;
            flex-direction: column !important;
            height: auto !important;
            min-height: 0 !important;
            gap: 12px !important;
        }

        #video-card {
            order: 1;
            flex: none !important;
            height: auto !important;
            min-height: 0 !important;
            margin-bottom: 0 !important;
        }

        .chart-container {
            max-height: none;
        }

        #chat-card {
            order: 2;
            flex: none !important;
            height: 380px !important;
            min-height: 380px !important;
            margin-bottom: 0 !important;
        }

        .ranking-panel {
            order: 3;
            width: 100% !important;
            height: auto !important;
            max-height: 550px !important;
            min-height: 0 !important;
            margin-bottom: 20px;
        }

        #chat-card[style*="display: none"] {
            display: none !important;
        }
		#tetris-box {
			display: none !important;
		}
    }

    @media (max-width: 768px) {
        #chat-card {
            height: 420px !important;
            min-height: 420px !important;
        }

        .bj-thumb {
            width: 52px;
            height: 52px;
        }

        .bj-name {
            font-size: 14px;
        }

        .bj-title {
            font-size: 12px;
        }

        .chart-header {
            flex-wrap: wrap;
            gap: 8px;
            padding-top: 10px !important;
            padding-bottom: 10px !important;
            height: auto !important;
        }

        .chart-title {
            width: 100%;
            margin-right: 0 !important;
        }
    }

    @media (max-width: 480px) {
        #chat-card {
            height: 460px !important;
            min-height: 460px !important;
        }

        .ranking-panel {
            max-height: 460px !important;
        }

        .ranking-header {
            font-size: 12px;
        }
    }