/**
 * AB Playlister Styles
 * Version: 0.1.3
 */

/* Icon Font */
@font-face {
    font-family: 'khz217beta';
    src: url('../fonts/khz217-beta.eot');
    src: url('../fonts/khz217-beta.eot?#iefix') format('embedded-opentype'),
         url('../fonts/khz217-beta.woff2') format('woff2'),
         url('../fonts/khz217-beta.woff') format('woff'),
         url('../fonts/khz217-beta.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

/* updated Audio Links */
.abp-audio-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .25em;
    padding-right: 0.0625em;
}

.abp-audio-link::after {
    content: "\e901"; /* Play icon */
    font-family: 'khz217beta';
/*     font-size: 1em; */
}

.abp-audio-link.abp-playing::after {
    content: "\e902"; /* Pause icon */
}

/* Main Player Container */
.ab_player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #222;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
}

/* Controls Container */
.abp-controls {
    display: flex;
    gap: 10px;
    margin-right: 20px;
}

/* Control Buttons */
.abp-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
    font-size: 20px;
    line-height: 1;
    transition: opacity 0.2s;
    outline: none;
}

.abp-btn:hover {
    opacity: 0.8;
}

.abp-btn:focus {
    outline: 1px dotted #fff;
    outline-offset: 2px;
}

.abp-btn .abp-icon {
    font-family: 'khz217beta';
    font-style: normal;
    font-weight: normal;
    display: inline-block;
    line-height: 1;
}

/* Button Icons */
.abp-previous .abp-icon::before {
    content: "\e903";
}

.abp-play-pause .abp-icon::before {
    content: "\e901"; /* Play */
}

.abp-play-pause.abp-playing .abp-icon::before {
    content: "\e902"; /* Pause */
}

.abp-next .abp-icon::before {
    content: "\e904";
}

/* Seek Bar Container */
.abp-seek-container {
    flex: 1;
    position: relative;
}

.abp-seek-bar {
    position: relative;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
}

/* Progress Bar */
.abp-seek-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    width: 0%;
    transition: width 0.1s linear;
    pointer-events: none;
}

/* Track Title */
.abp-track-title {
    position: absolute;
    top: 50%;
    left: 15px;
    right: 15px;
    transform: translateY(-50%);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
    font-size: 14px;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ab_player {
        padding: 0 15px;
    }
    
    .abp-controls {
        margin-right: 15px;
    }
    
    .abp-btn {
        padding: 6px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    /* Hide seek bar on very small screens */
    .abp-seek-container {
        display: none;
    }
    
    .ab_player {
        justify-content: center;
    }
    
    .abp-controls {
        margin-right: 0;
        gap: 15px;
    }
}

/* Body padding when player is visible */
body.abp-player-active {
    padding-bottom: 60px;
}