/* Global Body Background Gradient */
body {
    background: linear-gradient(135deg, #fefce8 0%, #fff7ed 100%); /* Light theme gradient */
    background-attachment: fixed; /* Ensures gradient covers the entire viewport */
}






/* Hero Section Enhancements */
.hero-section {
    transition: all 0.3s ease;
}

/* Play Button Hover Effect */
.play-btn {
    position: relative;
    overflow: hidden;
}

.play-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
}

.play-btn:hover::before {
    left: 100%;
}

/* Featured Card Styling */
.featured-card {
    transition: all 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-4px);
}

/* Hero Featured Card - Title Container */
.hero-featured-content {
    flex: 0 0 auto;
    min-height: 8rem;
    max-height: 9rem;
    overflow: hidden;
}

/* Hero Featured Card with Gradient Border */
.hero-featured-card-wrapper {
    position: relative;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    padding: 1px;
    border-radius: 0.75rem;
}

.hero-featured-card-wrapper > div {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
}



/* Grid Section Styles */
.episodes-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 640px) {
    .episodes-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .episodes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .episodes-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Episode Card */
.episode-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}



.episode-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.episode-card-video {
    width: 100%;
    background: #000;
    padding: 1rem;
    aspect-ratio: 16 / 9;
}

.episode-card-video iframe {
    width: 100%;
    height: 100%;
    border-radius: 0.5rem;
}

.episode-card-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    height: 12rem;
    position: relative;
}

.episode-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6rem;
    padding-right: 0.5rem;
    transition: color 0.4s ease, opacity 0.4s ease;
    opacity: 1;
}



.episode-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    margin: auto -1.25rem -1.25rem -1.25rem;
    flex-shrink: 0;
}



.episode-card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.8rem;
    flex: 1;
    min-width: 0;
}

.episode-card-author {
    color: #f97316;
    font-weight: 700;
    text-transform: capitalize;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    transition: color 0.4s ease, opacity 0.4s ease;
    opacity: 1;
}



.episode-card-date {
    color: #9ca3af;
    font-size: 0.75rem;
}



.episode-card-button {
    padding: 0.6rem 1rem;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.25);
    white-space: nowrap;
    flex-shrink: 0;
}

.episode-card-button:hover {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(249, 115, 22, 0.4);
}

/* Section Header */
.section-header {
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}



.section-header p {
    font-size: 1.125rem;
    color: #6b7280;
    font-weight: 300;
}


/* Divider */
.section-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #d1d5db, transparent);
}


/* Loading and Empty States */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}


.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Trending Cards Grid */
.trending-cards-grid {
    display: grid;
    gap: 1rem;
}

@media (max-width: 640px) {
    .trending-cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .trending-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .trending-cards-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Trending Card */
.trending-card {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 0.75rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    padding: 1px;
}

.trending-card-inner {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 0.75rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.trending-card-iframe {
    width: 100%;
    height: 100%;
}

.trending-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.3);
}

/* Smooth Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Responsive Text Sizes */
@media (max-width: 640px) {
    .section-header h2 {
        font-size: 1.5rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    .episode-card-title {
        font-size: 0.9rem;
    }
}
/* Hide scrollbar for horizontal scroll */
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Popular Trending Scroll Track */
.popular-trending__scroll-track {
    display: flex;
    gap: 1.5rem;
    padding-bottom: 2rem;
    scroll-behavior: smooth;
}

/* Trending Image Card */
.trending-image-card {
    flex: 0 0 auto;
    width: 409px;
    height: 230px;
    border-radius: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    transform-origin: bottom;
}

.trending-image-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.trending-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 1.25rem;
}

.trending-image-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.trending-image-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
    padding: 2rem 1rem 1rem;
    color: white;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    opacity: 0;
    border-bottom-left-radius: 1.25rem;
    border-bottom-right-radius: 1.25rem;
}

.trending-image-card:hover .trending-image-card-overlay {
    transform: translateY(0);
    opacity: 1;
}

.trending-image-card-logo {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2rem;
    height: 2rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.trending-image-card:hover .trending-image-card-logo {
    opacity: 1;
}

.text-shadow-sm {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
/* ========================================
     PROMO SECTION STYLES
   ======================================== */
.promo-section .fa-podcast {
    text-shadow: 0 0 30px rgba(249, 115, 22, 0.5);
    animation: pulse-podcast-icon 4s infinite ease-in-out;
}

@keyframes pulse-podcast-icon {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.4;
    }
}

/* ========================================
     LISTEN ON SECTION STYLES V5 (Glassmorphism)
   ======================================== */
/* Modern Animated Gradient Cards */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes float-up {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-4px); }
    100% { transform: translateY(0px); }
}

.platform-card-v5 {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    text-align: center;
    border-radius: 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(249, 240, 229, 0.7) 100%);
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    cursor: pointer;
}

.platform-card-v5:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(249, 115, 22, 0.2);
}

.platform-card-v5::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(249, 115, 22, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}




.platform-card-v5:hover::before {
    opacity: 1;
}

.platform-card-v5 .platform-icon {
    font-size: 5rem;
    margin-bottom: 2rem;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 4px 12px rgba(249, 115, 22, 0.2));
}

.platform-card-v5:hover .platform-icon {
    transform: scale(1.25) rotateY(0deg);
    filter: drop-shadow(0 8px 20px rgba(249, 115, 22, 0.4));
    animation: float-up 2s ease-in-out infinite;
}

.platform-card-v5-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.platform-card-v5-content .platform-title {
    font-size: 1.25rem;
    font-weight: 700; /* bold */
    color: #111827;
    transition: all 0.3s ease;
    letter-spacing: -0.5px;
}

.platform-card-v5:hover .platform-title {
    color: #f97316;
}



.platform-card-v5-content .platform-desc {
    margin-top: 1rem;
    color: #6b7280;
    line-height: 1.7;
    font-size: 0.875rem; /* text-sm */
    font-weight: 500; /* font-medium */
    transition: color 0.3s ease;
    min-height: 3.5rem;
    opacity: 0.9;
}



.platform-card-v5:hover .platform-desc {
    color: #374151;
    opacity: 1;
}



@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.platform-card-v5 .platform-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
    padding: 0.6rem 1.2rem; /* Adjusted padding */
    font-weight: 500; /* font-medium */
    font-size: 0.875rem; /* text-sm */
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 2;
    animation: slide-up 0.6s ease-out 0.2s both;

    /* New styles */
    border: 2px solid var(--brand-color);
    border-radius: 0.75rem;
    color: var(--brand-color);
    background: transparent;
    overflow: hidden;
}

.platform-card-v5 .platform-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--brand-color);
    transform: translateX(-101%);
    transition: transform 0.4s cubic-bezier(0.7, 0, 0.25, 1);
    z-index: -1;
}

.platform-card-v5:hover .platform-cta {
    transform: translateY(-2px);
    letter-spacing: 0.5px;
    color: white;
}


.platform-card-v5:hover .platform-cta::before {
    transform: translateX(0);
}

.platform-card-v5 .platform-cta .fas {
    font-size: 0.85rem;
    transition: all 0.4s ease;
}

.platform-card-v5:hover .platform-cta .fas {
    transform: translateX(8px);
}

/* Theming */
.platform-card-v5.youtube { --brand-color: #FF0000; }
.platform-card-v5.spotify { --brand-color: #1DB954; }
.platform-card-v5.apple { --brand-color: #111827 !important; }


.platform-card-v5 .platform-icon {
    color: var(--brand-color);
}

/* ========================================
     KNOW YOUR HOST SECTION STYLES
   ======================================== */
/* Image Wrapper Styles */
.host-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.4s ease;
}
.host-image-wrapper:hover {
    transform: scale(1.05);
}

.host-image-blob {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--brand-color, #f97316), #fbbf24);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: morph 8s ease-in-out infinite both;
    opacity: 0.15;
}


@keyframes morph {
    0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

.host-image {
    position: relative;
    width: 80%;
    max-width: 400px;
    border-radius: 1.5rem;
    object-fit: cover;
    aspect-ratio: 1/1;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    z-index: 1;
}

@media (max-width: 1023px) {
    .host-image-wrapper {
        margin-bottom: 2rem;
    }
    .know-your-host-section .section-title {
        font-size: 2rem;
    }
}

/* ========================================
     FEATURED GUEST SECTION STYLES
   ======================================== */
.featured-guest-section {
    --apple-color: #000000 !important;
    --spotify-color: #1DB954;
}

.video-player-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    transform: scale(1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.video-player-wrapper:hover {
    transform: scale(1.03);
    box-shadow: 0 30px 60px -15px rgba(0,0,0,0.3);
}

.video-player-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.platform-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1.2rem;
    border-radius: 0.75rem;
    font-size: 0.875rem; /* text-sm */
    font-weight: 500; /* medium */
    transition: all 0.3s ease;
    border: 1px solid;
}

.platform-btn.apple {
    color: var(--apple-color) !important;
    border-color: var(--apple-color);
    background-color: transparent;
}
.platform-btn.apple:hover {
    background-color: var(--apple-color);
    color: #ffffff !important;
}


.platform-btn.spotify {
    color: var(--spotify-color);
    border-color: var(--spotify-color);
    background-color: transparent;
}
.platform-btn.spotify:hover {
    background-color: var(--spotify-color);
    color: #ffffff;
}

.date-chip {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem; /* text-sm */
    font-weight: 500; /* medium */
    color: white;
    background: linear-gradient(90deg, #f97316, #fb923c);
    box-shadow: 0 4px 15px -5px rgba(251, 146, 60, 0.6);
    transition: all 0.3s ease;
}
.date-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px -5px rgba(251, 146, 60, 0.8);
}
.date-chip strong {
    font-weight: 700; /* bold */
}

/* ===============================================
    PLAYLIST SECTION (YouTube Style) V2
   =============================================== */

/* ===============================================
    COLLAPSIBLE PLAYLIST STYLES
   =============================================== */
.collapsible-playlist-container {
    border-radius: 1rem;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.3s ease;
}


.playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}
.playlist-header:hover {
    background-color: #f3f4f6;
}


.playlist-toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #4b5563;
    background: transparent;
    border: 0;
    padding: 0.5rem;
    border-radius: 0.5rem;
}


.playlist-toggle-btn .hide-text { display: none; }
.collapsible-playlist-container.is-expanded .playlist-toggle-btn .hide-text { display: inline; }
.collapsible-playlist-container.is-expanded .playlist-toggle-btn .show-text { display: none; }

.playlist-toggle-btn .toggle-icon {
    transition: transform 0.3s ease;
}
.collapsible-playlist-container.is-expanded .playlist-toggle-btn .toggle-icon {
    transform: rotate(180deg);
}

.playlist-content {
    max-height: 0;
    transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out;
    overflow: hidden;
    padding: 0 1.5rem;
    border-top: 1px solid transparent;
}


.collapsible-playlist-container.is-expanded .playlist-content {
    max-height: 100vh; /* A large enough value */
    overflow-y: auto; /* Make content scrollable if it exceeds max-height */
    padding: 1.5rem;
    border-top-color: #e5e7eb;
}


#playlist-player-title {
    line-height: 1.4;
}

.all-episodes-section {

    background: linear-gradient(135deg, #fefce8, #fff7ed); /* Light theme gradient for this section */

}







/* =============================================

   PODCAST PAGE - CUSTOM STYLES

   ============================================= */

/* Custom styles for the new Header - Unique and Modern */
header {
    /* "Gradient type" Glassmorphism - Significantly more transparent */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 240, 230, 0.35) 100%); /* Highly transparent gradient */
    backdrop-filter: blur(35px); /* Even stronger blur for maximum effect */
    -webkit-backdrop-filter: blur(35px); /* For Safari */
    border-bottom: 1px solid rgba(249, 115, 22, 0.5); /* Slightly more prominent border for definition */
    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.25); /* Even stronger shadow for floating effect */
    transition: background 0.6s ease-in-out, backdrop-filter 0.6s ease-in-out, box-shadow 0.6s ease-in-out;
}

/* Solid header on scroll */
header.scrolled {
    background-color: #ffffff; /* Solid white background */
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); /* Slightly softer solid shadow */
}

/* Desktop Navigation Links (main items) */
nav .space-x-6 > li > a,
nav .space-x-6 > li > button { /* Target both direct links and dropdown buttons */
    position: relative;
    color: #374151; /* Darker gray for better contrast */
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s ease-in-out, transform 0.2s ease-out;
    /* Ensure the button text is also centered with the icon */
    display: flex;
    align-items: center;
    gap: 0.25rem; /* Small gap for icon if any */
}

nav .space-x-6 > li > a:hover,
nav .space-x-6 > li > button:hover {
    color: #f97316; /* Orange on hover */
    transform: translateY(-3px); /* More noticeable lift */
}

/* Underline effect on hover for main nav links and dropdown buttons */
nav .space-x-6 > li > a::after,
nav .space-x-6 > li > button::after {
    content: '';
    position: absolute;
    bottom: -5px; /* Adjust position relative to text */
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #f97316;
    transform: scaleX(0);
    transform-origin: center; /* Underline grows from center */
    transition: transform 0.3s ease-out;
}

nav .space-x-6 > li > a:hover::after,
nav .space-x-6 > li > button:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Desktop Navigation Dropdowns */
.group .absolute {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px); /* More pronounced drop effect */
    transition: opacity 0.3s ease-out, transform 0.3s ease-out, visibility 0.3s ease-out;
    pointer-events: none;
    z-index: 100;
    min-width: 16rem; /* Increased min-width for long headings */
    max-width: 20rem; /* Prevent excessively wide dropdowns */
    background-color: rgba(255, 255, 255, 0.95); /* Nearly opaque background for readability */
    backdrop-filter: blur(10px); /* Glassmorphism for dropdown */
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(249, 115, 22, 0.3); /* More visible border */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15); /* Stronger shadow */
    border-radius: 0.75rem; /* Rounded corners */
}

.group:hover .absolute {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.group .absolute a {
    white-space: normal; /* Allow text to wrap for long headings */
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1.2rem;
    font-size: 0.95rem;
    color: #374151;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}
.group .absolute a:hover {
    background-color: #fef3e9;
    color: #f97316;
    transform: translateX(5px); /* Subtle slide effect on hover */
}

/* Icons within dropdowns */
.group .absolute a i {
    color: #f97316; /* Thematic orange color for icons */
    transition: color 0.2s ease-in-out;
}
.group .absolute a:hover i {
    color: #ea580c; /* Darker orange on hover */
}

/* Mobile Menu Button - Hamburger to X animation */
#mobile-menu-button i {
    transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
    color: #f97316;
    font-size: 1.75rem; /* Larger hamburger icon */
}

#mobile-menu-button:hover i {
    color: #ea580c;
    transform: scale(1.1); /* Subtle scale on hover */
}

#mobile-menu-button .fa-times {
    transform: rotate(90deg);
}

/* Mobile Accordion Icon Rotation */
#mobile-menu button i {
    transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
    color: #f97316;
}

#mobile-menu button:hover i {
    color: #ea580c;
}

#mobile-menu button .fa-chevron-down.rotate-180 {
    transform: rotate(180deg);
}

/* Mobile Menu Links */
#mobile-menu ul a {
    color: #374151; /* Consistent text color */
    display: flex; /* For icons */
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease-in-out;
}

#mobile-menu ul a:hover {
    color: #f97316; /* Orange on hover */
}

#mobile-menu ul a i {
    color: #f97316; /* Orange icon color */
    transition: color 0.3s ease-in-out;
}

#mobile-menu ul a:hover i {
    color: #ea580c; /* Darker orange on hover */
}


/* Contact Us Button - Enhanced Styling (Pulsating Gradient) */
header a.bg-orange-500,
#mobile-menu a.bg-orange-500 {
    background: linear-gradient(135deg, #FF6B6B 0%, #EE3E3E 100%);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.5); /* Stronger shadow */
    transition: all 0.4s cubic-bezier(0.075, 0.82, 0.165, 1);
    padding: 0.75rem 2.2rem; /* Larger padding */
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 9999px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    color: white !important; /* Ensure white text */
}

header a.bg-orange-500::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: rgba(255, 255, 255, 0.2); /* Slightly more visible pulse */
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
    z-index: -1;
}

header a.bg-orange-500:hover::before {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
}

header a.bg-orange-500:hover,
#mobile-menu a.bg-orange-500:hover {
    background: linear-gradient(135deg, #EE3E3E 0%, #CC2E2E 100%);
    box-shadow: 0 10px 35px rgba(255, 107, 107, 0.7); /* More intense shadow */
    transform: translateY(-5px) scale(1.05); /* More noticeable lift and scale */
}

.playlist-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 1rem;
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.playlist-thumbnail {
    width: 120px;
    height: 90px;
    border-radius: 0.5rem;
    object-fit: cover;
    flex-shrink: 0;
}

.playlist-item:hover {
    background: rgba(249, 115, 22, 0.05);
    border-color: rgba(249, 115, 22, 0.1);
}


.playlist-item.active {
    background: rgba(249, 115, 22, 0.1);
    border-color: rgba(249, 115, 22, 0.3);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.1);
}


.playlist-item .index {
    font-size: 1rem;
    font-weight: 600;
    color: #9ca3af;
    width: 2rem;
    text-align: center;
}
.playlist-item.active .index {
    color: #f97316;
}

.playlist-item .details {
    flex: 1;
    min-width: 0;
}

.playlist-item .details .title {
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.playlist-item .details .channel {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.playlist-item .duration {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    padding: 0 1rem;
}


.playlist-item .actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.playlist-item .play-icon {
    font-size: 1.25rem;
    color: #9ca3af;
    transition: all 0.3s ease;
    cursor: pointer;
}
.playlist-item:hover .play-icon,
.playlist-item.active .play-icon {
    color: #f97316;
    transform: scale(1.2);
}

.youtube-link {
    font-size: 1.5rem;
    color: #9ca3af !important;
    transition: all 0.3s ease;
}
.youtube-link:hover {
    color: #FF0000 !important; /* YouTube Red */
    transform: scale(1.2);
}

/* Pagination Styles */
#pagination-controls button {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    background-color: #f3f4f6;
    color: #374151;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}


#pagination-controls button:hover {
    background-color: #e5e7eb;
}

#pagination-controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#pagination-controls button.active {
    background-color: #f97316;
    color: white;
    border-color: #f97316;
}

/* ========================================
     FINAL CTA SECTION STYLES (Orbit)
   ======================================== */
@keyframes background-pan {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.final-cta-orbit-section {
    background: linear-gradient(135deg, #FFDAB9, #FFA07A, #FFDAB9); /* More visible orange tones */
    background-size: 100% 100%; /* Changed to cover full container */
    animation: background-pan 15s ease-in-out infinite;
}


.cta-platform-card {
    --brand-color-youtube: #FF0000 !important;
    --brand-color-spotify: #1DB954;
    --brand-color-apple: #000000;

    position: relative;
    display: inline-block;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    border: 2px solid #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    backdrop-filter: blur(5px);
}


.cta-platform-card .card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.cta-platform-card .card-content .fab {
    font-size: 4.5rem;
    color: #4b5563;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}


.cta-platform-card .card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #374151;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}


.card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--glow-color) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1;
    opacity: 0;
}

.cta-platform-card:hover {
    transform: translateY(-15px) scale(1.1);
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}


.cta-platform-card:hover .card-glow {
    transform: translate(-50%, -50%) scale(2.5);
    opacity: 0.15;
}

.cta-platform-card:hover .card-content .fab {
    transform: translateY(-10px) scale(0.9);
    color: var(--icon-color);
}
.cta-platform-card:hover .card-title {
    opacity: 1;
    transform: translateY(5px);
    color: var(--icon-color);
}

/* Theming */
.cta-platform-card.youtube {
    --glow-color: var(--brand-color-youtube);
    --icon-color: var(--brand-color-youtube);
}
.cta-platform-card.spotify {
    --glow-color: var(--brand-color-spotify);
    --icon-color: var(--brand-color-spotify);
}
.cta-platform-card.apple {
    --glow-color: var(--brand-color-apple);
    --icon-color: var(--brand-color-apple);
}

@media (max-width: 640px) {
    .cta-platform-card {
        width: 150px;
        height: 150px;
    }
    .cta-platform-card:hover {
        border-radius: 50%;
    }
    .cta-platform-card .card-content .fab {
        font-size: 3.5rem;
    }
    .cta-platform-card:hover .card-title {
        opacity: 0;
    }
    .cta-platform-card:hover .card-content .fab {
        transform: translateY(0) scale(1.1);
    }
}
.pulse-glow {
  animation: pulse-glow-animation 2s infinite alternate;
}

@keyframes pulse-glow-animation {
  from {
    transform: scale(0.9);
    opacity: 0.8;
  }
  to {
    transform: scale(1.1);
    opacity: 1;
  }
}
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

@media (max-width: 640px) {
    .playlist-item {
        padding: 0.75rem;
        gap: 0.5rem;
        align-items: flex-start; /* Align items to the start for better wrapping */
    }

    .playlist-thumbnail {
        width: 80px;
        height: 60px;
    }

    .playlist-item .details .title {
        font-size: 0.9rem;
        -webkit-line-clamp: 2; /* Allow title to show up to 2 lines */
        white-space: normal; /* Allow text to wrap */
        line-height: 1.3;
    }

    .playlist-item .details .channel,
    .playlist-item .duration {
        font-size: 0.75rem;
    }
    
    .playlist-item .duration {
        padding: 0; /* Remove horizontal padding */
        flex-shrink: 0;
    }

    .playlist-item .actions {
        gap: 0.5rem;
        flex-direction: column; /* Stack play and YouTube icons */
        align-items: center;
        margin-left: auto; /* Push actions to the right */
    }
    
    .playlist-item .play-icon,
    .youtube-link {
        font-size: 1rem; /* Smaller icons */
    }
}