/* ==========================================
   KAPSUL - Design Exact Mockup V5
   ========================================== */

/* === Variables === */
:root {
    --yellow: #FFD700;
    --black: #000000;
    --white: #FFFFFF;
    --gray-light: #F5F5F5;
    --gray: #E5E5E5;
    --gray-dark: #666666;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);

    /* Dynamic layout vars (updated by JS) */
    --nav-menu-h: 72px;
    --player-zone-h: 56px;
    --overlay-gap: 8px;
    --right-panel-width: 480px;
}

/* === Reset === */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--white);
    color: var(--black);
    line-height: 1.4;
    overflow-x: hidden;
}

/* Hide scrollbar completely - even while scrolling */
* {
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE/Edge */
}
*::-webkit-scrollbar {
    display: none !important; /* Chrome/Safari */
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }

/* === App Container === */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 100%;
}

/* === Header === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: var(--black);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.header__logo svg {
    width: 36px;
    height: 36px;
}

.header__title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--white);
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.header__btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
}

.header__btn svg {
    width: 24px;
    height: 24px;
    color: var(--white);
}

.header__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--black);
}

.header__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* === Main Content === */
.main {
    left: 0;
    right: 0;
    position: fixed;
    top: 56px;
    bottom: calc(var(--nav-menu-h) + var(--player-zone-h));
    overflow-y: auto;
    background: var(--white);
}

/* === Feed === */
.feed {
    padding: 0 8px 8px 8px;
    display: flex;
    flex-direction: column-reverse;
    gap: 8px;
}

.feed .kapsul-card--compact:first-child {
    border-bottom: none;
}

/* === Kapsul Card Featured (première card) === */
.kapsul-card--featured {
    background: var(--yellow);
    border: 2px solid var(--black);
    border-radius: 16px;
    position: fixed;
    top: 64px;
    left: 12px;
    right: 12px;
    max-width: 480px;
    margin: 0 auto;
    z-index: 80;
    overflow: hidden;
    cursor: pointer;
    animation: slideIn 0.3s ease-out;
}

@media (min-width: 500px) {
    .kapsul-card--featured {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: calc(100% - 24px);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.kapsul-card--featured .kapsul-header {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    gap: 6px;
}

.kapsul-card--featured .kapsul-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--black);
    object-fit: cover;
    flex-shrink: 0;
}

.kapsul-card--featured .kapsul-bubble {
    width: 22px;
    height: 22px;
    background: var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -10px;
    margin-bottom: -14px;
    position: relative;
    z-index: 1;
}

.kapsul-card--featured .kapsul-bubble svg {
    width: 12px;
    height: 12px;
    color: var(--yellow);
}

.kapsul-card--featured .kapsul-username {
    font-size: 15px;
    font-weight: 700;
    flex: 1;
    cursor: pointer;
}

.kapsul-card--featured .kapsul-username:hover {
    text-decoration: underline;
}

.kapsul-card--featured .kapsul-share {
    width: 36px;
    height: 36px;
}

.kapsul-card--featured .kapsul-share svg {
    width: 24px;
    height: 24px;
}

.kapsul-card--featured .kapsul-body {
    display: flex;
    padding: 0 10px 10px;
    gap: 10px;
}

.kapsul-card--featured .kapsul-cover {
    width: 90px;
    height: 90px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--gray);
}

.kapsul-card--featured .kapsul-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.kapsul-card--featured .kapsul-text-box {
    background: var(--white);
    border: 2px solid var(--black);
    border-radius: 6px;
    padding: 8px;
    margin-bottom: 0;
}

.kapsul-card--featured .kapsul-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kapsul-card--featured .kapsul-hashtags {
    display: none; /* Masqué pour design compact */
}

.kapsul-card--featured .kapsul-hashtag {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--black);
}

.kapsul-card--featured .kapsul-footer {
    display: none; /* Masqué pour un design compact */
}

.kapsul-card--featured .kapsul-add-btn {
    width: 32px;
    height: 32px;
    border: 2px solid var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--yellow);
}

.kapsul-card--featured .kapsul-add-btn svg {
    width: 20px;
    height: 20px;
}

.kapsul-card--featured .kapsul-commenters {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 4px;
}

.kapsul-card--featured .kapsul-commenter-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--yellow);
    margin-right: -10px;
    object-fit: cover;
}

.kapsul-card--featured .kapsul-commenter-info {
    margin-left: 16px;
    font-size: 12px;
    color: var(--black);
}

.kapsul-card--featured .kapsul-commenter-name {
    font-weight: 600;
}

.kapsul-card--featured .kapsul-comment-badge {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    cursor: pointer;
}

.kapsul-card--featured .kapsul-comment-badge svg {
    width: 32px;
    height: 32px;
    fill: var(--black);
    stroke: var(--black);
}

.kapsul-card--featured .kapsul-comment-badge__count {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
}

/* === Kapsul Card Compact (cards suivantes) === */
.kapsul-card--compact {
    display: flex;
    align-items: center;
    padding: 12px;
    gap: 10px;
    border-bottom: 1px solid var(--gray);
}

.kapsul-card--compact .kapsul-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.kapsul-card--compact .kapsul-cover {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--gray);
}

.kapsul-card--compact .kapsul-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.kapsul-card--compact .kapsul-bubble-title {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 4px;
}

.kapsul-card--compact .kapsul-bubble {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.kapsul-card--compact .kapsul-bubble svg {
    width: 24px;
    height: 24px;
}

.kapsul-card--compact .kapsul-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kapsul-card--compact .kapsul-username {
    font-size: 13px;
    color: var(--gray-dark);
    cursor: pointer;
}

.kapsul-card--compact .kapsul-username:hover {
    text-decoration: underline;
}

/* Card en cours de lecture */
.kapsul-card--active,
.kapsul-card--playing {
    background: var(--yellow);
    border-color: var(--black);
}

.kapsul-card--compact .kapsul-comment-badge {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
}

.kapsul-card--compact .kapsul-comment-badge svg {
    width: 28px;
    height: 28px;
    fill: var(--black);
    stroke: var(--black);
}

.kapsul-card--compact .kapsul-comment-badge__count {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
}

.kapsul-card--compact .kapsul-comment-badge:hover {
    transform: scale(1.1);
    transition: transform 0.2s;
}

/* Player: badge used as toggle - must be more specific than .kapsul-card--compact */
.player-zone__track .kapsul-comment-badge--player {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    user-select: none;
}

.player-zone__track .kapsul-comment-badge--player svg {
    width: 28px;
    height: 28px;
    fill: var(--black);
    stroke: var(--black);
}

.player-zone__track .kapsul-comment-badge--player .kapsul-comment-badge__count {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    z-index: 2;
}

.player-zone__track .kapsul-comment-badge--player.active {
    outline: 2px solid rgba(0, 0, 0, 0.3);
    outline-offset: 2px;
    border-radius: 50%;
}

/* === Mini Player (Spotify-like) === */
.mini-player {
    position: fixed;
    bottom: var(--nav-menu-h);
    left: 0;
    right: 0;
    z-index: 90;
    background: var(--yellow);
    height: 68px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 12px;
}

.mini-player__track {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    cursor: pointer;
}

.mini-player__cover {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.mini-player__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mini-player__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-player__username {
    font-size: 12px;
    color: var(--gray-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-player__actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.mini-player__play {
    width: 40px;
    height: 40px;
    background: var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-player__play svg {
    width: 20px;
    height: 20px;
    color: var(--white);
}

.mini-player__btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-player__btn svg {
    width: 20px;
    height: 20px;
    color: var(--black);
}

.mini-player__link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-player__link svg {
    width: 20px;
    height: 20px;
    color: var(--black);
}

.mini-player__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--black);
    width: 0%;
    transition: width 0.1s linear;
}

/* === Expanded Player (Fullscreen) === */
.expanded-player {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    flex-direction: column;
    background: #000;
}

.expanded-player.active {
    display: flex;
}

.expanded-player__backdrop {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--yellow) 0%, rgba(255,215,0,0.8) 30%, rgba(0,0,0,0.95) 100%);
    transition: background 0.3s ease, box-shadow 0.1s ease;
}

.expanded-player__content {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    padding-top: 60px;
    overflow-y: auto;
}

.expanded-player__header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    z-index: 10;
}

.expanded-player__close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
}

.expanded-player__close svg {
    width: 24px;
    height: 24px;
    color: var(--white);
}

.expanded-player__logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.expanded-player__logo-icon {
    width: 28px;
    height: 28px;
}

.expanded-player__logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
}

.expanded-player__cover-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    max-height: 50%;
}

.expanded-player__cover {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 1;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.expanded-player__comment-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.15);
    border-radius: 20px;
    font-size: 13px;
    color: var(--white);
}

.expanded-player__comment-indicator svg {
    width: 16px;
    height: 16px;
}

.expanded-player__meta {
    text-align: center;
    padding: 16px 0;
}

.expanded-player__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.expanded-player__username {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    margin: 0;
}

.expanded-player__commenter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    margin: 4px 0 0;
}

.expanded-player__commenter svg {
    width: 14px;
    height: 14px;
}

.expanded-player__progress-wrapper {
    padding: 0 8px;
}

.expanded-player__progress {
    width: 100%;
    height: 6px;
    background: rgba(0,0,0,0.2);
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
}

.expanded-player__progress-bar {
    height: 100%;
    background: var(--black);
    width: 0%;
    transition: width 0.1s linear;
}

.expanded-player__times {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    margin-top: 6px;
}

.expanded-player__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 16px 0;
}

/* Volume Control */
.expanded-player__volume {
    display: flex;
    align-items: center;
    gap: 8px;
}

.expanded-player__volume-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
}

.expanded-player__volume-btn svg {
    width: 18px;
    height: 18px;
}

.expanded-player__volume-slider {
    width: 80px;
    height: 3px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    outline: none;
}

.expanded-player__volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: var(--white);
    border-radius: 50%;
    cursor: pointer;
}

.expanded-player__volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: var(--white);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.expanded-player__btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.expanded-player__btn svg {
    width: 28px;
    height: 28px;
    color: var(--white);
}

.expanded-player__btn--small {
    width: 40px;
    height: 40px;
    opacity: 0.7;
}

.expanded-player__btn--small svg {
    width: 20px;
    height: 20px;
}

.expanded-player__play {
    width: 64px;
    height: 64px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.expanded-player__play svg {
    width: 32px;
    height: 32px;
    color: var(--black);
}

.expanded-player__reactions {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 12px 0;
}

.expanded-player__reactions .reaction-bar__emoji {
    width: 36px;
    height: 36px;
}

.expanded-player__reactions .reaction-bar__count {
    font-size: 10px;
}

.expanded-player__actions {
    display: flex;
    justify-content: center;
    gap: 32px;
    padding: 12px 0 20px;
}

.expanded-player__action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: rgba(255,255,255,0.7);
}

.expanded-player__action svg {
    width: 24px;
    height: 24px;
    color: var(--white);
}

/* Expanded Player Sections */
.expanded-player__section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.expanded-player__comments-list {
    min-height: 150px;
    max-height: 200px;
    overflow-y: auto;
}

.expanded-player__more-list {
    min-height: 150px;
    max-height: 250px;
    overflow-y: auto;
}

/* Share Modal */
.expanded-share-modal {
    position: absolute;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
}

.expanded-share-modal__content {
    width: 90%;
    max-width: 320px;
    background: rgba(30,30,30,0.95);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}

.expanded-share-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.expanded-share-modal__header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    margin: 0;
}

.expanded-share-modal__close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.expanded-share-modal__close svg {
    width: 18px;
    height: 18px;
    color: var(--white);
}

.expanded-share-modal__body {
    padding: 20px;
}

.expanded-share-modal__buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.expanded-share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 8px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    transition: background 0.2s;
}

.expanded-share-btn:hover {
    background: rgba(255,255,255,0.1);
}

.expanded-share-btn__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.expanded-share-btn__icon svg {
    width: 22px;
    height: 22px;
}

.expanded-share-btn span {
    font-size: 11px;
    color: rgba(255,255,255,0.8);
}

.expanded-share-modal__link {
    display: flex;
    gap: 8px;
}

.expanded-share-modal__link input {
    flex: 1;
    padding: 12px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 8px;
    color: var(--white);
    font-size: 13px;
}

.expanded-share-modal__link button {
    width: 44px;
    height: 44px;
    background: var(--yellow);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.expanded-share-modal__link button svg {
    width: 20px;
    height: 20px;
    color: var(--black);
}

/* Comment Recording Modal */
.expanded-comment-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
}

.expanded-comment-modal__content {
    width: 90%;
    max-width: 320px;
    background: rgba(30,30,30,0.95);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}

.expanded-comment-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.expanded-comment-modal__header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    margin: 0;
}

.expanded-comment-modal__close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.expanded-comment-modal__close svg {
    width: 18px;
    height: 18px;
    color: var(--white);
}

.expanded-comment-modal__body {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.expanded-comment-modal__visualizer {
    width: 100%;
    height: 80px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    overflow: hidden;
}

.expanded-comment-modal__visualizer canvas {
    width: 100%;
    height: 100%;
}

.expanded-comment-modal__status {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

.expanded-comment-modal__timer {
    font-size: 32px;
    font-weight: 700;
    color: var(--white);
    font-variant-numeric: tabular-nums;
}

.expanded-comment-modal__record {
    width: 72px;
    height: 72px;
    background: #ff4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background 0.2s;
}

.expanded-comment-modal__record:hover {
    transform: scale(1.05);
}

.expanded-comment-modal__record.recording {
    background: #ff6666;
    animation: pulse-recording 1s ease-in-out infinite;
}

@keyframes pulse-recording {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.expanded-comment-modal__record svg {
    width: 32px;
    height: 32px;
    color: var(--white);
}

.expanded-comment-modal__preview {
    display: flex;
    align-items: center;
    gap: 12px;
}

.expanded-comment-modal__preview-btn {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.expanded-comment-modal__preview-btn svg {
    width: 24px;
    height: 24px;
    color: var(--white);
}

.expanded-comment-modal__footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.expanded-comment-modal__submit {
    width: 100%;
    padding: 14px;
    background: var(--yellow);
    color: var(--black);
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    transition: opacity 0.2s;
}

.expanded-comment-modal__submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.expanded-player__section-header {
    margin-bottom: 16px;
}

.expanded-player__section-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    margin: 0;
}

.expanded-player__section-header h3 span {
    font-weight: 400;
    opacity: 0.7;
}

.expanded-player__empty {
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    padding: 16px;
}

/* Comments in expanded player */
.expanded-player__comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.expanded-comment {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.expanded-comment:hover {
    background: rgba(255,255,255,0.15);
}

.expanded-comment.playing {
    background: rgba(255, 215, 0, 0.2);
    border-left: 3px solid var(--yellow);
}

.expanded-comment.playing .expanded-comment__play {
    background: var(--yellow);
}

.expanded-comment.playing .expanded-comment__play svg {
    color: var(--black);
}

.expanded-comment--reply {
    margin-left: 24px;
    padding: 10px;
    background: rgba(255,255,255,0.05);
}

.expanded-comment__username {
    cursor: pointer;
}

.expanded-comment__username:hover {
    text-decoration: underline;
}

.expanded-comment__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.expanded-comment__info {
    flex: 1;
    min-width: 0;
}

.expanded-comment__username {
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
}

.expanded-comment__date {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    margin-left: 8px;
}

.expanded-comment__duration {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    margin-top: 2px;
}

.expanded-comment__play {
    width: 36px;
    height: 36px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.expanded-comment__play svg {
    width: 16px;
    height: 16px;
    color: var(--black);
}

/* More kapsuls in expanded player */
.expanded-player__more-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.expanded-kapsul {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.expanded-kapsul:hover {
    background: rgba(255,255,255,0.15);
}

.expanded-kapsul__cover {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.expanded-kapsul__info {
    flex: 1;
    min-width: 0;
}

.expanded-kapsul__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.expanded-kapsul__meta {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.expanded-kapsul__play {
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.expanded-kapsul__play svg {
    width: 18px;
    height: 18px;
    color: var(--black);
}

/* Main full height (when player hidden) */
.main.main--full {
    bottom: calc(var(--nav-menu-h));
}

.reaction-bar__btn {
    position: relative;
    padding: 4px;
    transition: transform 0.2s ease;
}

.reaction-bar__btn:hover {
    transform: scale(1.1);
}

.reaction-bar__emoji {
    width: 44px;
    height: 44px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.reaction-bar__count {
    position: absolute;
    bottom: 0;
    right: -2px;
    font-size: 10px;
    font-weight: 700;
    color: var(--black);
    background: rgba(255, 255, 255, 0.9);
    padding: 1px 5px;
    border-radius: 8px;
    min-width: 16px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.reaction-bar__btn.active .reaction-bar__count {
    background: var(--black);
    color: var(--white);
}

/* === Bottom Nav === */
.nav-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-menu-h);
    background: var(--black);
    display: flex;
    justify-content: space-around;
    align-items: center;
}

/* === Player Comment Overlay (above player-zone) === */
.player-comment-overlay {
    position: fixed;
    inset: 0;
    z-index: 120; /* above player-zone (90) and nav-menu (100) */
    display: block;
}

.player-comment-overlay.hidden {
    display: none;
}

.player-comment-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

.player-comment-overlay__panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--black);
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    padding: 10px 12px 12px;
    padding-bottom: calc(var(--nav-menu-h) + 12px);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
    max-height: 70vh;
    overflow: auto;
}

.player-comment-overlay__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.player-comment-overlay__title {
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
}

.player-comment-overlay__close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.player-comment-overlay__close svg {
    width: 20px;
    height: 20px;
}

.player-comment-overlay #player-comment-recorder {
    padding: 10px 0 0;
    background: var(--black);
}

.player-comment-overlay .record-status {
    color: rgba(255,255,255,0.7);
}

.player-comment-overlay .record-timer {
    color: var(--white);
}

.player-comment-overlay .volume-feedback {
    color: rgba(255,255,255,0.7);
}

/* Make the submit button fit nicely inside the overlay */
.player-comment-overlay .publish-submit {
    margin-top: 10px;
    width: 100%;
    background: var(--gold);
    color: var(--black);
}

.player-comment-overlay .audio-visualizer {
    height: 44px;
    margin-bottom: 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
}

.player-comment-overlay .record-btn {
    width: 56px;
    height: 56px;
}

.player-comment-overlay .record-btn.recording {
    width: 44px;
    height: 44px;
}

.player-comment-overlay .audio-preview {
    padding: 10px 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
}

.nav-menu__item {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
}

.nav-menu__item svg {
    width: 28px;
    height: 28px;
}

.nav-menu__item.active {
    color: var(--white);
}

.nav-menu__item--publish .publish-bubble {
    width: 28px;
    height: 28px;
    position: relative;
}

.nav-menu__item--publish .publish-bubble svg {
    width: 28px;
    height: 28px;
    color: rgba(255,255,255,0.5);
}

.nav-menu__item--publish.active .publish-bubble svg {
    color: var(--white);
}

/* === Empty State === */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: var(--gray-dark);
}

.empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h2 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--black);
}

/* === Loader === */
.loader {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.loader__spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray);
    border-top-color: var(--yellow);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === Modal === */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

.modal__content {
    position: relative;
    width: 90%;
    max-width: 360px;
    background: var(--white);
    border-radius: 16px;
    padding: 24px;
}

.modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
}

.modal__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal__text {
    color: var(--gray-dark);
    margin-bottom: 20px;
}

.modal__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn--secondary {
    background: var(--gray);
    color: var(--black);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.btn--danger {
    background: #ef4444;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.btn--danger:hover {
    background: #dc2626;
}

.input {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--gray);
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 12px;
}

.input:focus {
    outline: none;
    border-color: var(--yellow);
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
}

.btn--primary {
    background: var(--yellow);
    color: var(--black);
}

.auth-message {
    margin-top: 12px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
}

.auth-message.success {
    background: #D1FAE5;
    color: #065F46;
}

.auth-message.error {
    background: #FEE2E2;
    color: #991B1B;
}

/* Auth code inputs */
.auth-code-inputs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}

.auth-code-digit {
    width: 44px;
    height: 56px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    border: 2px solid var(--gray-light);
    border-radius: 12px;
    background: var(--white);
    color: var(--black);
    transition: all 0.2s;
}

.auth-code-digit:focus {
    border-color: var(--yellow);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.2);
}

.auth-code-digit.filled {
    border-color: var(--yellow);
    background: rgba(255, 204, 0, 0.1);
}

.auth-back-btn {
    margin-top: 12px;
    font-size: 14px;
    color: var(--gray-dark);
}

/* Feed infinite scroll loader */
.feed-loader {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    padding: 24px;
}

.feed-loader__spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255, 204, 0, 0.2);
    border-top-color: var(--yellow);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.hidden {
    display: none !important;
}

/* === Publish Page === */
.publish-page {
    padding: 16px;
    padding-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 100%;
    box-sizing: border-box;
}

.publish-record {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 0;
}

.audio-visualizer {
    width: 100%;
    height: 60px;
    margin-bottom: 12px;
}

.audio-visualizer canvas {
    width: 100%;
    height: 100%;
}

.record-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #FF4444;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.record-btn:active {
    transform: scale(0.95);
}

.record-btn.recording {
    border-radius: 8px;
    width: 48px;
    height: 48px;
    animation: record-glow 1.5s infinite;
}

@keyframes record-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,68,68,0.6); }
    50% { box-shadow: 0 0 0 16px rgba(255,68,68,0); }
}

.record-status {
    margin-top: 10px;
    font-size: 13px;
    color: var(--gray-dark);
}

.record-timer {
    font-size: 24px;
    font-weight: 700;
    font-family: monospace;
    margin-top: 8px;
}

.volume-feedback {
    font-size: 12px;
    margin-top: 4px;
    padding: 4px 12px;
    border-radius: 12px;
}

.volume-feedback.volume--low {
    background: #fee2e2;
    color: #dc2626;
}

.volume-feedback.volume--high {
    background: #fef3c7;
    color: #d97706;
}

.volume-feedback.volume--ok {
    background: #d1fae5;
    color: #059669;
}

/* Audio Preview */
.audio-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(0,0,0,0.05);
    border-radius: 12px;
}

.preview-play,
.preview-redo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--black);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
}

.preview-play svg,
.preview-redo svg {
    width: 20px;
    height: 20px;
}

.preview-redo {
    background: rgba(0,0,0,0.1);
    color: var(--black);
}

.preview-wave {
    flex: 1;
    height: 4px;
    background: rgba(0,0,0,0.2);
    border-radius: 2px;
}

.publish-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.publish-form .input {
    border: none;
    background: rgba(0,0,0,0.05);
}

.publish-row {
    display: flex;
    gap: 10px;
}

.image-upload {
    width: 48px;
    height: 48px;
    background: rgba(0,0,0,0.05);
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}

.image-upload svg {
    width: 20px;
    height: 20px;
    color: var(--gray-dark);
}

.publish-row select {
    flex: 1;
}

.publish-tags {
    display: flex;
    gap: 8px;
}

.input--tag {
    flex: 1;
    text-align: center;
    padding: 8px 4px;
    font-size: 13px;
}

.publish-options {
    display: flex;
    justify-content: center;
    gap: 32px;
    padding: 8px 0;
}

.toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}


.toggle__label {
    font-size: 13px;
    font-weight: 500;
}

.toggle__label--off {
    text-decoration: line-through;
    opacity: 0.5;
}

.toggle__input {
    display: none;
}

.toggle__switch {
    width: 36px;
    height: 20px;
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
    position: relative;
    transition: background 0.2s;
}

.toggle__switch::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.2s;
}

.toggle__input:checked + .toggle__switch {
    background: var(--black);
}

.toggle__input:checked + .toggle__switch::after {
    transform: translateX(16px);
}

/* Submit button */
.publish-submit {
    width: 100%;
    background: var(--yellow);
    color: var(--black);
    padding: 14px 24px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    margin-top: auto;
}

.publish-submit .kapsul-bubble {
    width: 24px;
    height: 24px;
    background: var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.publish-submit .kapsul-bubble svg {
    width: 14px;
    height: 14px;
    color: var(--yellow);
}

.publish-submit:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* === Map Page === */
.map-page {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.map-fullscreen {
    width: 100%;
    height: 100%;
}

.map-tracking-btn {
    position: absolute;
    bottom: 20px;
    right: 16px;
    z-index: 1000;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--black);
    border: none;
    color: rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
}

.map-tracking-btn svg {
    width: 24px;
    height: 24px;
}

.map-tracking-btn:hover {
    background: var(--gray-dark);
}

.map-tracking-btn.active {
    background: var(--yellow);
    color: var(--black);
}

.map-tracking-btn.active svg {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.text-muted {
    color: var(--gray-dark);
    font-size: 14px;
}

/* === Profile Page === */

.profile-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--white);
    border-bottom: 1px solid var(--gray);
}

.profile-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--yellow);
    flex-shrink: 0;
}

.profile-info {
    flex: 1;
    min-width: 0;
}

.profile-username {
    font-size: 16px;
    font-weight: 700;
}

.profile-bio {
    color: var(--gray-dark);
    font-size: 12px;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-stats {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.profile-stats span {
    font-size: 11px;
    text-align: center;
}

.profile-stats strong {
    display: block;
    font-size: 14px;
}

.profile-follow-btn {
    width: auto;
    max-width: 100%;
    flex-shrink: 0;
    padding: 6px 10px;
    font-size: 11px;
    border-radius: 999px;
    border: none;
    background: var(--yellow);
    color: var(--black);
    font-weight: 600;
    cursor: pointer;
    line-height: 1;
}

.profile-follow-btn--active {
    background: rgba(0, 0, 0, 0.08);
    color: var(--black);
}

@media (max-width: 420px) {
    .profile-header {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .profile-info {
        min-width: 140px;
    }

    .profile-right {
        margin-left: auto;
    }

    .profile-stats {
        gap: 10px;
    }
}

.profile-page {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 0;
}

/* Dark Profile Page */
.profile-page--dark {
    background: var(--black);
    min-height: 100vh;
    padding-bottom: calc(var(--player-zone-h) + var(--nav-menu-h) + 20px);
}

/* Profile Hero Section */
.profile-hero {
    position: relative;
    padding: 40px 20px 30px;
    overflow: hidden;
}

.profile-hero__backdrop {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--yellow) 0%, rgba(255,215,0,0.5) 60%, rgba(0,0,0,0.98) 100%);
    transition: background 0.5s ease;
}

.profile-hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-hero__avatar-wrapper {
    position: relative;
    margin-bottom: 16px;
}

.profile-hero__avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,0.3);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.profile-hero__avatar-edit {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 36px;
    height: 36px;
    background: var(--yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.profile-hero__avatar-edit:hover {
    transform: scale(1.1);
}

.profile-hero__avatar-edit svg {
    width: 18px;
    height: 18px;
    color: var(--black);
}

.profile-hero__avatar-edit .spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Elegant Toast */
.elegant-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    padding: 14px 24px;
    border-radius: 50px;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.elegant-toast--visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.elegant-toast__message {
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    white-space: nowrap;
}

.elegant-toast--success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.9), rgba(22, 163, 74, 0.9));
}

.elegant-toast--error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(220, 38, 38, 0.9));
}

.elegant-toast--info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(37, 99, 235, 0.9));
}

.profile-hero__username {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-hero__username--editable {
    cursor: pointer;
}

.profile-hero__username .edit-icon {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.profile-hero__bio {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
    max-width: 300px;
}

.profile-hero__stats {
    display: flex;
    gap: 32px;
    margin-bottom: 20px;
}

.profile-hero__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-hero__stat strong {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
}

.profile-hero__stat span {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

.profile-hero__follow {
    padding: 12px 32px;
    background: var(--yellow);
    color: var(--black);
    font-size: 15px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.2s;
}

.profile-hero__follow:hover {
    transform: scale(1.02);
}

.profile-hero__follow--active {
    background: rgba(255,255,255,0.15);
    color: var(--white);
}

/* Dark Profile Tabs */
.profile-tabs--dark {
    display: flex;
    gap: 8px;
    padding: 0 16px 16px;
    background: var(--black);
}

.profile-tab--dark {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.6);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.profile-tab--dark svg {
    width: 16px;
    height: 16px;
}

.profile-tab--dark.profile-tab--active {
    background: var(--yellow);
    color: var(--black);
}

/* Profile Kapsuls Section */
.profile-kapsuls {
    padding: 24px 16px;
    background: var(--black);
}

.profile-kapsuls__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.profile-kapsuls__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.profile-kapsuls__empty {
    text-align: center;
    color: rgba(255,255,255,0.5);
    padding: 32px 16px;
}

/* Profile Kapsul Card */
.profile-kapsul-card {
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.profile-kapsul-card:hover {
    transform: scale(1.02);
    background: rgba(255,255,255,0.12);
}

.profile-kapsul-card--active {
    background: rgba(255,215,0,0.2);
    border: 2px solid var(--yellow);
}

.profile-kapsul-card__cover {
    position: relative;
    aspect-ratio: 1;
}

.profile-kapsul-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-kapsul-card__play {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    background: var(--yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.profile-kapsul-card:hover .profile-kapsul-card__play {
    opacity: 1;
}

.profile-kapsul-card__play svg {
    width: 16px;
    height: 16px;
    color: var(--black);
}

.profile-kapsul-card__private {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-kapsul-card__private svg {
    width: 12px;
    height: 12px;
    color: var(--white);
}

.profile-kapsul-card__info {
    padding: 10px;
}

.profile-kapsul-card__title {
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-kapsul-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: rgba(255,255,255,0.5);
}

.profile-kapsul-card__meta svg {
    width: 12px;
    height: 12px;
}

.profile-kapsul-card__actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.profile-kapsul-card__action {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 6px;
    color: var(--white);
    font-size: 11px;
    cursor: pointer;
    transition: background 0.2s;
}

.profile-kapsul-card__action:hover {
    background: rgba(255,255,255,0.2);
}

.profile-kapsul-card__action svg {
    width: 14px;
    height: 14px;
}

.profile-kapsul-card__action--delete {
    color: #ef4444;
}

.profile-kapsul-card__action--delete:hover {
    background: rgba(239, 68, 68, 0.2);
}

.profile-feed {
    flex: 1;
    padding: 0 8px 8px 8px;
    display: flex;
    flex-direction: column-reverse;
    gap: 8px;
    justify-content: flex-start;
}

.profile-feed .kapsul-card--compact:first-child {
    border-bottom: none;
}

.playlist-end {
    text-align: center;
    padding: 24px 16px;
    color: var(--gray-dark);
    font-size: 14px;
    font-weight: 500;
}

.profile-page .kapsul-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* === Kapsul Detail Page === */
.kapsul-detail {
    padding: 0;
}

.kapsul-detail .kapsul-card--featured {
    margin: 0;
    border-radius: 0;
    border: none;
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    border-bottom: 2px solid var(--black);
}

.kapsul-detail .feed {
    padding-top: 0;
}

.comments-section {
    padding: 16px;
}

.comments-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}

.comment {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray);
}

.comment--reply {
    margin-left: 40px;
}

.comment__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.comment__content {
    flex: 1;
}

.comment__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.comment__username {
    font-weight: 600;
    font-size: 14px;
}

.comment__date {
    font-size: 12px;
    color: var(--gray-dark);
}

.comment__play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--yellow);
    border-radius: 50%;
}

.comment__play svg {
    width: 16px;
    height: 16px;
}

.comment__reply {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comment__reply svg {
    width: 20px;
    height: 20px;
}

/* === Admin Page === */
.admin-page {
    padding: 16px;
}

.admin-section {
    margin-bottom: 32px;
}

.admin-section__title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--yellow);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 8px;
}

.stat-card {
    background: white;
    border: 2px solid var(--black);
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
}

.stat-card__value {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: var(--black);
    line-height: 1;
}

.stat-card__label {
    display: block;
    font-size: 10px;
    color: var(--gray-dark);
    text-transform: uppercase;
    margin-top: 4px;
}

.stat-card--warning {
    background: #FEF3C7;
    border-color: #D97706;
}

.stat-card--warning .stat-card__value {
    color: #D97706;
}

.settings-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.setting-item {
    background: white;
    border: 2px solid var(--black);
    border-radius: 12px;
    padding: 16px;
}

.setting-item__info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.setting-item__key {
    font-weight: 700;
    font-size: 14px;
    color: var(--black);
}

.setting-item__badge {
    font-size: 10px;
    background: var(--yellow);
    padding: 3px 8px;
    border-radius: 20px;
    font-weight: 600;
}

.setting-item__value {
    display: flex;
    align-items: center;
    gap: 10px;
}

.setting-item__value .input,
.setting-input {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid var(--gray);
    border-radius: 8px;
    font-size: 14px;
    background: var(--gray-light);
}

.setting-input:focus {
    border-color: var(--yellow);
    outline: none;
}

.btn--small {
    padding: 10px 16px;
    font-size: 16px;
    background: var(--yellow);
    border: 2px solid var(--black);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
}

.btn--small:hover {
    background: #e6c200;
}

.add-setting {
    margin-top: 20px;
    padding: 16px;
    background: var(--gray-light);
    border-radius: 12px;
}

.add-setting h3 {
    font-size: 16px;
    margin-bottom: 12px;
}

.add-setting__form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.add-setting__form .toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.agent-list {
    list-style: none;
    padding: 0;
}

.agent-list li {
    padding: 12px;
    background: var(--gray-light);
    border-radius: 8px;
    margin-bottom: 8px;
}

.gemini-tools {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border: 2px solid var(--black);
    border-radius: 16px;
    padding: 20px;
}

.gemini-tool h3 {
    font-size: 16px;
    margin-bottom: 12px;
}

.ai-response {
    background: white;
    border: 2px solid var(--black);
    border-radius: 12px;
    padding: 16px;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
}

/* Admin Tabs */
.admin-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.admin-tab {
    padding: 8px 12px;
    border: 2px solid var(--black);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
    text-align: center;
    min-width: 70px;
}

.admin-tab:hover {
    background: var(--gray-light);
}

.admin-tab.active {
    background: var(--yellow);
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

/* Agents Grid */
.agents-grid {
    display: grid;
    gap: 12px;
}

.agent-card {
    background: white;
    border: 2px solid var(--black);
    border-radius: 12px;
    padding: 16px;
}

.agent-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.agent-card__emoji {
    font-size: 28px;
}

.agent-card__name {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.agent-card__username {
    font-size: 13px;
    color: var(--gray-dark);
}

.agent-card__bio {
    font-size: 13px;
    color: var(--gray-dark);
    margin: 8px 0;
}

.agent-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.agent-card__meta {
    font-size: 12px;
    color: var(--gray-dark);
}

.agent-output {
    margin-top: 20px;
    padding: 16px;
    background: var(--gray-light);
    border-radius: 12px;
    min-height: 50px;
}

.agent-result {
    font-size: 14px;
}

.agent-result h4 {
    margin-bottom: 8px;
}

.agent-result ul {
    margin-top: 8px;
    padding-left: 20px;
}

.agent-result li {
    margin-bottom: 4px;
}

.text-error {
    color: #dc2626;
}

.add-setting__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
}

.btn--primary {
    background: var(--yellow);
    border: 2px solid var(--black);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.btn--primary:hover {
    background: #e6c200;
}

/* === Desktop Layout === */
@media (min-width: 768px) {
    .feed-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .profile-kapsuls__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* === Quota Modal === */
.modal--quota {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal--quota .modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.modal--quota .modal__content {
    position: relative;
    background: var(--white);
    border-radius: 20px;
    padding: 32px 24px;
    max-width: 320px;
    width: 90%;
    text-align: center;
    animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal--quota .modal__icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.modal--quota .modal__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal--quota .modal__message {
    font-size: 14px;
    color: var(--gray-dark);
    margin-bottom: 24px;
    line-height: 1.5;
}

.modal--quota .modal__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Quota Modal (dark theme) */
.quota-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.quota-modal.active {
    display: flex;
}

.quota-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.quota-modal__content {
    position: relative;
    background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 32px 24px;
    max-width: 340px;
    width: 90%;
    text-align: center;
    animation: quotaModalSlideUp 0.3s ease;
}

@keyframes quotaModalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.quota-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.2s;
}

.quota-modal__close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.quota-modal__close svg {
    width: 18px;
    height: 18px;
}

.quota-modal__icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.quota-modal__title {
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 8px;
}

.quota-modal__text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 8px;
}

.quota-modal__subtext {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 24px;
    line-height: 1.5;
}

.quota-modal__benefits {
    background: rgba(255, 204, 0, 0.1);
    border: 1px solid rgba(255, 204, 0, 0.2);
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 24px;
    text-align: left;
}

.quota-modal__benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--white);
    padding: 8px 0;
}

.quota-modal__benefit svg {
    width: 18px;
    height: 18px;
    color: var(--yellow);
}

.quota-modal__cta {
    width: 100%;
    padding: 16px 24px;
    background: var(--yellow);
    color: var(--black);
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 12px;
}

.quota-modal__cta:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(255, 204, 0, 0.3);
}

.quota-modal__later {
    width: 100%;
    padding: 12px;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}

.quota-modal__later:hover {
    color: rgba(255, 255, 255, 0.8);
}

.quota-modal__divider {
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    margin: 8px 0;
}

.quota-modal__login {
    width: 100%;
    padding: 14px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s;
}

.quota-modal__login:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.modal--quota .btn {
    padding: 14px 24px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.modal--quota .btn:active {
    transform: scale(0.98);
}

.modal--quota .btn--primary {
    background: var(--yellow);
    color: var(--black);
    border: none;
}

.modal--quota .btn--secondary {
    background: transparent;
    color: var(--gray-dark);
    border: 1px solid var(--gray);
}

/* === Quota Warning Banner === */
.quota-warning {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--black);
    color: var(--white);
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 14px;
    z-index: 9999;
    animation: slideDown 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.quota-warning a {
    color: var(--yellow);
    margin-left: 8px;
    font-weight: 600;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* === Kapsul Detail Page === */
.kapsul-page {
    padding-bottom: calc(var(--player-zone-h) + var(--nav-menu-h) + 20px);
    background: var(--black);
    min-height: 100vh;
}

/* Hero Section */
.kapsul-hero {
    position: relative;
    padding: 40px 20px 30px;
    overflow: hidden;
}

.kapsul-hero__backdrop {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--yellow) 0%, rgba(255,215,0,0.6) 40%, rgba(0,0,0,0.95) 100%);
    transition: background 0.5s ease;
}

.kapsul-hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.kapsul-hero__cover-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.kapsul-hero__cover {
    width: 200px;
    height: 200px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.kapsul-hero__play {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 56px;
    background: var(--yellow);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.kapsul-hero__play:hover {
    transform: translateX(-50%) scale(1.05);
}

.kapsul-hero__play:active {
    transform: translateX(-50%) scale(0.95);
}

.kapsul-hero__play svg {
    width: 24px;
    height: 24px;
    color: var(--black);
}

.kapsul-hero__title {
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    margin: 16px 0 12px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    max-width: 90%;
}

.kapsul-hero__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

.kapsul-hero__avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid rgba(255,255,255,0.3);
}

.kapsul-hero__username {
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    cursor: pointer;
}

.kapsul-hero__username:hover {
    text-decoration: underline;
}

.kapsul-hero__date {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}

.kapsul-hero__stats {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 20px;
}

.kapsul-hero__stats span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.kapsul-hero__stats svg {
    width: 16px;
    height: 16px;
}

.kapsul-hero__actions {
    display: flex;
    gap: 12px;
}

.kapsul-hero__action {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 50px;
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.kapsul-hero__action:hover {
    background: rgba(255,255,255,0.25);
}

.kapsul-hero__action svg {
    width: 18px;
    height: 18px;
}

.kapsul-hero__action--danger {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.kapsul-hero__action--danger:hover {
    background: rgba(239, 68, 68, 0.4);
}

/* Dark Comments Section */
.kapsul-comments--dark {
    background: var(--black);
    padding: 24px 16px;
}

.kapsul-comments--dark .kapsul-comments__header h2 {
    color: var(--white);
}

.kapsul-comments__empty {
    text-align: center;
    color: rgba(255,255,255,0.5);
    padding: 32px 16px;
}

.filter-btn--dark {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
}

.filter-btn--dark.active {
    background: var(--yellow);
    color: var(--black);
}

/* Dark Comment Card */
.kapsul-comments--dark .comment-card {
    background: rgba(255,255,255,0.08);
    border: none;
}

.kapsul-comments--dark .comment-card--reply {
    background: rgba(255,255,255,0.05);
    border: none;
}

.kapsul-comments--dark .comment-card__username {
    color: var(--white);
}

.kapsul-comments--dark .comment-card__date {
    color: rgba(255,255,255,0.5);
}

.kapsul-comments--dark .comment-card__duration {
    color: rgba(255,255,255,0.6);
}

.kapsul-comments--dark .comment-card__play {
    background: var(--white);
}

.kapsul-comments--dark .comment-card__play svg {
    color: var(--black);
}

.kapsul-comments--dark .comment-card__reply {
    color: rgba(255,255,255,0.6);
}

.kapsul-comments--dark .comment-card__reply:hover {
    color: var(--white);
}

/* Comments Section */
.kapsul-comments {
    padding: 16px;
    padding-top: 20px;
}

.kapsul-comments__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.kapsul-comments__header h2 {
    font-size: 18px;
    font-weight: 700;
}

.kapsul-comments__filters {
    display: flex;
    gap: 8px;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 50px;
    background: var(--gray-light);
    color: var(--gray-dark);
    transition: all 0.2s;
}

.filter-btn svg {
    width: 14px;
    height: 14px;
}

.filter-btn.active {
    background: var(--black);
    color: var(--white);
}

.kapsul-comments__add {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    margin-bottom: 12px;
    background: var(--yellow);
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    transition: transform 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.kapsul-comments__add:active {
    transform: scale(0.98);
}

.kapsul-comments__add svg {
    width: 14px;
    height: 14px;
}

.kapsul-comments__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Comment Card */
.comment-card {
    background: var(--gray-light);
    border-radius: 12px;
    padding: 12px;
}

.comment-card--reply {
    background: var(--white);
    border: 1px solid var(--gray);
    margin-left: 24px;
}

.comment-card__main {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.comment-card__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    flex-shrink: 0;
}

.comment-card--reply .comment-card__avatar {
    width: 32px;
    height: 32px;
}

.comment-card__content {
    flex: 1;
    min-width: 0;
}

.comment-card__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.comment-card__username {
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.comment-card__username:hover {
    text-decoration: underline;
}

.comment-card__date {
    font-size: 12px;
    color: var(--gray-dark);
}

.comment-card__audio {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-card__play {
    width: 36px;
    height: 36px;
    background: var(--yellow);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.comment-card__play:active {
    transform: scale(0.95);
}

.comment-card__play svg {
    width: 14px;
    height: 14px;
}

.comment-card__duration {
    font-size: 13px;
    color: var(--gray-dark);
    font-weight: 500;
}

.comment-card__reply {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px;
    color: var(--gray-dark);
    font-size: 13px;
    border-radius: 8px;
    transition: background 0.2s;
}

.comment-card__reply:hover {
    background: var(--gray);
}

.comment-card__reply svg {
    width: 18px;
    height: 18px;
}

.comment-card__reply span {
    font-weight: 600;
}

/* Username Modal */
.username-input-wrapper {
    display: flex;
    align-items: stretch;
    background: var(--gray-light);
    border-radius: 12px;
    overflow: hidden;
}

.username-prefix {
    display: flex;
    align-items: center;
    padding: 0 0 0 16px;
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-dark);
    flex-shrink: 0;
}

.username-input-wrapper .input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 16px 12px 4px;
    margin: 0;
}

.username-input-wrapper .input:focus {
    box-shadow: none;
}

.username-feedback {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
}

.username-feedback.hidden {
    display: none;
}

.username-feedback.success {
    background: #d4edda;
    color: #155724;
}

.username-feedback.error {
    background: #f8d7da;
    color: #721c24;
}

.username-feedback.loading {
    background: var(--gray-light);
    color: var(--gray-dark);
}

.username-hint {
    margin-top: 16px;
    font-size: 12px;
    color: var(--gray-dark);
    text-align: center;
}

/* Account info in username modal */
.account-info {
    background: var(--gray-light);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 13px;
}

.account-info p {
    margin: 4px 0;
    color: var(--gray-dark);
}

.account-info strong {
    color: var(--text);
}

/* Profile username editable */
.profile-username--editable {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s;
}

.profile-username--editable:hover {
    opacity: 0.7;
}

.profile-username--editable .edit-icon {
    width: 14px;
    height: 14px;
    opacity: 0.5;
}

.comment-card__replies {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Player title clickable */
#player-title {
    cursor: pointer;
}

#player-title:hover {
    text-decoration: underline;
}

/* Compact card elements */
.kapsul-card--compact .kapsul-title {
    cursor: default;
}

/* === Chrome iOS Permission Modal === */
.chrome-ios-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.chrome-ios-modal.visible {
    opacity: 1;
    visibility: visible;
}

.chrome-ios-modal__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.chrome-ios-modal__content {
    position: relative;
    background: var(--black);
    border: 2px solid var(--yellow);
    border-radius: 20px;
    max-width: 360px;
    width: 100%;
    padding: 28px 24px;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.chrome-ios-modal.visible .chrome-ios-modal__content {
    transform: scale(1) translateY(0);
}

.chrome-ios-modal__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 215, 0, 0.15);
    color: var(--yellow);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
}

.chrome-ios-modal__icon {
    width: 70px;
    height: 70px;
    background: var(--yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 36px;
}

.chrome-ios-modal__title {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    color: var(--white);
}

.chrome-ios-modal__subtitle {
    font-size: 14px;
    color: var(--gray);
    text-align: center;
    margin-bottom: 20px;
}

.chrome-ios-modal__steps {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.chrome-ios-modal__step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.chrome-ios-modal__step:last-child {
    margin-bottom: 0;
}

.chrome-ios-modal__step-num {
    width: 24px;
    height: 24px;
    background: var(--yellow);
    color: var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

.chrome-ios-modal__step div {
    flex: 1;
}

.chrome-ios-modal__step strong {
    display: block;
    color: var(--white);
    font-size: 13px;
    margin-bottom: 2px;
}

.chrome-ios-modal__step span {
    font-size: 11px;
    color: var(--gray);
}

.chrome-ios-modal__buttons {
    display: flex;
    gap: 10px;
}

.chrome-ios-modal__btn {
    flex: 1;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.chrome-ios-modal__btn--primary {
    background: var(--yellow);
    color: var(--black);
}

.chrome-ios-modal__btn--primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.chrome-ios-modal__btn--secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.chrome-ios-modal__btn--secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Status help button in publish page */
.status-help-btn {
    background: var(--yellow);
    color: var(--black);
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* === Notification Modal (Success/Error) === */
.notification-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.notification-modal.visible {
    opacity: 1;
    visibility: visible;
}

.notification-modal__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.notification-modal__content {
    position: relative;
    background: var(--black);
    border: 2px solid var(--yellow);
    border-radius: 20px;
    max-width: 320px;
    width: 100%;
    padding: 30px 24px;
    text-align: center;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.notification-modal.visible .notification-modal__content {
    transform: scale(1) translateY(0);
}

.notification-modal__content--error {
    border-color: #dc2626;
}

.notification-modal__icon {
    width: 60px;
    height: 60px;
    background: var(--yellow);
    color: var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
    font-weight: 700;
}

.notification-modal__content--error .notification-modal__icon {
    background: #dc2626;
    color: var(--white);
}

.notification-modal__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.notification-modal__message {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 20px;
}

.notification-modal__btn {
    background: var(--yellow);
    color: var(--black);
    border: none;
    padding: 12px 40px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.notification-modal__btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.notification-modal__content--error .notification-modal__btn {
    background: #dc2626;
    color: var(--white);
}

/* === Profile Tabs === */
.profile-tabs {
    display: flex;
    gap: 6px;
    padding: 8px 12px;
    background: var(--black);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 8px;
    color: var(--gray);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.profile-tab i {
    width: 14px;
    height: 14px;
}

.profile-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.profile-tab--active {
    background: var(--yellow);
    color: var(--black);
}

.profile-tab--active:hover {
    background: var(--yellow);
    color: var(--black);
}

/* === Profile Card === */
.profile-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    margin-bottom: 8px;
    transition: background 0.2s;
}

.profile-card:hover {
    background: rgba(255, 255, 255, 0.06);
}

.profile-card__left {
    position: relative;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    cursor: pointer;
}

.profile-card__cover {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.profile-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    background: var(--yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.profile-card__play i {
    width: 14px;
    height: 14px;
    color: var(--black);
    margin-left: 2px;
}

.profile-card__left:hover .profile-card__play {
    opacity: 1;
}

.profile-card__content {
    flex: 1;
    min-width: 0;
    cursor: pointer;
}

.profile-card__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-card__duration {
    font-size: 12px;
    color: var(--gray);
}

.profile-card__badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.profile-card__badge i {
    width: 12px;
    height: 12px;
    color: var(--gray);
}

.profile-card__badge--private {
    background: rgba(255, 215, 0, 0.15);
}

.profile-card__badge--private i {
    color: var(--yellow);
}

.profile-card__actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.profile-card__action {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 8px;
    color: var(--white);
    cursor: pointer;
    transition: all 0.2s;
}

.profile-card__action i {
    width: 16px;
    height: 16px;
}

.profile-card__action:hover {
    background: rgba(255, 255, 255, 0.15);
}

.profile-card__action--delete:hover {
    background: rgba(220, 38, 38, 0.2);
    color: #dc2626;
}

.profile-card__key {
    font-size: 11px;
    font-weight: 700;
    color: var(--yellow);
    letter-spacing: 0.5px;
}

/* === Compact Card Actions (Profile Own) === */
.compact-card-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    flex-shrink: 0;
}

.compact-card-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: rgba(255, 215, 0, 0.15);
    border-radius: 4px;
}

.compact-card-badge i {
    width: 11px;
    height: 11px;
    color: var(--yellow);
}

.compact-card-btn {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 6px 8px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
}

.compact-card-btn i {
    width: 13px;
    height: 13px;
}

.compact-card-btn--copy {
    background: var(--yellow);
    color: var(--black);
}

.compact-card-btn--copy:hover {
    filter: brightness(1.1);
}

.compact-card-btn--delete {
    background: rgba(220, 38, 38, 0.25);
    color: #ff6666;
}

.compact-card-btn--delete:hover {
    background: rgba(220, 38, 38, 0.5);
    color: #ff4444;
}

.compact-card-key {
    font-size: 9px;
    font-weight: 700;
    color: var(--black);
    letter-spacing: 0.3px;
}

/* === PWA Safe Area Insets === */
.app-container {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}

.header {
    padding-top: env(safe-area-inset-top);
}

.nav-menu {
    padding-bottom: env(safe-area-inset-bottom);
}

/* === Discover Page (Spotify Style) === */
.discover-page {
    padding: 0;
    min-height: 100%;
    background: linear-gradient(180deg, #1a1a1a 0%, var(--black) 300px);
}

.discover-filters {
    display: flex;
    gap: 8px;
    padding: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.discover-filters::-webkit-scrollbar {
    display: none;
}

.discover-filter {
    flex-shrink: 0;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 20px;
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.discover-filter:hover {
    background: rgba(255, 255, 255, 0.15);
}

.discover-filter--active {
    background: var(--yellow);
    color: var(--black);
}

.discover-section {
    padding: 20px 16px;
}

.discover-section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.discover-section__title {
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    margin: 0;
}

.discover-section__more {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    transition: color 0.2s;
}

.discover-section__more:hover {
    color: var(--white);
}

/* Horizontal Slider */
.discover-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 8px;
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
}

.discover-slider::-webkit-scrollbar {
    display: none;
}

/* Discover Card */
.discover-card {
    flex-shrink: 0;
    width: 150px;
    cursor: pointer;
    transition: transform 0.2s;
}

.discover-card:hover {
    transform: scale(1.03);
}

.discover-card__cover {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.05);
}

.discover-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.discover-card__play {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 44px;
    height: 44px;
    background: var(--yellow);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.2s;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.discover-card__play i {
    width: 20px;
    height: 20px;
    color: var(--black);
    margin-left: 2px;
}

.discover-card:hover .discover-card__play {
    opacity: 1;
    transform: translateY(0);
}

.discover-card__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.discover-card__artist {
    font-size: 12px;
    color: var(--gray);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Categories Grid */
.discover-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.discover-category {
    position: relative;
    height: 100px;
    border-radius: 8px;
    background: var(--cat-color, #1DB954);
    padding: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, filter 0.2s;
}

.discover-category:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

.discover-category__icon {
    position: absolute;
    bottom: -10px;
    right: -10px;
    font-size: 64px;
    opacity: 0.3;
    transform: rotate(15deg);
}

.discover-category__name {
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* === Dark Feed Page === */
.feed-page--dark {
    background: var(--black);
    min-height: 100vh;
    padding: 20px 16px;
    padding-bottom: calc(var(--player-zone-h) + var(--nav-menu-h) + 20px);
}

.feed-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* Feed Card */
.feed-card {
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: background 0.2s;
}

.feed-card:active {
    background: rgba(255,255,255,0.15);
}

.feed-card--active {
    background: rgba(255,215,0,0.12);
    box-shadow: inset 0 0 0 2px var(--yellow);
}

.feed-card__cover {
    position: relative;
    aspect-ratio: 1;
}

.feed-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feed-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feed-card__placeholder span {
    font-size: 20px;
    font-weight: 800;
    color: rgba(255,255,255,0.9);
    text-transform: lowercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.feed-card__play {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    background: var(--yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.feed-card__play svg {
    width: 16px;
    height: 16px;
    color: var(--black);
    margin-left: 2px;
}

.feed-card__play:active {
    transform: scale(0.95);
}

.feed-card__duration {
    position: absolute;
    bottom: 8px;
    left: 8px;
    padding: 4px 8px;
    background: rgba(0,0,0,0.7);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--white);
}

.feed-card__body {
    padding: 10px;
}

.feed-card__title {
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feed-card__user {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.feed-card__avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
}

.feed-card__username {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
}

.feed-card__username:hover {
    color: var(--white);
}

.feed-card__stats {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: rgba(255,255,255,0.4);
}

.feed-card__stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.feed-card__stats svg {
    width: 12px;
    height: 12px;
}

/* Responsive: 3 columns on larger screens */
@media (min-width: 540px) {
    .feed-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* === Dark Discover Page === */
.discover-page--dark {
    background: var(--black);
    min-height: 100vh;
    padding: 16px;
    padding-bottom: calc(var(--player-zone-h) + var(--nav-menu-h) + 20px);
}

.discover-page--dark .discover-filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.discover-page--dark .discover-filter {
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.discover-page--dark .discover-filter--active {
    background: var(--yellow);
    color: var(--black);
}

.discover-page--dark .discover-section {
    margin-bottom: 32px;
}

.discover-page--dark .discover-section__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.discover-slider {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
}

.discover-slider::-webkit-scrollbar {
    display: none;
}

.discover-card {
    flex-shrink: 0;
    width: 140px;
    scroll-snap-align: start;
    cursor: pointer;
}

.discover-card__cover {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px;
}

.discover-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.discover-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.discover-card__placeholder span {
    font-size: 16px;
    font-weight: 800;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.discover-card__play {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 32px;
    height: 32px;
    background: var(--yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.2s;
}

.discover-card:hover .discover-card__play,
.discover-card:active .discover-card__play {
    opacity: 1;
}

.discover-card__play svg {
    width: 14px;
    height: 14px;
    color: var(--black);
    margin-left: 2px;
}

.discover-card__title {
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.discover-card__artist {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    margin: 0;
}

.discover-empty {
    flex-shrink: 0;
    width: 100%;
    text-align: center;
    color: rgba(255,255,255,0.5);
    padding: 32px;
}

.discover-page--dark .discover-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.discover-page--dark .discover-category {
    position: relative;
    height: 80px;
    border-radius: 12px;
    background: var(--cat-color, #1DB954);
    padding: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}

.discover-page--dark .discover-category:active {
    transform: scale(0.98);
}

.discover-page--dark .discover-category__icon {
    position: absolute;
    bottom: -5px;
    right: 5px;
    font-size: 48px;
    opacity: 0.3;
}

.discover-page--dark .discover-category__name {
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
}

.empty-state--dark {
    background: var(--black);
    color: var(--white);
}

@media (min-width: 540px) {
    .discover-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .discover-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* === Dark Publish Page === */
.publish-page--dark {
    background: var(--black);
    min-height: 100vh;
    padding: 12px 16px;
    padding-bottom: calc(var(--nav-menu-h) + 20px);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.publish-record {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
}

.publish-visualizer {
    width: 100%;
    height: 60px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    overflow: hidden;
}

.publish-visualizer canvas {
    width: 100%;
    height: 100%;
}

.publish-record__status {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

.publish-record__timer {
    font-size: 36px;
    font-weight: 700;
    color: var(--white);
    font-variant-numeric: tabular-nums;
}

.publish-record__btn {
    width: 64px;
    height: 64px;
    background: #ff4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background 0.2s;
    flex-shrink: 0;
}

.publish-record__btn:hover {
    transform: scale(1.05);
}

.publish-record__btn.recording {
    background: #ff6666;
    animation: pulse-recording 1s ease-in-out infinite;
}

.publish-record__btn svg {
    width: 28px;
    height: 28px;
    color: var(--white);
}

/* Preview Section */
.publish-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
}

.publish-preview__btn {
    width: 48px;
    height: 48px;
    background: var(--yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.publish-preview__btn svg {
    width: 24px;
    height: 24px;
    color: var(--black);
}

.publish-preview__btn--redo {
    background: rgba(255,255,255,0.15);
}

.publish-preview__btn--redo svg {
    color: var(--white);
}

.publish-preview__wave {
    flex: 1;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
}

/* Form Dark */
.publish-form--dark {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: rgba(255,255,255,0.03);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.06);
}

.publish-field {
    position: relative;
}

.publish-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    color: var(--white);
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
}

.publish-input::placeholder {
    color: rgba(255,255,255,0.35);
    font-weight: 400;
}

.publish-input:focus {
    outline: none;
    border-color: var(--yellow);
    background: rgba(255,255,255,0.12);
    box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.15);
}

.publish-row {
    display: flex;
    gap: 16px;
    align-items: stretch;
}

.publish-cover {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
    border: 2px dashed rgba(255,255,255,0.15);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    transition: all 0.2s;
}

.publish-cover:hover {
    border-color: var(--yellow);
    background: linear-gradient(135deg, rgba(255,204,0,0.1), rgba(255,204,0,0.05));
}

.publish-cover svg {
    width: 28px;
    height: 28px;
    color: rgba(255,255,255,0.4);
}

.publish-cover span {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    font-weight: 500;
}

.publish-select {
    flex: 1;
    padding: 16px 20px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    color: var(--white);
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
}

.publish-select:focus {
    outline: none;
    border-color: var(--yellow);
    box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.15);
}

.publish-select option {
    background: #1a1a1a;
    color: var(--white);
    padding: 12px;
}

.publish-tags {
    display: flex;
    gap: 10px;
}

.publish-input--tag {
    flex: 1;
    padding: 10px 12px;
    font-size: 13px;
    text-align: center;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
}

.publish-input--tag:focus {
    background: rgba(255,255,255,0.1);
}

.publish-toggles {
    display: flex;
    gap: 12px;
}

.publish-toggle {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.publish-toggle:hover {
    background: rgba(255,255,255,0.1);
}

.publish-toggle input {
    display: none;
}

.publish-toggle__track {
    width: 40px;
    height: 22px;
    background: rgba(255,255,255,0.15);
    border-radius: 11px;
    position: relative;
    transition: all 0.3s;
    flex-shrink: 0;
}

.publish-toggle__track::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: var(--white);
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.publish-toggle input:checked + .publish-toggle__track {
    background: var(--yellow);
}

.publish-toggle input:checked + .publish-toggle__track::after {
    transform: translateX(18px);
}

.publish-toggle__label {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}

.publish-submit--dark {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--yellow), #e6b800);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    color: var(--black);
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(255, 204, 0, 0.3);
    margin-top: 4px;
}

.publish-submit--dark:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 204, 0, 0.4);
}

.publish-submit--dark:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}

/* === Dark Map Page === */
.map-page--dark {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--black);
}

.map-page--dark .map-fullscreen {
    width: 100%;
    height: 100%;
    background: #1a1a1a;
}

.map-controls {
    position: absolute;
    top: 20px;
    right: 16px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.map-control-btn {
    width: 44px;
    height: 44px;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.2s;
}

.map-control-btn:hover {
    background: rgba(0,0,0,0.95);
    border-color: var(--yellow);
}

.map-control-btn.active {
    background: var(--yellow);
    border-color: var(--yellow);
}

.map-control-btn svg {
    width: 20px;
    height: 20px;
    color: var(--white);
}

.map-control-btn.active svg {
    color: var(--black);
}

/* Map Kapsuls Slider */
.map-kapsuls {
    position: absolute;
    bottom: 76px;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 0;
    overflow: visible;
}

.map-kapsuls__list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: visible;
    padding: 10px calc(50% - 75px);
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.map-kapsuls__list::-webkit-scrollbar {
    display: none;
}

.map-kapsuls__empty {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    padding: 20px;
    text-align: center;
    width: 100%;
}

.map-card {
    flex-shrink: 0;
    width: 140px;
    scroll-snap-align: center;
    cursor: pointer;
    background: rgba(20,20,20,0.95);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.1);
    transition: all 0.2s ease;
    transform: scale(0.92);
    opacity: 0.85;
}

.map-card:hover {
    transform: scale(0.96);
    opacity: 1;
    border-color: rgba(255,255,255,0.2);
}

.map-card:active {
    transform: scale(0.9);
}

.map-card--active {
    transform: scale(1.05);
    opacity: 1;
    border: 3px solid #FFD700;
    z-index: 10;
}

.map-card__cover {
    position: relative;
    width: 100%;
    height: 100px;
    overflow: hidden;
}

.map-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-card__placeholder span {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.map-card__play {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    background: var(--gold);
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.map-card__play:hover {
    transform: scale(1.1);
    opacity: 1;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.map-card__play:active {
    transform: scale(0.95);
}

.map-card__play svg {
    width: 18px;
    height: 18px;
    color: var(--black);
    margin-left: 2px;
}

.map-card__info {
    padding: 10px;
}

.map-card__title {
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.map-card__username {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    margin: 0;
}

/* Map markers styling */
.map-marker {
    background: var(--yellow);
    border-radius: 50%;
    border: 3px solid var(--black);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.map-marker-popup {
    background: rgba(0,0,0,0.9);
    border-radius: 12px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}

.leaflet-popup-content-wrapper {
    background: rgba(0,0,0,0.95);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.leaflet-popup-content {
    margin: 12px;
    color: var(--white);
}

.leaflet-popup-tip {
    background: rgba(0,0,0,0.95);
    border: 1px solid rgba(255,255,255,0.1);
}

.leaflet-container a.leaflet-popup-close-button {
    color: rgba(255,255,255,0.5);
}

.leaflet-container a.leaflet-popup-close-button:hover {
    color: var(--white);
}

/* === Desktop Sidebar === */
.sidebar {
    display: none;
}

@media (min-width: 768px) {
    .sidebar {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 240px;
        height: 100vh;
        background: #121212;
        border-right: 1px solid rgba(255,255,255,0.1);
        z-index: 100;
        padding: 16px 12px;
    }
    
    .sidebar__logo {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 8px 12px;
        margin-bottom: 24px;
    }
    
    .sidebar__logo img {
        width: 32px;
        height: 32px;
    }
    
    .sidebar__logo span {
        font-size: 20px;
        font-weight: 700;
        color: var(--white);
    }
    
    .sidebar__nav {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    
    .sidebar__link {
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 12px 16px;
        color: rgba(255,255,255,0.7);
        text-decoration: none;
        border-radius: 8px;
        font-size: 15px;
        font-weight: 500;
        transition: all 0.2s;
    }
    
    .sidebar__link:hover {
        color: var(--white);
        background: rgba(255,255,255,0.1);
    }
    
    .sidebar__link.active {
        color: var(--white);
        background: rgba(255,255,255,0.15);
    }
    
    .sidebar__link svg {
        width: 24px;
        height: 24px;
        flex-shrink: 0;
    }
    
    .sidebar__divider {
        height: 1px;
        background: rgba(255,255,255,0.1);
        margin: 16px 0;
    }
    
    .sidebar__section {
        flex: 1;
        overflow-y: auto;
    }
    
    .sidebar__title {
        font-size: 12px;
        font-weight: 600;
        color: rgba(255,255,255,0.5);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        padding: 8px 16px;
        margin: 0;
    }
    
    /* Hide mobile header on desktop */
    .header {
        display: none;
    }
    
    /* Hide mobile nav menu on desktop */
    .nav-menu {
        display: none;
    }
    
    /* Adjust main content for sidebar and right panel */
    .main {
        margin-left: 240px;
        margin-right: var(--right-panel-width, 480px);
        top: 0;
        bottom: 90px;
        padding-bottom: 0;
        background: #121212;
    }
    
    /* Adjust mini player for desktop */
    .mini-player {
        left: 240px;
        border-radius: 0;
        height: 90px;
        padding: 0 24px;
        background: var(--yellow);
        border-top: none;
    }
    
    .mini-player__cover {
        width: 64px;
        height: 64px;
        border-radius: 6px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }
    
    .mini-player__info {
        flex: 1;
    }
    
    .mini-player__title {
        font-size: 15px;
        font-weight: 600;
        color: var(--black);
    }
    
    .mini-player__username {
        font-size: 13px;
        color: rgba(0,0,0,0.7);
    }
    
    .mini-player__actions {
        gap: 20px;
    }
    
    .mini-player__play {
        width: 48px;
        height: 48px;
        background: var(--black);
    }
    
    .mini-player__play svg {
        color: var(--yellow);
    }
    
    .mini-player__btn {
        width: 36px;
        height: 36px;
    }
    
    .mini-player__btn svg {
        color: var(--black);
    }
    
    .mini-player__progress {
        background: rgba(0,0,0,0.2);
    }
    
    .mini-player__progress::after {
        background: var(--black);
    }
    
    /* Expanded player adjustments for desktop */
    .expanded-player {
        left: 240px;
    }
    
    /* Desktop feed styling - responsive grid */
    .feed {
        padding: 24px;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .feed-grid {
        display: grid !important;
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 24px;
    }
    
    /* Desktop feed cards */
    .feed-card {
        max-width: 100%;
    }
    
    .feed-card__cover {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        aspect-ratio: 1;
    }
    
    /* Desktop header */
    .desktop-header {
        margin-bottom: 32px;
    }
    
    .desktop-banner {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
        border-radius: 16px;
        padding: 40px;
        margin-bottom: 32px;
    }
    
    .desktop-banner__content h1 {
        font-size: 32px;
        font-weight: 700;
        color: var(--white);
        margin: 0 0 8px;
    }
    
    .desktop-banner__content p {
        font-size: 16px;
        color: rgba(255,255,255,0.7);
        margin: 0;
    }
    
    .desktop-highlights {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        margin-bottom: 32px;
    }
    
    .highlight-card {
        display: flex;
        background: rgba(255,255,255,0.05);
        border-radius: 12px;
        overflow: hidden;
        cursor: pointer;
        transition: all 0.2s;
    }
    
    .highlight-card:hover {
        background: rgba(255,255,255,0.1);
        transform: translateY(-2px);
    }
    
    .highlight-card__cover {
        width: 140px;
        height: 140px;
        flex-shrink: 0;
        background-size: cover;
        background-position: center;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }
    
    .highlight-card__cover span {
        font-size: 18px;
        font-weight: 800;
        color: rgba(255,255,255,0.9);
        text-transform: lowercase;
    }
    
    .highlight-card__play {
        position: absolute;
        width: 48px;
        height: 48px;
        background: var(--yellow);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.2s;
    }
    
    .highlight-card:hover .highlight-card__play {
        opacity: 1;
    }
    
    .highlight-card__play svg {
        width: 20px;
        height: 20px;
        color: var(--black);
        margin-left: 2px;
    }
    
    .highlight-card__info {
        flex: 1;
        padding: 16px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .highlight-card__label {
        font-size: 12px;
        font-weight: 600;
        color: var(--yellow);
        margin-bottom: 4px;
    }
    
    .highlight-card__title {
        font-size: 18px;
        font-weight: 700;
        color: var(--white);
        margin: 0 0 4px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .highlight-card__username {
        font-size: 14px;
        color: rgba(255,255,255,0.6);
        margin: 0 0 8px;
    }
    
    .highlight-card__stats {
        display: flex;
        gap: 12px;
        font-size: 13px;
        color: rgba(255,255,255,0.5);
    }
    
    .highlight-card__stats span {
        display: flex;
        align-items: center;
        gap: 4px;
    }
    
    .highlight-card__stats svg {
        width: 14px;
        height: 14px;
    }
    
    .desktop-section-title {
        font-size: 20px;
        font-weight: 700;
        color: var(--white);
        margin: 0 0 20px;
    }
    
    /* Desktop discover page */
    .discover-page--dark {
        padding: 24px 32px;
        max-width: 1400px;
        margin: 0 auto;
    }
    
    /* Desktop publish page */
    .publish-page--dark {
        padding: 40px 32px;
        max-width: 600px;
        margin: 0 auto;
    }
    
    /* Desktop profile page */
    .profile-page--dark {
        padding: 24px 32px;
        max-width: 1200px;
        margin: 0 auto;
    }
    
    /* Desktop map page */
    .map-page--dark {
        margin-left: 0;
    }
    
    /* Desktop kapsul cards grid */
    .discover-slider {
        gap: 16px;
    }
    
    .discover-card {
        width: 180px;
    }
    
    .discover-card__cover {
        height: 140px;
    }
    
    /* Scrollbar styling for desktop */
    .main::-webkit-scrollbar {
        width: 8px;
    }
    
    .main::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .main::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.2);
        border-radius: 4px;
    }
    
    .main::-webkit-scrollbar-thumb:hover {
        background: rgba(255,255,255,0.3);
    }
    
    /* Desktop search page */
    .search-page {
        max-width: 800px;
        margin: 0 auto;
        padding: 32px;
    }
    
    /* Desktop notifications page */
    .notifications-page {
        max-width: 600px;
        margin: 0 auto;
        padding: 32px;
    }
}

/* === Search Page === */
.search-page {
    min-height: 100vh;
    background: var(--black);
    padding: 16px;
    padding-bottom: calc(var(--player-zone-h) + var(--nav-menu-h) + 20px);
}

.search-header {
    margin-bottom: 24px;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}

.search-input-wrapper svg {
    width: 20px;
    height: 20px;
    color: rgba(255,255,255,0.5);
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    background: none;
    border: none;
    color: var(--white);
    font-size: 16px;
    outline: none;
}

.search-input::placeholder {
    color: rgba(255,255,255,0.4);
}

.search-results {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.search-placeholder,
.search-empty,
.search-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: rgba(255,255,255,0.5);
    gap: 12px;
}

.search-placeholder svg,
.search-empty svg {
    width: 48px;
    height: 48px;
}

.search-section__title {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.search-users {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.2s;
}

.search-user:hover {
    background: rgba(255,255,255,0.1);
}

.search-user__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.search-user__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.search-user__name {
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
}

.search-user__kapsuls {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

.search-kapsuls {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-kapsul {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.search-kapsul:hover {
    background: rgba(255,255,255,0.1);
}

.search-kapsul__cover {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
}

.search-kapsul__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.search-kapsul__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-kapsul__username {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

.search-kapsul__play {
    width: 40px;
    height: 40px;
    background: var(--yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-kapsul__play svg {
    width: 18px;
    height: 18px;
    color: var(--black);
    margin-left: 2px;
}

/* === Notifications Page === */
.notifications-page {
    min-height: 100vh;
    background: var(--black);
    padding: 16px;
    padding-bottom: calc(var(--player-zone-h) + var(--nav-menu-h) + 20px);
}

.notifications-header {
    margin-bottom: 24px;
}

.notifications-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    margin: 0;
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notifications-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: rgba(255,255,255,0.5);
    gap: 12px;
}

.notifications-empty svg {
    width: 48px;
    height: 48px;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.notification-item:hover {
    background: rgba(255,255,255,0.1);
}

.notification-item--unread {
    background: rgba(255,204,0,0.1);
    border-left: 3px solid var(--yellow);
}

.notification-item__icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-item__icon svg {
    width: 20px;
    height: 20px;
    color: var(--yellow);
}

.notification-item__content {
    flex: 1;
    min-width: 0;
}

.notification-item__text {
    font-size: 14px;
    color: var(--white);
    margin: 0 0 4px;
    line-height: 1.4;
}

.notification-item__text strong {
    color: var(--yellow);
}

.notification-item__time {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

/* === Desktop Now Playing Panel === */
.now-playing-panel {
    display: none;
}

@media (min-width: 768px) {
    .now-playing-panel {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        bottom: var(--player-zone-h);
        width: var(--right-panel-width);
        background: var(--black);
        border-left: 1px solid rgba(255,255,255,0.1);
        padding: 20px;
        overflow-y: auto;
        z-index: 100;
        transition: transform 0.3s ease;
    }
    
    .now-playing-panel.panel-hidden {
        transform: translateX(100%);
    }
    
    .main.panel-collapsed {
        margin-right: 0 !important;
    }
    
    /* Resizer handle */
    .now-playing-panel__resizer {
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        cursor: ew-resize;
        background: transparent;
        transition: background 0.2s;
    }
    
    .now-playing-panel__resizer:hover,
    .now-playing-panel__resizer.dragging {
        background: var(--yellow);
    }
    
    /* Hide mobile expanded player on desktop */
    .expanded-player {
        display: none !important;
    }
    
    .now-playing-panel__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 20px;
    }
    
    .now-playing-panel__header h3 {
        font-size: 16px;
        font-weight: 600;
        color: var(--white);
        margin: 0;
    }
    
    .now-playing-panel__close {
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: rgba(255,255,255,0.5);
        border-radius: 50%;
        transition: all 0.2s;
    }
    
    .now-playing-panel__close:hover {
        color: var(--white);
        background: rgba(255,255,255,0.1);
    }
    
    .now-playing-panel__close svg {
        width: 18px;
        height: 18px;
    }
    
    .now-playing-panel__cover {
        width: 100%;
        aspect-ratio: 1;
        border-radius: 8px;
        overflow: hidden;
        margin-bottom: 20px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    }
    
    .now-playing-panel__cover img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .now-playing-panel__info {
        margin-bottom: 20px;
    }
    
    .now-playing-panel__info h4 {
        font-size: 18px;
        font-weight: 700;
        color: var(--white);
        margin: 0 0 4px;
    }
    
    .now-playing-panel__info p {
        font-size: 14px;
        color: rgba(255,255,255,0.6);
        margin: 0;
    }
    
    .now-playing-panel__reactions {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        margin-bottom: 20px;
    }
    
    .now-playing-panel__progress {
        margin-bottom: 20px;
    }
    
    .panel-progress {
        height: 4px;
        background: rgba(255,255,255,0.2);
        border-radius: 2px;
        cursor: pointer;
        margin-bottom: 8px;
    }
    
    .panel-progress__bar {
        height: 100%;
        background: var(--yellow);
        border-radius: 2px;
        width: 0%;
        transition: width 0.1s;
    }
    
    .panel-progress__times {
        display: flex;
        justify-content: space-between;
        font-size: 12px;
        color: rgba(255,255,255,0.5);
    }
    
    .now-playing-panel__controls {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 16px;
        margin-bottom: 24px;
    }
    
    .panel-btn {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--white);
        border-radius: 50%;
        transition: all 0.2s;
    }
    
    .panel-btn:hover {
        background: rgba(255,255,255,0.1);
    }
    
    .panel-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .panel-btn--play {
        width: 56px;
        height: 56px;
        background: var(--yellow);
        color: var(--black);
    }
    
    .panel-btn--play:hover {
        transform: scale(1.05);
        background: var(--yellow);
    }
    
    .panel-btn--play svg {
        width: 24px;
        height: 24px;
    }
    
    .panel-btn--small {
        width: 32px;
        height: 32px;
    }
    
    .panel-btn--small svg {
        width: 16px;
        height: 16px;
    }
    
    .panel-btn--comment {
        background: rgba(255,204,0,0.2);
        color: var(--yellow);
    }
    
    .panel-btn--comment:hover {
        background: rgba(255,204,0,0.3);
    }
    
    .now-playing-panel__reactions {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        margin-bottom: 20px;
        justify-content: center;
    }
    
    .now-playing-panel__actions {
        display: flex;
        gap: 12px;
        margin-bottom: 24px;
    }
    
    .panel-action {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px;
        background: rgba(255,255,255,0.1);
        border-radius: 8px;
        color: var(--white);
        font-size: 13px;
        transition: background 0.2s;
    }
    
    .panel-action:hover {
        background: rgba(255,255,255,0.15);
    }
    
    .panel-action svg {
        width: 18px;
        height: 18px;
    }
    
    .now-playing-panel__cover {
        position: relative;
    }
    
    .panel-comment-indicator {
        position: absolute;
        bottom: 8px;
        left: 8px;
        right: 8px;
        background: rgba(0,0,0,0.8);
        padding: 8px 12px;
        border-radius: 8px;
        font-size: 12px;
        color: var(--white);
        display: flex;
        align-items: center;
        gap: 6px;
    }
    
    .panel-comment-indicator svg {
        width: 14px;
        height: 14px;
        color: var(--yellow);
    }
    
    .panel-reaction {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        padding: 8px 12px;
        background: rgba(255,255,255,0.05);
        border-radius: 12px;
        transition: all 0.2s;
        cursor: pointer;
    }
    
    .panel-reaction:hover {
        background: rgba(255,255,255,0.1);
    }
    
    .panel-reaction.active {
        background: rgba(255,204,0,0.2);
    }
    
    .panel-reaction img {
        width: 28px;
        height: 28px;
    }
    
    .panel-reaction span {
        font-size: 12px;
        color: rgba(255,255,255,0.7);
    }
    
    .now-playing-panel__section {
        margin-top: 20px;
        border-top: 1px solid rgba(255,255,255,0.1);
        padding-top: 16px;
    }
    
    .panel-section-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 12px;
    }
    
    .panel-section-header h3 {
        font-size: 14px;
        font-weight: 600;
        color: var(--white);
        margin: 0;
    }
    
    .panel-comments-toggle {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 6px 12px;
        background: rgba(255,255,255,0.1);
        border-radius: 20px;
        color: rgba(255,255,255,0.7);
        font-size: 12px;
        transition: all 0.2s;
    }
    
    .panel-comments-toggle:hover {
        background: rgba(255,255,255,0.15);
    }
    
    .panel-comments-toggle.active {
        background: var(--yellow);
        color: var(--black);
    }
    
    .panel-comments-toggle svg {
        width: 14px;
        height: 14px;
    }
    
    .panel-comments-list {
        display: flex;
        flex-direction: column;
        gap: 8px;
        max-height: 300px;
        overflow-y: auto;
    }
    
    .panel-empty {
        color: rgba(255,255,255,0.4);
        font-size: 13px;
        text-align: center;
        padding: 20px;
    }
    
    .panel-comment {
        display: flex;
        gap: 10px;
        padding: 10px;
        background: rgba(255,255,255,0.05);
        border-radius: 10px;
        cursor: pointer;
        transition: background 0.2s;
    }
    
    .panel-comment:hover {
        background: rgba(255,255,255,0.1);
    }
    
    .panel-comment.playing {
        background: rgba(255,204,0,0.15);
        border-left: 3px solid var(--yellow);
    }
    
    .panel-comment__avatar {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        object-fit: cover;
        flex-shrink: 0;
    }
    
    .panel-comment__content {
        flex: 1;
        min-width: 0;
    }
    
    .panel-comment__header {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 2px;
    }
    
    .panel-comment__username {
        font-size: 13px;
        font-weight: 600;
        color: var(--white);
    }
    
    .panel-comment__time {
        font-size: 11px;
        color: rgba(255,255,255,0.4);
    }
    
    .panel-comment__duration {
        font-size: 12px;
        color: rgba(255,255,255,0.5);
    }
    
    .panel-comment__play {
        width: 32px;
        height: 32px;
        background: var(--yellow);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        align-self: center;
    }
    
    .panel-comment__play svg {
        width: 14px;
        height: 14px;
        color: var(--black);
        margin-left: 2px;
    }
}

/* ================================================
   KAPSUL DIRECT - Live Audio Rooms
   ================================================ */

.direct-page {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.direct-header {
    text-align: center;
    margin-bottom: 32px;
}

.direct-header h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 28px;
    margin-bottom: 8px;
}

.direct-header h1 svg {
    color: var(--yellow);
}

.direct-header p {
    color: var(--gray-dark);
    font-size: 16px;
}

.direct-auth-required {
    text-align: center;
    padding: 60px 20px;
    background: var(--gray-light);
    border-radius: 16px;
}

.direct-auth-required svg {
    width: 48px;
    height: 48px;
    color: var(--gray-dark);
    margin-bottom: 16px;
}

.direct-auth-required h2 {
    font-size: 20px;
    margin-bottom: 8px;
}

.direct-auth-required p {
    color: var(--gray-dark);
    margin-bottom: 24px;
}

.direct-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 40px;
}

.direct-actions .btn {
    padding: 14px 24px;
    font-size: 16px;
}

.direct-actions .btn svg {
    width: 20px;
    height: 20px;
}

.direct-rooms h2 {
    font-size: 18px;
    margin-bottom: 16px;
}

.direct-empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--gray-light);
    border-radius: 16px;
}

.direct-empty svg {
    width: 48px;
    height: 48px;
    color: var(--gray-dark);
    margin-bottom: 12px;
}

.direct-empty p {
    color: var(--gray-dark);
}

.direct-rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.direct-room-card {
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.direct-room-card:hover {
    border-color: var(--yellow);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.direct-room-card--live {
    border-color: #22c55e;
}

.direct-room-card--recording {
    border-color: #ef4444;
}

.direct-room-card__status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gray-dark);
}

.status-dot--waiting {
    background: var(--gray-dark);
}

.status-dot--live {
    background: #22c55e;
    animation: pulse 1.5s infinite;
}

.status-dot--recording {
    background: #ef4444;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.direct-room-card__title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.direct-room-card__host {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.direct-room-card__host img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.direct-room-card__host span {
    font-size: 14px;
    color: var(--gray-dark);
}

.direct-room-card__participants {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--gray-dark);
    margin-bottom: 16px;
}

.direct-room-card__participants svg {
    width: 18px;
    height: 18px;
}

.direct-room-card__join {
    width: 100%;
}

/* Direct Room Page */
.direct-room-page {
    min-height: 100vh;
    background: linear-gradient(180deg, #1a1a1a 0%, #000 100%);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.direct-room-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.direct-room-back {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.direct-room-back:hover {
    background: rgba(255,255,255,0.15);
}

.direct-room-info {
    flex: 1;
    min-width: 0;
}

.direct-room-info h1 {
    font-size: 20px;
    color: var(--white);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.direct-room-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

.direct-room-code {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    padding: 10px 16px;
    border-radius: 12px;
    color: var(--white);
    font-size: 14px;
}

.direct-room-code strong {
    font-size: 18px;
    letter-spacing: 2px;
    color: var(--yellow);
}

.direct-copy-code {
    padding: 4px;
    color: rgba(255,255,255,0.6);
}

.direct-copy-code:hover {
    color: var(--white);
}

/* Participants */
.direct-room-participants {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    flex: 1;
    align-content: center;
    padding: 40px 0;
}

.direct-participant {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    min-width: 120px;
    position: relative;
}

.direct-participant--muted {
    opacity: 0.6;
}

.direct-participant--speaking .direct-participant__avatar {
    border-color: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.3), 0 0 20px rgba(34, 197, 94, 0.5);
    animation: speaking-pulse 0.5s ease-in-out infinite alternate;
}

@keyframes speaking-pulse {
    from { box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.3), 0 0 10px rgba(34, 197, 94, 0.3); }
    to { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.5), 0 0 25px rgba(34, 197, 94, 0.6); }
}

.direct-participant__avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--yellow);
}

.direct-participant--muted .direct-participant__avatar {
    border-color: rgba(255,255,255,0.2);
}

.direct-participant__name {
    font-size: 14px;
    color: var(--white);
    font-weight: 600;
}

.direct-participant__badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--yellow);
    color: var(--black);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
}

.direct-participant__mic {
    position: absolute;
    bottom: -8px;
    background: #22c55e;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.direct-participant--muted .direct-participant__mic {
    background: #ef4444;
}

.direct-participant__mic svg {
    width: 14px;
    height: 14px;
    color: var(--white);
}

/* Room Controls */
.direct-room-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 24px;
}

.direct-control-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    transition: all 0.2s;
}

.direct-control-btn:hover {
    background: rgba(255,255,255,0.15);
}

.direct-control-btn svg {
    width: 28px;
    height: 28px;
}

.direct-control-btn.active {
    background: var(--yellow);
    color: var(--black);
}

.direct-mute-btn.active {
    background: #ef4444;
    color: var(--white);
}

.direct-record-btn.active {
    background: #ef4444;
    color: var(--white);
}

.direct-leave-btn {
    background: #ef4444;
}

.direct-leave-btn:hover {
    background: #dc2626;
}

/* Recording Controls */
.direct-recording-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 16px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 16px;
    margin-top: 16px;
}

.direct-recording-timer {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    font-variant-numeric: tabular-nums;
}

.recording-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ef4444;
    animation: pulse 1s infinite;
}

/* Direct Form */
.direct-form .form-group {
    margin-bottom: 20px;
}

.direct-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.direct-form .checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 400;
    cursor: pointer;
}

.direct-form .checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--yellow);
}

.hashtag-inputs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.direct-upload-progress {
    margin-bottom: 16px;
}

.progress-bar {
    height: 8px;
    background: var(--gray-light);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar__fill {
    height: 100%;
    background: var(--yellow);
    border-radius: 4px;
    transition: width 0.3s;
    width: 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .direct-page {
        padding: 16px;
    }
    
    .direct-header h1 {
        font-size: 24px;
    }
    
    .direct-actions {
        flex-direction: column;
    }
    
    .direct-room-header {
        flex-wrap: wrap;
    }
    
    .direct-room-code {
        width: 100%;
        justify-content: center;
        margin-top: 12px;
    }
    
    .direct-room-info h1 {
        font-size: 18px;
    }
    
    .hashtag-inputs {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   ONBOARDING MODAL
   ========================================== */

.onboarding-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.onboarding-modal.visible {
    opacity: 1;
}

.onboarding-modal.closing {
    opacity: 0;
}

.onboarding-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.onboarding-modal__content {
    position: relative;
    background: var(--white);
    border-radius: 24px;
    padding: 48px 32px 32px;
    max-width: 340px;
    width: 90%;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.onboarding-modal.visible .onboarding-modal__content {
    transform: translateY(0);
}

.onboarding-modal__icon {
    width: 80px;
    height: 80px;
    background: var(--yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.onboarding-modal__icon svg {
    width: 40px;
    height: 40px;
    stroke-width: 2;
}

.onboarding-modal__title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--black);
}

.onboarding-modal__text {
    font-size: 16px;
    color: var(--gray-dark);
    margin-bottom: 32px;
    line-height: 1.5;
}

.onboarding-modal__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.onboarding-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gray);
    transition: background 0.2s, transform 0.2s;
}

.onboarding-dot.active {
    background: var(--yellow);
    transform: scale(1.2);
}

.onboarding-modal__btn {
    width: 100%;
    padding: 16px;
    background: var(--black);
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    margin-bottom: 12px;
    transition: transform 0.2s, opacity 0.2s;
}

.onboarding-modal__btn:hover {
    transform: scale(1.02);
}

.onboarding-modal__btn:active {
    transform: scale(0.98);
}

.onboarding-modal__skip {
    color: var(--gray-dark);
    font-size: 14px;
    padding: 8px;
}

.onboarding-modal__skip:hover {
    color: var(--black);
}
