/* assets/podcast-player.css */

/* Beausite Fit and Inter are expected to be provided by the host site.
   The plugin intentionally does not declare @font-face to avoid conflicts. */

@font-face {
    font-family: 'Beausite Fit';
    src: url('./fonts/beausite-fit-light.ttf') format('opentype');
    /*font-weight: 300;*/
    /*font-style: normal;*/
    /*font-display: swap;*/
}

/* Category Filter */
.category-filter {
    display: flex;
    gap: 10px;
    padding: 20px 30px;
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

.category-btn {
    padding: 8px 16px;
    border: 2px solid #e2e8f0;
    background: #fff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #64748b;
}

.category-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.category-btn.active {
    background: #46AAB9;
    border-color: #46AAB9;
    color: white;
}

/* Main Container Layout */
.podcast-player-container {
    --primary-color: #46AAB9;
    margin: 0 auto;
    background: #F4F1F1 !important;
    border-radius: var(--border-radius, 20px);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    display: flex;
    flex-direction: column;
}

/* Main Content Area - Side by Side Layout */
.podcast-main-content {
    display: flex;
    min-height: 700px;
}

/* Main Player - Left Side */
.podcast-main-player {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 40px 40px 40px 40px;
    background: #F4F1F1;
    min-width: 0; /* Prevent flex item from growing beyond container */
    min-height: 0; /* Allow flex shrinking */
    overflow: hidden !important; /* Prevent any scrolling */
}

/* Player Content Layout */
.player-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
    flex: 1;
    align-items: center;
    overflow: hidden; /* Changed from overflow-y: auto to prevent scrolling */
    max-height: 100%;
}

.player-media {
    flex-shrink: 0;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 16/9;
    border-radius: 15px;
    overflow: hidden;
}

.player-image {
    position: relative;
    width: 100%;
    height: 100%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.4) 30%, transparent 100%);
    pointer-events: none;
    border-radius: 0 0 15px 15px;
}

/* Remove old gradient when using CVP poster mask */
.player-image.cvp-container::after {
    display: none;
}

.podcast-cover {
    width: 100%;
    object-fit: fill;
}

.video-player-container {
    width: 100%;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
    position: relative;
}

.play-button {
    position: absolute;
    bottom: 20px;
    right: 80px;
    width: 45px;
    height: 45px;
    padding: 3px !important;
    border-radius: 50%;
    background: #46AAB9;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 10; /* Above the haze effect */
}

.play-button:hover {
    /*transform: scale(1.1);*/
    background: #3a9aa9;
}

.play-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.play-button svg {
    width: 27px;
    height: 27px;
    color: #ffffff;
}

.play-button.playing svg {
    color: #ffffff;
}

/* Player Info */
.player-info {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
    flex-shrink: 0;
    min-height: auto;
    padding-bottom: 20px;
}

.podcast-category {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 10px;
    font-weight: 400;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.star-divider {
    width: 12px;
    height: 12px;
    opacity: 0.6;
}

.star-divider-small {
    width: 8px;
    height: 8px;
    opacity: 0.6;
}

.player-info .podcast-title {
    font-family: 'Beausite Fit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 24px;
    font-weight: 300;
    color: #1e293b;
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Media Toggle - Hidden for now */
.media-toggle {
    display: none;
    gap: 10px;
    margin-bottom: 10px;
}

.toggle-btn {
    padding: 8px 20px;
    border: 2px solid #e2e8f0;
    background: #fff;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #64748b;
}

.toggle-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.toggle-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Progress Bar */
.podcast-player-container .progress-container {
    display: flex !important;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
    width: 100%;
    visibility: visible !important;
    opacity: 1 !important;
}

.podcast-player-container .time-display {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
    min-width: 45px;
    display: inline-block;
}

.podcast-player-container .player-progress-bar-track {
    width: 100%;
    height: 8px !important;
    min-height: 8px !important;
    background: #E6E6E6 !important;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    display: block !important;
}

.podcast-player-container .progress-bar {
    flex: 1;
    height: 8px;
    background: #E6E6E6;
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    min-width: 100px;
}

.podcast-player-container .progress-fill {
    height: 100%;
    background: #46AAB9;
    transition: width 0.1s ease;
    border-radius: 4px;
}

/* Description */
.podcast-description {
    margin-top: 20px;
}

.podcast-description h4 {
    font-family: 'Beausite Fit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: #1e293b;
    margin: 0 0 10px 0;
}

.podcast-description-content {
    font-size: 14px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 300;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease;
}

.podcast-description-content:not(.expanded) {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limit to 3 lines */
    -webkit-box-orient: vertical;
    max-height: 4.8em; /* ~3 lines with line-height 1.6 */
    text-overflow: ellipsis;
}

.podcast-description-content.expanded {
    max-height: none;
    overflow: visible;
    display: block;
}

/* When description is expanded, make player-content scrollable */
.player-content.description-expanded {
    overflow-y: auto;
}

.player-content.description-expanded::-webkit-scrollbar {
    width: 6px;
}

.player-content.description-expanded::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.player-content.description-expanded::-webkit-scrollbar-thumb {
    background: #46AAB9;
    border-radius: 3px;
}

.read-more-toggle {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #46AAB9;
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
    margin-top: 8px;
    display: inline-flex;
    transition: opacity 0.2s ease;
    align-items: center;
    gap: 6px;
}

.read-more-toggle:hover {
    opacity: 0.8;
}

/* Podcast List - Right Side */
.podcast-list {
    flex: 1;
    min-width: 400px;
    background: #F4F1F1;
    border-left: none;
    overflow-y: auto;
    margin-top: 40px;
    margin-left: 40px;
    margin-right: 40px;
    margin-bottom: 40px;
    max-height: none;
    padding: 0px 0px 0px 0;
}

.podcast-list-header {
    padding: 0;
    border-bottom: none;
    background: #F4F1F1;
    position: sticky;
    top: 0;
    z-index: 2;
    display: none; /* Hide the header since we're removing "Episodes" title */
}

.podcast-list-title {
    display: none; /* Hide the title */
}

.podcast-item {
    display: flex;
    align-items: center;
    padding: 8px 24px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 16px;
}

.podcast-item:hover {
    background: #EAFCFF; /* Slightly lighter than #F4F1F1 */
}

.podcast-item.active {
    background: #f0eded; /* Same as hover state */
    border-right: none; /* Remove blue line */
}

.podcast-item:last-child {
    border-bottom: none;
}

.podcast-episode {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #6E6E6E;
    min-width: 32px;
    height: 32px;
    display: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: none;
    border-radius: 0;
}

.podcast-episode.playing {
    /* Will contain lottie animation */
    width: 32px;
    height: 32px;
}

.lottie-animation {
    width: 32px;
    height: 32px;
}

.podcast-thumbnail {
    position: relative;
    width: 84px;
    height: 84px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f1f5f9;
}

.podcast-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.podcast-details {
    flex: 1;
    min-width: 0;
}

.podcast-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.podcast-meta span {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 10px;
    font-weight: 400;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.5px;
}

.podcast-item .podcast-title {
    font-family: 'Beausite Fit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 18px;
    font-weight: 300;
    color: #1e293b;
    margin: 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
}

.podcast-duration {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    color: #6E6E6E;
    font-weight: 400;
    flex-shrink: 0;
}

/* Error and Empty States */
.podcast-player-error,
.podcast-player-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #ef4444;
    text-align: center;
}

.podcast-player-empty {
    color: #64748b;
}

.podcast-player-error button,
.podcast-player-empty button {
    margin-top: 15px;
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.podcast-player-error button:hover,
.podcast-player-empty button:hover {
    background: #1d4ed8;
}

/* Featured Badge */
.podcast-thumbnail {
    position: relative;
}

.featured-badge {

}

.podcast-item.featured {

}

/* Date Display */
.podcast-date {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 10px;
}

.podcast-publish-date {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
}

/* Tags */
.podcast-tags {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.podcast-tags .tag {
    background: #e2e8f0;
    color: #475569;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

/* Media Type Indicators */
.podcast-type.video {
    background: #dc2626;
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 9px;
}

.podcast-type.audio {
    background: var(--primary-color);
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 9px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-top: 1px solid #e2e8f0;
}

.pagination button {
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.pagination button:hover {
    background: #1d4ed8;
}

.pagination button:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}

.page-info {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .podcast-main-content {
        flex-direction: column;
    }

    .podcast-list {
        border-left: none;
        border-top: 1px solid #e2e8f0;
        max-height: 400px;
        min-width: auto;
        /*margin: 0px 24px;*/
        margin: 10px 24px;
    }

    .player-content {
        gap: 24px;
    }

    .player-media {
        width: 100%;
        max-width: 320px;
    }

    .podcast-player-container {
        max-height: none !important;
        height: auto !important;
    }
}

@media (max-width: 768px) {
    .podcast-main-player {
        padding: 24px;
    }

    .video-player-container {
        height: 240px;
    }

    .podcast-title {
        font-size: 24px;
    }

    .podcast-item {
        padding: 12px 20px;
        gap: 12px;
    }

    .podcast-thumbnail { /* hidden */
        width: 0px;
        height: 0px;
    }

    .category-filter {
        padding: 15px 20px;
    }

    .media-toggle {
        justify-content: center;
    }

    .podcast-episode {
        min-width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .podcast-main-content {
        flex-direction: column;
    }

    .podcast-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 16px 20px;
    }

    .podcast-details {
        width: 100%;
    }

    .podcast-item .podcast-title {
        white-space: normal;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        text-overflow: ellipsis;
        font-size: 16px;
    }

    .podcast-duration{
        font-size: 12px;
    }

    .category-filter {
        justify-content: center;
    }

    .podcast-episode {
        align-self: flex-start;
    }
}


/* Custom scrollbar for podcast list */
.podcast-list::-webkit-scrollbar {
    width: 6px;
}

.podcast-list::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.podcast-list::-webkit-scrollbar-thumb {
    background: #46AAB9;
    border-radius: 3px;
}

.podcast-list::-webkit-scrollbar-thumb:hover {
    background: #3a9aa9;
}

.video-player-container video,
.video-player-container iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.explore-container {
  display: none;
  justify-content: center;
  align-items: center;
  padding: 12px 0;
}

.explore-button{
  display: inline-block;
  margin: 0;
  cursor: pointer;
  background-color: rgb(255, 255, 255);
  border: 1px solid rgb(76, 76, 76);
  border-radius: 50px;
  box-sizing: border-box;
  font-family: "Beausite Fit", sans-serif;
  font-size: 18px;
  font-weight: 300;
  height: 61px;
  line-height: 20px;
  text-align: center;
  width: 270px;
  -webkit-font-smoothing: antialiased;
}

.explore-button:hover {
  background-color: rgb(244, 241, 241);
}

/* ============================================
   Custom Video Player (CVP) Styles
   ============================================ */

.cvp-container {
    position: relative;
    user-select: none;
    overflow: hidden;
    background: #000;
}

.cvp-rounded {
    border-radius: 16px;
}

.cvp-aspect-video {
    aspect-ratio: 16 / 9;
}

/* Thumbnail / Poster */
.cvp-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cvp-placeholder {
    position: absolute;
    inset: 0;
    background: #1f2937;
}

.cvp-poster-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 40%, transparent 80%);
    pointer-events: none;
}

.cvp-poster-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    padding: 12px;
}

.cvp-poster-center {
    justify-content: center;
    align-items: center;
}

.cvp-poster-bottom {
    justify-content: flex-end;
    align-items: flex-start;
}

/* Large play pill (centered) */
.cvp-play-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    padding: 20px 18px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@media (min-width: 640px) {
    .cvp-play-pill {
        padding: 28px 36px;
    }
}

.cvp-play-pill-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.cvp-play-icon-lg {
    width: 12px;
    height: 12px;
}

@media (min-width: 640px) {
    .cvp-play-icon-lg {
        width: 25px;
        height: 26px;
    }
}

.cvp-play-pill-title {
    margin-left: 8px;
    font-weight: 400;
    font-size: 14px;
    line-height: 110%;
    letter-spacing: -0.02em;
    color: white;
    text-align: center;
    padding: 0 8px;
    margin: 0;
}

@media (min-width: 640px) {
    .cvp-play-pill-title {
        font-size: 16px;
        padding: 0 16px;
    }
}

/* Small play circle (bottom-left, 28px from left & bottom) */
.cvp-play-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 28px;
    bottom: 28px;
    width: 45px;
    height: 45px;
    background: #46AAB9;
    border-radius: 9999px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 2;
}

.cvp-play-circle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 100%;
    height: 100%;
}

/* Duration badge */
.cvp-duration-badge {
    position: absolute;
    align-self: flex-end;
    font-size: 14px;
    color: white;
    margin-top: 4px;
}

/* Loading spinner */
.cvp-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    z-index: 10;
}

.cvp-spinner {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #5FC3D2;
    animation: cvp-spin 1s linear infinite;
}

@keyframes cvp-spin {
    to { transform: rotate(360deg); }
}

/* Video area */
.cvp-video-area {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.cvp-fill {
    width: 100%;
    height: 100%;
}

.cvp-fill iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Click overlay */
.cvp-click-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    cursor: pointer;
}

/* Controls container */
.cvp-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    transition: opacity 0.3s, transform 0.3s;
}

.cvp-controls-visible {
    opacity: 1;
    transform: translateY(0);
}

.cvp-controls-hidden {
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
}

.cvp-controls-gradient {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
}

.cvp-controls-inner {
    position: relative;
    padding: 32px 16px 12px;
}

@media (min-width: 640px) {
    .cvp-controls-inner {
        padding: 40px 20px 16px;
    }
}

/* Progress bar */
.cvp-progress-bar {
    position: relative;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 9999px;
    cursor: pointer;
    margin-bottom: 12px;
    transition: height 0.15s;
}

.cvp-progress-bar:hover {
    height: 10px;
}

.cvp-progress-hover {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
}

.cvp-progress-tooltip {
    position: absolute;
    top: -32px;
    transform: translateX(-50%);
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.cvp-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #5FC3D2;
    border-radius: 9999px;
    transition: width 0.1s;
}

.cvp-progress-thumb {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(-50%) scale(0);
    transition: opacity 0.15s, transform 0.15s;
}

.cvp-progress-bar:hover .cvp-progress-thumb {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

/* Controls row */
.cvp-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.cvp-controls-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Buttons */
.cvp-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: white;
    transition: color 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cvp-btn:hover {
    color: #5FC3D2;
}

.cvp-btn-secondary {
    color: rgba(255, 255, 255, 0.7);
}

.cvp-btn-secondary:hover {
    color: white;
}

.cvp-icon-md {
    width: 24px;
    height: 24px;
}

.cvp-icon-sm {
    width: 20px;
    height: 20px;
}

/* Volume */
.cvp-volume-group {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cvp-volume-slider {
    overflow: hidden;
    transition: width 0.2s, opacity 0.2s;
}

.cvp-volume-open {
    width: 80px;
    opacity: 1;
}

.cvp-volume-closed {
    width: 0;
    opacity: 0;
}

.cvp-volume-track {
    position: relative;
    width: 80px;
    height: 6px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 9999px;
    cursor: pointer;
    transition: height 0.15s;
}

.cvp-volume-track:hover {
    height: 10px;
}

.cvp-volume-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #5FC3D2;
    border-radius: 9999px;
}

.cvp-volume-thumb {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(-50%) scale(0);
    transition: opacity 0.15s, transform 0.15s;
}

.cvp-volume-track:hover .cvp-volume-thumb {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

/* Time display */
.cvp-time {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    margin-left: 4px;
}

@media (min-width: 640px) {
    .cvp-time {
        font-size: 14px;
    }
}

.cvp-time-sep {
    color: rgba(255, 255, 255, 0.4);
}

/* Paused center icon */
.cvp-paused-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15;
    pointer-events: none;
}

.cvp-paused-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: cvp-fadeIn 0.15s ease-out;
}

@media (min-width: 640px) {
    .cvp-paused-circle {
        width: 80px;
        height: 80px;
    }
}

.cvp-paused-svg {
    width: 32px;
    height: 32px;
    margin-left: 4px;
}

@media (min-width: 640px) {
    .cvp-paused-svg {
        width: 40px;
        height: 40px;
    }
}

@keyframes cvp-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Hide on mobile */
.cvp-hide-mobile {
    display: none;
}

@media (min-width: 640px) {
    .cvp-hide-mobile {
        display: flex;
    }
}
