.beat-detail-container {
    margin-top: 100px;
    max-width: 1082px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    font-family: 'IBM Plex Mono', monospace;
    margin-left: auto;
    margin-right: auto;
}

/* Left Column - Cover & Info */
.beat-cover-container {
    position: relative;
    border-radius: 8px;
    overflow: visible;
}

.beat-cover-container img {
    width: 100%;
    aspect-ratio: 1/1;
    height: auto;
    object-fit: cover;
    display: block;
    border: 1px solid #eee;
    border-radius: 8px;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1; /* Always visible on this page */
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.beat-cover-container:hover .play-overlay {
    opacity: 1;
}

.play-button {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.play-button .material-symbols-outlined {
    font-size: 48px;
}

.beat-meta {
    margin-top: 20px;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 8px;
}
.meta-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}
.meta-item:last-child { border-bottom: none; }
.meta-item span:first-child { color: #888; }
.meta-item span:last-child { font-weight: 500; }

/* Right Column - Details, Comments */
.beat-main-info h1 {
    font-size: 1.6em;
    margin: 0 0 6px 0;
    word-break: break-word;
}
.beat-main-info .artist {
    font-size: 1em;
    color: #888;
    margin-bottom: 16px;
}
.beat-main-info .artist a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}
.beat-main-info .artist a:hover { text-decoration: underline; }

.action-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    align-items: center;
}

/* Используем стили из common.css для .btn, .btn-buy, .btn-download, .icon-btn */
/* Специфичные переопределения для beat_detail если нужны */



.beat-description, .beat-tags {
    margin-bottom: 32px;
}
.beat-description h3, .beat-tags h3, .comments-section h3 {
    margin-bottom: 12px;
    font-size: 1.2em;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 8px;
}
.beat-description p {
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}
.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag-item {
    background: #f7f7f7;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #eee;
    font-size: 0.9em;
}

/* Comments Section */
.comments-section {
    margin-top: 40px;
}
.comment-form {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}
.comment-form .user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}
.comment-form-main {
    flex-grow: 1;
}
.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1em;
    resize: vertical;
    min-height: 50px;
    box-sizing: border-box;
}
.comment-form button {
    display: block;
    margin-left: auto;
    margin-top: 8px;
    padding: 8px 24px;
    border-radius: 8px;
    border: 1px solid #000;
    background: #000;
    color: #fff;
    cursor: pointer;
    font-size: 0.9em;
}

.comment-list .comment {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    word-break: break-word;
    overflow-wrap: break-word;
}
.comment-list .comment:last-child { border-bottom: none; }
.comment .user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}
.comment-body {
    flex-grow: 1;
    max-width: 520px;
    word-break: break-word;
    overflow-wrap: break-word;
}
.comment-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 4px;
}
.comment-header .username {
    font-weight: 500;
    text-decoration: none;
    color: #000;
}
.comment-header .timestamp {
    font-size: 0.8em;
    color: #888;
}
.comment-text {
    line-height: 1.5;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    white-space: pre-wrap;
    overflow: hidden;
}
.no-comments {
    padding: 20px;
    text-align: center;
    color: #888;
    background: #f9f9f9;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .beat-detail-container {
        grid-template-columns: 1fr;
    }
    .beat-cover-container img {
        height: auto;
    }
}

/* Player styles (copied from beat_list.html with modifications) */
.player-container {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 1072px; /* Match beat_list grid width */
    width: calc(100% - 30px);
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'IBM Plex Mono', monospace;
    transition: bottom 0.3s ease-out;
}

/* Close button for player */
.player-close {
    position: absolute;
    top: -34px;
    right: 6px;
    background: none;
    border: none;
    color: #000;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.player-close:hover {
    background-color: #f5f5f5;
}

.player-content {
    display: flex;
    align-items: center;
    width: 100%;
    cursor: pointer;
}

.player-beat-link {
    display: flex;
    align-items: center;
    flex-grow: 1;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.player-beat-link:hover {
    text-decoration: none;
    color: inherit;
}

.player-cover {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 15px;
    background-color: #f0f0f0;
}

.player-info {
    flex-grow: 1;
    margin-right: 20px;
}

.player-title {
    font-size: 1em;
    font-weight: 500;
    margin: 0;
    color: #000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-artist {
    font-size: 0.85em;
    color: #888;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 500px;
    flex-grow: 1;
    justify-content: flex-end;
}

.player-play-pause-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
}

.player-play-pause-button .material-symbols-outlined {
    font-size: 40px;
}

.current-time, .duration {
    font-size: 0.9em;
    color: #555;
    min-width: 40px;
    text-align: center;
}

.progress-bar {
    flex-grow: 1;
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 5px;
    outline: none;
    cursor: pointer;
    margin: 0 10px;
}

.progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #000;
    cursor: pointer;
    box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.4);
}

.progress-bar::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #000;
    cursor: pointer;
    box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.4);
}

.player-volume-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.player-volume-button:hover {
    background-color: #f5f5f5;
}

.player-volume-button .material-symbols-outlined {
    font-size: 24px;
    color: #000;
    line-height: 1;
}

.volume-bar {
    width: 80px;
    height: 6px;
    background: #000 !important;
    border-radius: 5px;
    outline: none;
    cursor: pointer;
    margin-left: 8px;
}
.volume-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #000 !important;
    cursor: pointer;
}
.volume-bar::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #000 !important;
    cursor: pointer;
}
.volume-bar::-ms-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #000 !important;
    cursor: pointer;
}
.volume-bar::-ms-fill-lower {
    background: #000 !important;
}
.volume-bar::-ms-fill-upper {
    background: #000 !important;
}

@media (max-width: 768px) {
    .player-container {
        padding: 8px 15px;
        bottom: 0;
    }

    .player-cover {
        width: 40px;
        height: 40px;
        margin-right: 10px;
    }

    .player-info {
        margin-right: 10px;
    }

    .player-title {
        font-size: 0.9em;
    }

    .player-artist {
        font-size: 0.8em;
    }

    .player-controls {
        gap: 10px;
        width: auto;
        max-width: none;
    }

    .player-play-pause-button .material-symbols-outlined {
        font-size: 32px;
    }

    .current-time, .duration {
        font-size: 0.8em;
    }

    .progress-bar {
        height: 4px;
    }

    .progress-bar::-webkit-slider-thumb,
    .progress-bar::-moz-range-thumb {
        width: 12px;
        height: 12px;
    }

    .player-volume-button .material-symbols-outlined {
        font-size: 20px;
    }

    .volume-bar {
        width: 60px;
        height: 4px;
    }

    .volume-bar::-webkit-slider-thumb,
    .volume-bar::-moz-range-thumb {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 500px) {
    .player-info {
        display: none;
    }
    .player-controls {
        width: 100%;
        justify-content: center;
    }
    .player-volume-button,
    .volume-bar {
        display: none;
    }
}

/* === BEAT DETAIL SPECIFIC OVERRIDES === */
/* Переопределяем стили из common.css специфично для beat_detail страницы */

/* Action buttons специфичные стили */
.beat-detail-container .action-buttons .btn {
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 6px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.1em;
    text-align: center;
    text-decoration: none;
    border: 1px solid #ddd;
    background: #fff;
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.beat-detail-container .btn-buy {
    background-color: #000 !important;
    color: #fff !important;
    width: 200px !important;
    height: 50px !important;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.1em;
    font-weight: 500;
    border: 1px solid #ddd;
    flex-shrink: 0;
}

.beat-detail-container .btn-buy:hover {
    background-color: #000;
    color: #fff;
}

.beat-detail-container .btn-favorite {
    width: 50px;
    height: 50px;
    padding: 0;
    background: #fff;
    border: 1px solid #ddd;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    flex-shrink: 0;
}

.beat-detail-container .btn-favorite.favorited {
    color: #e53935;
}

.beat-detail-container .btn-favorite:hover {
    background: #f5f5f5;
}

.beat-detail-container .btn-download {
    width: 50px;
    height: 50px;
    padding: 0;
    background: #fff;
    border: 1px solid #ddd;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.1em;
    flex-shrink: 0;
}

.beat-detail-container .btn-download:hover {
    background: #f5f5f5;
}

.beat-detail-container .btn-download .material-symbols-outlined {
    font-size: 24px;
}

.beat-detail-container .btn-download span:not(.material-symbols-outlined) {
    display: none;
}

/* Icon buttons для beat detail */
.beat-detail-container .icon-btn {
    width: 50px;
    height: 50px;
    padding: 0;
    background: #fff;
    border: 1px solid #ffffff;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0;
}

.beat-detail-container .icon-btn:hover {
    background: #f5f5f5;
}

.beat-detail-container .icon-btn .material-symbols-outlined {
    font-size: 24px;
}