/* Beatmap Page - Exact Dimensions */

.beatmap-page {
    background-color: #0f0f0f;
    min-height: 100vh;
}

/* Banner Section */
.banner-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    background-color: #000;
    position: relative;
}

.beatmap-banner {
    width: 1162px;
    height: 215px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.banner-overlay {
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-content {
    text-align: center;
    color: white;
}

.map-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.diff-selector-inline {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.diff-pill {
    width: 32px;
    height: 32px;
    border-radius: 16px;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    text-decoration: none;
    transition: all 0.2s;
}

.diff-pill:hover,
.diff-pill.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Container */
.beatmap-page .container {
    max-width: 933px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Info Box */
.info-box {
    width: 933px;
    height: 136px;
    background-color: #1a1a1a;
    border-radius: 4px;
    padding: 14px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.info-grid {
    display: grid;
    grid-template-columns: 233.25px 233.25px 233.25px 233.25px;
    height: 108px;
}

.info-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 10px;
}

.info-row {
    display: flex;
    flex-direction: row;
    gap: 6px;
    align-items: baseline;
}

.info-row .label {
    font-size: 0.7rem;
    color: #888;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}

.info-row .value {
    font-size: 0.85rem;
    color: #fff;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
}

.star-value {
    color: #ff4444 !important;
    font-weight: 700;
}

.creator-link {
    color: #5d9afc;
    text-decoration: none;
}

.creator-link:hover {
    text-decoration: underline;
}

/* Buttons */
.buttons-column {
    justify-content: flex-start;
    gap: 8px;
    padding-left: 15px;
}

.btn-action {
    width: 174.76px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    gap: 6px;
    transition: opacity 0.2s;
    text-align: center;
}

.btn-action:hover {
    opacity: 0.85;
    color: white;
}

.btn-pink {
    background-color: #ff66aa;
}

.btn-green {
    background-color: #4caf50;
}

.btn-purple {
    background-color: #9c27b0;
}

/* Tabs Section */
.tabs-section {
    width: 933px;
    background-color: #222;
    border-radius: 4px 4px 0 0;
    padding: 12px 20px;
    margin-bottom: 0;
    box-sizing: border-box;
}

.tab-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tab-group {
    display: flex;
    gap: 20px;
}

.tab {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s;
}

.tab:hover {
    color: #999;
}

.tab.active {
    color: #fff;
}

/* Leaderboard */
.leaderboard-section {
    width: 933px;
    background-color: #1a1a1a;
    border-radius: 0 0 4px 4px;
    overflow: hidden;
    box-sizing: border-box;
}

.lb-table {
    width: 100%;
    border-collapse: collapse;
    color: #ddd;
}

.lb-table thead {
    background-color: #111;
}

.lb-table th {
    padding: 12px 15px;
    text-align: left;
    color: #666;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
}

.lb-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #252525;
    font-size: 0.85rem;
}

.lb-table tbody tr:hover {
    background-color: #222;
}

.player-name {
    color: #fff;
    text-decoration: none;
    margin-left: 8px;
}

.player-name:hover {
    text-decoration: underline;
}

.grade {
    font-weight: 700;
    font-size: 1rem;
}

.grade-SS,
.grade-X {
    color: #ffd700;
}

.grade-S {
    color: #ffcc22;
}

.grade-A {
    color: #4caf50;
}

.grade-B {
    color: #2196f3;
}

.grade-C {
    color: #9c27b0;
}

.grade-D {
    color: #f44336;
}

.pp-value {
    color: #fff;
    font-weight: 600;
}

.replay-link {
    color: #5d9afc;
    text-decoration: none;
    font-size: 0.8rem;
}

.replay-link:hover {
    text-decoration: underline;
}

.empty-message {
    text-align: center;
    padding: 30px;
    color: #666;
}

/* Audio Player Bar */
.audio-player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, #1a1a1a, #222);
    height: 80px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
}

.audio-player-bar.active {
    transform: translateY(0);
}

.player-content {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 0 0 300px;
}

.player-cover {
    width: 56px;
    height: 56px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.player-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.player-title {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
}

.player-subtitle {
    color: #888;
    font-size: 0.75rem;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    max-width: 700px;
}

.player-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.1s, opacity 0.2s;
}

.player-btn:hover {
    transform: scale(1.05);
}

.player-btn:active {
    transform: scale(0.95);
}

.player-btn i {
    color: #111;
    font-size: 1rem;
}

.player-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.time-current,
.time-total {
    color: #999;
    font-size: 0.75rem;
    min-width: 40px;
}

.progress-slider,
.volume-slider {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: #444;
    outline: none;
    border-radius: 2px;
    cursor: pointer;
}

.progress-slider::-webkit-slider-thumb,
.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: white;
    cursor: pointer;
    border-radius: 50%;
    transition: transform 0.1s;
}

.progress-slider::-webkit-slider-thumb:hover,
.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.progress-slider::-moz-range-thumb,
.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: white;
    cursor: pointer;
    border-radius: 50%;
    border: none;
}

.player-volume {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 200px;
}

.player-volume i {
    color: #999;
    font-size: 1rem;
}

.volume-slider {
    width: 100px;
}

.player-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    transition: color 0.2s, background-color 0.2s;
}

.player-close:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.player-close i {
    font-size: 1rem;
}