/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    width: 100vw;
    height: 100vh;
    padding: 0;
    margin: 0;
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: "Bubblegum Sans", system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(145deg, #5e4b8c 0%, #7e6bb0 100%);
    min-height: 100vh;
    color: #fff;
    line-height: 1.5;
    overflow-x: hidden;
    position: relative;
    padding-bottom: 80px;
    /* space for bottom player */
}

/* ===== SPLASH SCREEN ===== */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #6a4e9b, #9b7fd3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

#splash-screen .container-fluid {
    text-align: center;
    color: #fff;
}

.splash-logo {
    max-width: 200px;
    width: 80%;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

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

#splash-screen .display-1 {
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 4px 4px 8px #ffb347;
    margin: 1rem 0;
    animation: glow 1.2s ease-in-out 1;
}

@keyframes glow {
    0% {
        text-shadow: 4px 4px 8px #ffb347;
    }
    50% {

        transform: rotateY(90deg);
    }
    75% {

        transform: rotateY(0deg);
    }
    100% {
        text-shadow: 6px 6px 100px #ff9f1c;
    }
}

#splash-screen .text-light {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.loading-status {
    width: 60px;
    height: 60px;
    margin: 2rem auto 0;
    border: 5px solid rgba(255,255,255,0.3);
    border-top-color: #ffb347;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.splash-screen-fadeout {
    opacity: 0;
    pointer-events: none;
}

/* ===== BACKGROUND CANVAS ===== */
#backgroundCanvas {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
}

#animationCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* ===== UTILITY CLASSES ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.zindex-1000 {
    position: relative;
    z-index: 1000;
}

/* ===== HEADER ===== */
.sticky-top {
    position: sticky;
    top: 0;
    z-index: 1030;
}

.bg-primary {
    background: linear-gradient(135deg, #6a4e9b, #9b7fd3) !important;
    border-bottom: 4px solid #ffb347 !important;
}

.site-branding h1 {
    font-size: 1.4rem;
    letter-spacing: 0.5px;
    margin-bottom: 0;
}

.site-branding p {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Header buttons */
header .btn {
    border-radius: 40px;
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    box-shadow: 0 6px 0 rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

header .btn:active {
    transform: translateY(3px);
    box-shadow: 0 2px 0 rgba(0,0,0,0.1);
}

.btn-light {
    background-color: #ffffff;
    color: #d44e5c;
}

.btn-success {
    background-color: #28a745;
    color: #fff;
}

.btn-warning {
    background-color: #ffc107;
    color: #2c3e50;
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(145deg, #2d4e7a, #4a77b5);
    border-radius: 40px 40px 40px 40px;
    margin: 1.5rem 0 2rem;
    padding: 3rem 1.5rem;
    box-shadow: 0 20px 30px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,215,0,0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-section h1 {
    font-size: 2.5rem;
    text-shadow: 3px 3px 0 rgba(0,0,0,0.2);
}

.hero-section .lead {
    font-size: 1.2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-section .btn {
    border-radius: 50px;
    padding: 0.8rem 2rem;
    font-weight: 700;
    border: none;
    box-shadow: 0 8px 0 rgba(0,0,0,0.2);
    transition: transform 0.15s, box-shadow 0.15s;
}

.hero-section .btn:active {
    transform: translateY(4px);
    box-shadow: 0 4px 0 rgba(0,0,0,0.2);
}

.hero-section .btn-warning {
    background-color: #ffb347;
    color: #2c3e50;
}

.hero-section .btn-outline-light {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    box-shadow: 0 8px 0 rgba(255,255,255,0.2);
}

.hero-section .btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
}

/* ===== STICKY SECTION NAV ===== */
.section-nav {
    display: block;
    width: 100vw;
    padding: 0 0.28em;
    position: sticky;
    background: rgba(44, 44, 68, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(255,215,0,0.3);
    top: 76px;
    /* just below header */
    z-index: 1020;
}

.section-nav .container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.5rem 0;
}

.section-nav .container::-webkit-scrollbar {
    display: none;
}

.section-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.4rem 0.8rem;
    border-radius: 30px;
    background: rgba(255,255,255,0.1);
    transition: background 0.2s, transform 0.2s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.section-nav a:hover,
.section-nav a:focus {
    background: rgba(255,215,0,0.25);
    transform: translateY(-2px);
}

.section-nav a i {
    font-size: 1rem;
}

/* ===== DAILY VERSE ===== */
#daily-verse {
    background: linear-gradient(145deg, #f9e7b3, #f5d88c);
    border-radius: 40px;
    padding: 2rem 1.5rem;
    margin: 2rem 0 3rem;
    border: 4px solid #ffb347;
    box-shadow: 0 15px 0 #b87c2e, 0 20px 30px rgba(0,0,0,0.3);
    position: relative;
    transform: translateY(0);
    transition: transform 0.2s;
}

#daily-verse:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 0 #b87c2e, 0 25px 35px rgba(0,0,0,0.3);
}

#daily-verse h2 {
    font-size: 2rem;
    color: #2c3e50;
    text-shadow: 2px 2px 0 rgba(255,255,255,0.5);
    margin-bottom: 1rem;
}

#daily-verse #dailyVersesWrapper {
    font-size: 1.4rem;
    line-height: 1.6;
    font-style: italic;
    color: #2c3e50;
    font-weight: 500;
    background: rgba(255,255,255,0.3);
    border-radius: 30px;
    padding: 1rem 1.5rem;
    backdrop-filter: blur(4px);
}

#daily-verse #dailyVersesWrapper a {
    color: #191970 !important;
    text-decoration: none;
    font-weight: 900 !important;
    text-transform: uppercase;
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 2.5rem;
    pointer-events: none !important;
    /* Disable link clicking to external site */
}

/* ===== VIDEO CATEGORIES ===== */
.video-categories {
    background: rgba(0,0,0,0.2);
    border-radius: 40px;
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
}

.video-categories h2 {
    font-size: 2rem;
    text-shadow: 2px 2px 0 #7e6bb0;
}

.video-categories .badge {
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,215,0,0.5);
    color: #fff;
    font-weight: 500;
    text-transform: uppercase;
}

.video-categories .badge.bg-success {
    background: #28a745 !important;
}

.video-categories .badge.bg-warning {
    background: #ffc107 !important;
    color: #2c3e50;
}

.video-categories .badge.bg-info {
    background: #17a2b8 !important;
}

.video-categories .badge.bg-secondary {
    background: #6c757d !important;
}

.video-categories .category-group h3 {
    font-size: 1.3rem;
    border-left: 6px solid #ffb347;
    padding-left: 1rem;
    margin-bottom: 1.2rem;
}

/* ===== CATEGORY CAROUSEL – NETFLIX STYLE ===== */
.category-carousel {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    /* more breathing room between cards */
    padding: 1rem 2rem 2rem;
    /* extra horizontal padding so first/last cards aren't cut off */
    scrollbar-width: thin;
    scrollbar-color: #ffb347 rgba(255,255,255,0.1);
    -webkit-overflow-scrolling: touch;
    scroll-padding: 0 2rem;
    /* modern browsers: respects padding when scrolling */
}

.category-carousel::-webkit-scrollbar {
    height: 8px;
}
.category-carousel::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}
.category-carousel::-webkit-scrollbar-thumb {
    background: #ffb347;
    border-radius: 10px;
}

/* Card base – Netflix style: clean, elevated, with consistent aspect ratio */
.category-carousel .carousel-card {
    flex: 0 0 auto;
    width: clamp(220px, 32vw, 380px) !important;
    /* responsive: min 240px, max 380px, scales with viewport */
    background: #1e1e2a;
    /* solid dark background (less transparency for better contrast) */
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.category-carousel .carousel-card:hover {
    transform: scale(1.03) translateY(-6px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.8);
    border-color: #ffb347;
}

/* Image wrapper – strict 16:9 */
.category-carousel .card-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #2a2a3a;
}

.category-carousel .card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-carousel .carousel-card:hover img {
    transform: scale(1.05);
}

/* Optional play overlay (subtle) */
.category-carousel .card-img-wrapper::after {
    content: '\f04b';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffb347;
    font-size: 1.4rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
}

.category-carousel .carousel-card:hover .card-img-wrapper::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Card body – clean, with enough padding */
.category-carousel .card-body {
    padding: 1rem 1rem 1.2rem;
    background: #1e1e2a;
    /* match card background */
}

/* Title – two lines with ellipsis */
.category-carousel .card-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    color: #ffffff;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.8rem;
    /* space for two lines */
    word-break: break-word;
    /* prevent long words from overflowing */
}

/* Metadata row – views & likes */
.category-carousel .video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    /* if space is tight, allow wrap */
}

.category-carousel .meta-item {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    border: 1px solid rgba(255, 215, 0, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    backdrop-filter: blur(2px);
    white-space: nowrap;
    /* keep numbers and icon on one line */
}

.category-carousel .meta-item i {
    color: #ffb347;
    font-size: 0.75rem;
}

/* Responsive fine-tuning */
@media (max-width: 1024px) {
    .category-carousel .carousel-card {
        width: clamp(200px, 30vw, 280px);
    }
}

@media (max-width: 768px) {
    .category-carousel {
        gap: 1rem;
        padding: 1rem 1rem 2rem;
    }
    .category-carousel .carousel-card {
        width: clamp(180px, 35vw, 240px);
    }
    .category-carousel .card-title {
        font-size: 0.9rem;
        min-height: 2.5rem;
    }
    .category-carousel .meta-item {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }
}

@media (max-width: 480px) {
    .category-carousel .carousel-card {
        width: 160px;
        /* fixed small size on very narrow screens */
    }
    .category-carousel .card-title {
        font-size: 0.8rem;
        min-height: 2.2rem;
    }
}

/* ===== MUSIC PLAYER SECTION ===== */
.music-player-section {
    margin-bottom: 3rem;
}

.action-container {
    background: linear-gradient(145deg, #8a74c0, #6a4e9b);
    border: 4px solid #fff;
    border-radius: 60px !important;
    padding: 2.5rem 1.5rem;
    box-shadow: 0 20px 30px rgba(0,0,0,0.3);
}

.action-container .bg-white {
    background: rgba(255,255,255,0.2) !important;
    backdrop-filter: blur(10px);
    border: 3px solid #ffb347;
}

.action-container .fa-music {
    color: #ffb347 !important;
}

.action-container .btn {
    border-radius: 50px;
    font-weight: 700;
    padding: 0.8rem 2rem;
    box-shadow: 0 8px 0 rgba(0,0,0,0.2);
    transition: all 0.15s;
    border: none;
}

.action-container .btn:active {
    transform: translateY(4px);
    box-shadow: 0 4px 0 rgba(0,0,0,0.2);
}

.action-container .btn-warning {
    background-color: #ffb347;
    color: #2c3e50;
}

.action-container .btn-danger {
    background-color: #dc3545;
    color: #fff;
}

.action-container .btn-light {
    background-color: #f8f9fa;
    color: #2c3e50;
}

#song-count {
    font-size: 1.2rem;
    background: rgba(0,0,0,0.3);
    padding: 0.2rem 1rem;
    border-radius: 30px;
}

/* ===== BOTTOM MUSIC PLAYER ===== */
.bottom-player {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(0deg, #2c2c44, #3a3a5e);
    backdrop-filter: blur(10px);
    border-top: 4px solid #ffb347;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.4);
    padding: 1rem 0;
    z-index: 1050;
    transition: transform 0.3s ease;
}

.bottom-player.hidden {
    transform: translateY(100%);
}

.bottom-player .container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.song-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    animation: scrollText 15s linear infinite;
}

@keyframes scrollText {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.player-controls {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.control-btn {
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffb347;
    font-size: 1.2rem;
    transition: background 0.2s, transform 0.2s;
}

.control-btn:hover {
    background: rgba(255,215,0,0.3);
    transform: scale(1.1);
}

.control-btn:active {
    transform: scale(0.95);
}

.volume-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #fff;
}

.volume-slider {
    width: 120px;
    height: 6px;
    border-radius: 10px;
    background: rgba(255,255,255,0.2);
    outline: none;
    -webkit-appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #ffb347;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #fff;
}

.song-progress {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}

.progress-bar {
    height: 100%;
    background: #ffb347;
    width: 0;
    transition: width 0.1s linear;
}

.playlist-info {
    display: flex;
    justify-content: space-between;
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
}

.close-player {
    background: none;
    border: none;
    color: #fff;
    opacity: 0.7;
    font-size: 1.2rem;
    align-self: center;
    cursor: pointer;
    transition: opacity 0.2s;
}

.close-player:hover {
    opacity: 1;
}

/* ===== FEATURES SECTION ===== */
#features {
    background: rgba(0,0,0,0.2);
    border-radius: 40px;
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
}

#features h2 {
    font-size: 2rem;
    color: #ffd966;
    text-shadow: 2px 2px 0 #7e6bb0;
}

#features article {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    border-radius: 30px;
    border: 2px solid rgba(255,215,0,0.2);
    transition: transform 0.2s;
}

#features article:hover {
    transform: scale(1.02);
}

#features ul {
    list-style: none;
    padding-left: 0;
}

#features li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#features li i {
    width: 1.5rem;
    text-align: center;
    color: #ffb347;
}

/* Feature highlights grid */
.feature-highlights .card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255,215,0,0.2);
    border-radius: 25px;
    padding: 1.2rem 0.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-highlights .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.2);
}

.feature-highlights .card i {
    filter: drop-shadow(2px 4px 4px rgba(0,0,0,0.2));
}

.feature-highlights .card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0.5rem 0 0.25rem;
}

.feature-highlights .card p {
    font-size: 0.7rem;
    opacity: 0.9;
    margin-bottom: 0;
}

/* ===== INSTALL GUIDE ===== */
.install-guide {
    background: linear-gradient(145deg, #7e57c2, #5e3a9e);
    border-radius: 50px;
    padding: 2.5rem 1.5rem;
    /* reduced horizontal padding */
    margin: 2rem 0 3rem;
    border: 4px solid #ffb347;
    box-shadow: 0 15px 0 #b87c2e, 0 20px 30px rgba(0,0,0,0.3);
}

.install-guide h2 {
    font-size: 2rem;
    color: #ffd966;
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 0 #2c3e50;
}

.install-guide .row {
    align-items: center;
    margin: 0;
    /* remove negative margins */
}

.install-guide .col-md-4,
.install-guide .col-md-8 {
    padding: 0 0.5rem;
}

.install-guide .fa-arrow-down {
    color: #ffd966;
    filter: drop-shadow(4px 6px 0 #2c3e50);
    animation: bounceArrow 2s infinite;
    font-size: 3.5rem;
    /* slightly smaller on mobile */
}

@keyframes bounceArrow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

.install-guide ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.install-guide li {
    font-size: 1rem;
    color: #fff;
    display: flex;
    align-items: flex-start;
    /* align top so text wraps nicely */
    gap: 0.8rem;
    margin-bottom: 1rem;
    background: rgba(255,255,255,0.1);
    padding: 0.8rem 1rem;
    border-radius: 40px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,215,0,0.3);
    transition: transform 0.2s, background 0.2s;
    word-break: break-word;
    /* prevent long text overflow */
}

.install-guide li:hover {
    transform: translateX(5px);
    background: rgba(255,255,255,0.2);
}

.install-guide li i:first-child {
    font-size: 1.3rem;
    color: #28a745;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    padding: 0.5rem;
    width: 2.2rem;
    height: 2.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    /* prevent icon from shrinking */
}

.install-guide li .fa-share {
    background: #fff;
    color: #2c3e50;
    padding: 0.2rem 0.4rem;
    border-radius: 6px;
    font-size: 0.8rem;
    display: inline-block;
}

.install-guide li strong {
    color: #ffd966;
    font-weight: 700;
    margin-right: 0.2rem;
}

/* Responsive fixes */
@media (max-width: 768px) {
    .install-guide {
        padding: 2rem 1rem;
    }
    .install-guide h2 {
        font-size: 1.6rem;
    }
    .install-guide .fa-arrow-down {
        font-size: 3rem;
    }
    .install-guide li {
        font-size: 0.9rem;
        padding: 0.7rem;
    }
    .install-guide li i:first-child {
        font-size: 1.1rem;
        width: 2rem;
        height: 2rem;
    }
}

@media (max-width: 576px) {
    .install-guide .row {
        flex-direction: column;
        text-align: center;
    }
    .install-guide .col-md-4 {
        margin-bottom: 1rem;
    }
    .install-guide li {
        text-align: left;
        /* keep list left-aligned */
    }
}

/* ===== TESTIMONIALS – BETTER CONTRAST ===== */
#testimonials .bg-white {
    background: linear-gradient(145deg, #f7d97e, #f3cd6b) !important;
    /* richer gold */
    border-radius: 50px;
    border: 4px solid #ffb347;
    box-shadow: 0 15px 0 #b87c2e, 0 20px 30px rgba(0,0,0,0.2);
    padding: 2.5rem 2rem;
}

#testimonials i.fa-quote-left {
    color: #2c3e50;
    opacity: 0.9;
    font-size: 2rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(255,255,255,0.3);
}

#testimonials p {
    font-size: 1.2rem;
    color: #1e2b37;
    /* slightly darker than #2c3e50 */
    line-height: 1.7;
    margin-bottom: 1rem;
    text-shadow: 0 1px 2px rgba(255,255,255,0.3);
}

#testimonials p:last-child {
    font-weight: 700;
    color: #4a2c7a;
    /* deeper purple */
}

/* Responsive */
@media (max-width: 768px) {
    #testimonials .bg-white {
        padding: 1.5rem;
    }
    #testimonials p {
        font-size: 1rem;
    }
}

/* ===== FAQ SECTION ===== */
#faq {
    background: rgba(0,0,0,0.2);
    border-radius: 40px;
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
}

#faq h2 {
    font-size: 2rem;
    color: #ffd966;
    text-shadow: 2px 2px 0 #7e6bb0;
}

.accordion-item {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255,215,0,0.2);
    border-radius: 20px !important;
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-header button {
    background: transparent;
    color: #fff;
    font-weight: 600;
    padding: 1.2rem 1.5rem;
    border: none;
    box-shadow: none;
}

.accordion-header button:not(.collapsed) {
    background: rgba(255,215,0,0.1);
    color: #ffd966;
}

.accordion-body {
    color: rgba(255,255,255,0.9);
    background: rgba(0,0,0,0.2);
    padding: 1.2rem 1.5rem;
}

/* ===== SUPPORT SECTION ===== */
#support {
    background: linear-gradient(145deg, #ffb347, #ff9f1c);
    border-radius: 60px;
    padding: 2.5rem 1.5rem;
    margin-bottom: 2rem;
}

#support h3 {
    color: #2c3e50;
    font-size: 1.8rem;
}

#support p {
    color: #2c3e50;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

#support .btn {
    background-color: #2c3e50;
    border: none;
    color: #ffb347;
    font-weight: 700;
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    box-shadow: 0 8px 0 #1a2632;
    transition: transform 0.15s, box-shadow 0.15s;
}

.tip-amount button {
    color: #2E8B57;
    background-color: transparent;
    border: 1px #333 solid;
    border-radius: 8px;
    padding: 0.85rem;
}

#support .btn:active {
    transform: translateY(4px);
    box-shadow: 0 4px 0 #1a2632;
}

/* ====== DONATE OFFCANVAS ===== */
/*horizontal scroll*/
.inline-horizontal-scroll {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
}

.tip-amount {
    display: inline-block;
    margin: 0 10px;
}

.inline-horizontal-scroll::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar for Chrome, Safari and Opera */
}

.inline-horizontal-scroll {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.inline-horizontal-static {
    position: static;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
}

.inline-horizontal-static h6 {
    display: inline;
    margin-right: 2em;
}

/* ===== OFFCANVAS STYLES ===== */
.offcanvas {
    background: linear-gradient(145deg, #2c2c44, #1f1f33) !important;
    color: #fff;
    border: none;
}

.offcanvas-header {
    border-bottom: 3px solid #ffb347;
}

.offcanvas-header.bg-warning {
    background: #ffb347 !important;
}

.offcanvas-header.bg-warning .offcanvas-title {
    color: #2c3e50;
}

.offcanvas-header.bg-danger {
    background: #d44e5c !important;
}

.offcanvas-body {
    background: rgba(0,0,0,0.2);
}

/* ===== OFF CANVAS VIDEO GRID – IMPROVED CARDS ===== */
#videoGrid,
#favoritesGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0.5rem;
}

/* Card base – consistent with category cards but for grid */
#videoGrid .video-card,
#favoritesGrid .video-card {
    background: #1e1e2a;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 215, 0, 0.2);
    display: flex;
    flex-direction: column;
    height: 100%;
}

#videoGrid .video-card:hover,
#favoritesGrid .video-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.8);
    border-color: #ffb347;
}

/* Image container */
#videoGrid .position-relative,
#favoritesGrid .position-relative {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #2a2a3a;
}

/* Thumbnail image */
#videoGrid .video-thumb,
#favoritesGrid .video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

#videoGrid .video-card:hover .video-thumb,
#favoritesGrid .video-card:hover .video-thumb {
    transform: scale(1.05);
}

/* Shimmer overlay handling – keep as is, but ensure it disappears on load */
#videoGrid .image-container.loaded .shimmer-overlay,
#favoritesGrid .image-container.loaded .shimmer-overlay {
    display: none;
}

/* Play overlay (centered play button) */
#videoGrid .play-overlay,
#favoritesGrid .play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
    z-index: 10;
    cursor: pointer;
}

#videoGrid .play-overlay i,
#favoritesGrid .play-overlay i {
    color: #ffb347;
    font-size: 1.8rem;
}

#videoGrid .video-card:hover .play-overlay,
#favoritesGrid .video-card:hover .play-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Favorite badge (heart) */
#videoGrid .favorite-badge,
#favoritesGrid .favorite-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    z-index: 10;
    border: 1px solid rgba(255, 215, 0, 0.5);
}

#videoGrid .favorite-badge:hover,
#favoritesGrid .favorite-badge:hover {
    background: rgba(220, 20, 60, 0.4);
    transform: scale(1.1);
}

#videoGrid .favorite-badge .fas.fa-heart.text-danger,
#favoritesGrid .favorite-badge .fas.fa-heart.text-danger {
    color: rgba(255, 255, 255, 0.7); 
}

.favorite-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.5);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.2s;
}
.favorite-badge i {
    font-size: 1.2rem;
    color: #fff;
}
.favorite-badge:hover {
    transform: scale(1.1);
}

/* Views badge */
#videoGrid .views-badge,
#favoritesGrid .views-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    border: 1px solid #ffb347;
    z-index: 5;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

#videoGrid .views-badge i,
#favoritesGrid .views-badge i {
    color: #ffb347;
    font-size: 0.75rem;
}

/* Card content */
#videoGrid .video-card-content,
#favoritesGrid .video-card-content {
    padding: 1rem 1rem 1.2rem;
    background: #1e1e2a;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Title */
#videoGrid .video-title,
#favoritesGrid .video-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    color: #ffffff;
    margin-bottom: 0.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.8rem;
    word-break: break-word;
}

/* Channel name */
#videoGrid .video-channel,
#favoritesGrid .video-channel {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.8rem;
    font-weight: 500;
}

/* Watch now button */
#videoGrid .watch-btn,
#favoritesGrid .watch-btn {
    background: #ffb347;
    border: none;
    border-radius: 30px;
    color: #2c3e50;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.6rem 0;
    width: 100%;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 0 #b87c2e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: auto;
    /* push to bottom if content varies */
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#videoGrid .watch-btn:active,
#favoritesGrid .watch-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #b87c2e;
}

#videoGrid .watch-btn i,
#favoritesGrid .watch-btn i {
    margin-right: 0.3rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #videoGrid,
    #favoritesGrid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }

    #videoGrid .video-title,
    #favoritesGrid .video-title {
        font-size: 0.9rem;
        min-height: 2.5rem;
    }

    #videoGrid .watch-btn,
    #favoritesGrid .watch-btn {
        font-size: 0.8rem;
        padding: 0.5rem 0;
    }

    #videoGrid .views-badge,
    #favoritesGrid .views-badge {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }

    #videoGrid .play-overlay,
    #favoritesGrid .play-overlay {
        width: 48px;
        height: 48px;
    }

    #videoGrid .play-overlay i,
    #favoritesGrid .play-overlay i {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    #videoGrid,
    #favoritesGrid {
        grid-template-columns: 1fr;
        /* single column on very small screens */
    }
}

/* Shimmer effect (keep as is) */
.shimmer-card {
    background: #2a2a3a;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}
.shimmer-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
    z-index: 1060;
}

.toast {
    border-radius: 30px;
    border: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    font-size: 0.9rem;
    font-weight: 600;
}

.toast.bg-success {
    background: #28a745;
}
.toast.bg-warning {
    background: #ffc107;
    color: #2c3e50;
}
.toast.bg-danger {
    background: #dc3545;
}
.toast.bg-info {
    background: #17a2b8;
}

.toast .btn-close {
    filter: invert(1);
}

/* VIDEO MODAL BOOTSTRAP OVERRIDE */
#videoPlayerModal ~ .modal-backdrop.show {
    opacity: 1; /*Default is usually 0.5 */
    background-color: rgb(0, 0, 0);
    overflow-y: scroll !important;
    backdrop-filter: blur(24px);
}

/* ===== FOOTER ===== */
footer {
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(5px);
    border-top: 4px solid #ffb347;
    margin-top: 0 !important;
    padding: 2rem 0 1rem;
}

footer p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

footer a {
    color: #ffb347;
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: #ffd966;
    text-decoration: underline;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 992px) {
    html {
        font-size: 15px;
    }
    .hero-section {
        padding: 2rem 1rem;
    }
}

@media (max-width: 768px) {
    .site-branding h1 {
        font-size: 1.2rem;
    }
    .site-branding p {
        font-size: 0.7rem;
    }
    header .btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .section-nav a {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }

    .hero-section h1 {
        font-size: 1.8rem;
    }
    .hero-section .lead {
        font-size: 1rem;
    }

    .video-categories h2 {
        font-size: 1.5rem;
    }

    .action-container {
        padding: 1.5rem;
    }
    .action-container .btn {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }

    .feature-highlights .card {
        padding: 0.8rem;
    }
    .feature-highlights .card i {
        font-size: 2rem;
    }
    .feature-highlights .card h4 {
        font-size: 0.8rem;
    }

    .install-guide {
        padding: 2rem 1rem;
    }
    .install-guide h2 {
        font-size: 1.6rem;
    }
    .install-guide li {
        font-size: 1rem;
        padding: 0.6rem 1rem;
    }
    .install-guide li i:first-child {
        font-size: 1.2rem;
        width: 2rem;
        height: 2rem;
    }

    #testimonials .bg-white {
        padding: 1.5rem;
    }
    #testimonials p {
        font-size: 1rem;
    }

    #faq h2 {
        font-size: 1.5rem;
    }
    .accordion-header button {
        font-size: 0.9rem;
    }

    #support h3 {
        font-size: 1.5rem;
    }
    #support p {
        font-size: 0.9rem;
    }
    #support .btn {
        padding: 0.6rem 2rem;
    }
}

@media (max-width: 576px) {
    body {
        padding-bottom: 120px;
    }
    .section-nav .container {
        justify-content: flex-start;
    }

    .category-carousel .video-card {
        width: 160px;
    }
    .category-carousel .video-card .card-title {
        font-size: 0.8rem;
    }

    .player-controls {
        gap: 0.8rem;
    }
    .control-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .volume-slider {
        width: 80px;
    }

    .bottom-player .container {
        gap: 0.2rem;
    }

    .feature-highlights .col-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .feature-highlights .card {
        margin-bottom: 0.5rem;
    }
}

/* ===== ANIMATIONS ===== */
.animate-beat {
    animation: heartBeat 2s infinite;
}
@keyframes heartBeat {
    0% {
        transform: scale(1);
    }
    15% {
        transform: scale(1.2);
    }
    30% {
        transform: scale(1);
    }
    45% {
        transform: scale(1.2);
    }
    70% {
        transform: scale(1);
    }
}

.animate-pop {
    animation: pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes pop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

/* ===== HELPER CLASSES ===== */
.text-warning {
    color: #ffb347 !important;
}
.bg-primary {
    background: linear-gradient(145deg, #6a4e9b, #9b7fd3) !important;
}
.bg-dark {
    background: rgba(0,0,0,0.5) !important;
}