/* Icon styles */
.colored-icon {
    -st-icon-style: requested;
}

.symbolic-icon {
    -st-icon-style: symbolic;
}

/* Utility classes */
.no-margin {
    margin: 0;
}

.no-padding {
    padding: 0;
}

/* Panel button */
.panel-button {
    padding-left: 4px;
    padding-right: 4px;
}

.panel-button-box > * {
    padding-left: 4px;
    padding-right: 4px;
}

.panel-button-box > *:last-child:not(.controls-box) {
    padding-left: 4px;
    padding-right: 4px;
}

/* Panel controls */
.panel-controls-box {
    padding-left: 0px;
    padding-right: 0px;
}

.panel-controls-box > * {
    padding-left: 4px;
    padding-right: 4px;
}

/* Popup menu - reduced padding */
.popup-menu-container {
    padding: 8px;
    min-width: 256px;
    max-width: 256px;
}

.popup-menu-box {
    border-width: 0px;
}

.popup-menu-box > * {
    margin-top: 4px;
    margin-bottom: 4px;
}

/* Modern Player Tabs */
.media-tab-modern {
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    opacity: 0.6;
    transition-property: background, opacity, transform;
    transition-duration: 200ms;
}

.media-tab-modern:hover {
    background: rgba(255, 255, 255, 0.15);
    opacity: 1;
    transform: scale(1.05);
}

.media-tab-modern:active {
    transform: scale(0.95);
}

.media-tab-modern.active {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    opacity: 1;
}

/* Album Art Container */
.media-album-art {
    width: 240px;
    height: 240px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
}

.media-album-art-image {
    border-radius: 16px;
}

/* Track Info Labels */
.media-title-label {
    font-weight: 700;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.95);
}

.media-artist-label {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
}

/* Time Labels */
.media-time-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

.media-time-label-end {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
}

/* Control Buttons - Modern Style */
.media-button-modern {
    padding: 12px;
    border-radius: 50%;
    background: transparent;
    transition-property: background, transform, box-shadow;
    transition-duration: 200ms;
}

.media-button-modern:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.media-button-modern:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.15);
}

.media-button-modern.active {
    background: rgba(255, 255, 255, 0.12);
}

/* Play Button - Special Styling */
.media-play-button-modern {
    padding: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transition-property: background, transform, box-shadow;
    transition-duration: 200ms;
}

.media-play-button-modern:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.media-play-button-modern:active {
    transform: scale(1);
    background: rgba(255, 255, 255, 0.3);
}

/* Panel Button Styles */
.panel-media-button {
    padding: 2px 4px;
    border-radius: 3px;
    transition-property: background;
    transition-duration: 150ms;
}

.panel-media-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.panel-media-button:active {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Legacy control icons */
.popup-menu-control-icon {
    padding: 4px;
    border-radius: 99px;
    transition-property: background-color, transform;
    transition-duration: 150ms;
}

.popup-menu-control-icon:hover {
    background-color: rgba(160, 160, 160, 0.25);
    transform: scale(1.1);
}

.popup-menu-control-icon:active {
    transform: scale(0.95);
}

/* Legacy player icons */
.popup-menu-player-icons {
    margin-top: 4px;
    border-radius: 6px;
}

.popup-menu-player-icons-icon {
    padding: 4px;
    background-color: rgba(0, 0, 0, 0.125);
    transition-property: background-color, transform;
    transition-duration: 150ms;
}

.popup-menu-player-icons-icon-last {
    border-radius: 0px 6px 6px 0px;
}

.popup-menu-player-icons-icon-first {
    border-radius: 6px 0px 0px 6px;
}

.popup-menu-player-icons-icon:hover {
    background-color: rgba(160, 160, 160, 0.25);
    transform: scale(1.05);
}

.popup-menu-player-icons-icon:active {
    transform: scale(0.95);
}

.popup-menu-player-icons-icon-active {
    background-color: rgba(160, 160, 160, 0.25);
}

/* Labels */
.popup-menu-player-label {
    font-size: small;
    margin-right: 4px;
    margin-left: 4px;
}

.popup-menu-label-title {
    font-size: large;
}

/* Album art container */
.popup-menu-album-art {
    border-radius: 6px;
    margin-left: auto;
    margin-right: auto;
}
