/* 1. GLOBAL DESIGN SYSTEM (YOZIY KIDS PREMIUM PWA) */
:root {
    --yoziy-orange: #FF8F00;
    --yoziy-yellow: #FFD54F;
    --yoziy-bg: #FFFDF5;
    --yoziy-text: #333;
    --yoziy-blue: #1A237E;
    --yoziy-red: #F44336;
    --barbo-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    --premium-gradient: radial-gradient(circle at 50% -20%, #FFD54F 0%, #FF8F00 100%);
    --button-gradient: linear-gradient(180deg, #FF9800, #F44336);
}

@keyframes popIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

* {
    margin: 0; padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Fredoka', sans-serif !important;
    background-color: var(--yoziy-bg);
    color: var(--yoziy-text);
    overflow-x: hidden;
    line-height: 1.4;
    user-select: none;
}

/* 2. HEADER (PREMIUM CURVED) */
.app-header-premium {
    background: var(--premium-gradient);
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 0 50% 50% / 0 0 30px 30px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 5000;
    box-shadow: 0 4px 15px rgba(255, 143, 0, 0.3);
}

.header-logo {
    height: 140px;
    margin-top: 40px;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.2));
    z-index: 5100;
}

.header-profile-btn {
    position: absolute;
    right: 15px;
    top: 15px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(255,255,255,0.4);
    font-size: 20px;
    cursor: pointer;
}

/* 3. CATEGORY SCROLL (HORIZONTAL) */
.category-container {
    margin-top: 120px;
    padding: 10px 0;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    display: flex;
    gap: 12px;
    padding-left: 15px;
}

.category-container::-webkit-scrollbar { display: none; }

.cat-pill {
    display: inline-flex;
    padding: 10px 22px;
    background: white;
    border-radius: 20px;
    font-weight: 800;
    font-size: 14px;
    color: #888;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 2px solid #F0F0F0;
    cursor: pointer;
    transition: 0.3s;
}

.cat-pill.active {
    background: #FFF3E0;
    color: var(--yoziy-orange);
    border-color: var(--yoziy-orange);
    transform: scale(1.05);
}

/* 4. FEATURED SECTION */
.featured-section {
    padding: 0 15px;
    margin-bottom: 25px;
}

.featured-card {
    background: white;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 4px solid white;
}

.featured-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}

.featured-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
}

.featured-tag {
    background: var(--yoziy-orange);
    color: white;
    font-size: 10px;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 8px;
}

.featured-title {
    font-size: 20px;
    font-weight: 900;
}

/* 5. VIDEO GRID (PREMIUM) */
.video-grid-premium {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 0 15px 120px 15px;
}

.premium-video-card {
    background: white;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    border: 2.5px solid #F0F0F0;
    transition: 0.3s ease;
}

.premium-video-card:active {
    transform: scale(0.96);
}

.thumb-wrapper {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.thumb-wrapper img {
    width: 100%; height: 100%; object-fit: cover;
}

.video-status-badge {
    position: absolute;
    top: 8px; right: 8px;
    background: rgba(255,255,255,0.85);
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.video-name-premium {
    padding: 12px 10px;
    text-align: center;
    font-weight: 800;
    font-size: 13px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 6. SKELETON SCREEN */
.skeleton-card {
    background: #EEE;
    border-radius: 22px;
    aspect-ratio: 16/22;
    background: linear-gradient(90deg, #F0F0F0 25%, #E0E0E0 50%, #F0F0F0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* 7. BOTTOM NAV (STUCK) */
.bottom-nav-premium {
    position: fixed;
    bottom: 0; left: 0; width: 100%;
    height: 85px;
    background: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #EEE;
    z-index: 5000;
    box-shadow: 0 -5px 25px rgba(0,0,0,0.08);
}

.nav-item-premium {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #AAA;
    font-weight: 800;
    font-size: 12px;
    transition: 0.3s;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 20px;
}

.nav-item-premium.active {
    color: var(--yoziy-orange);
    background: #FFF3E0;
}

.nav-item-premium i {
    font-size: 26px;
    margin-bottom: 2px;
}

/* 8. MODALS & OTHER */
.full-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
    z-index: 10000;
    align-items: center; justify-content: center;
}

.modal-content-premium {
    background: var(--yoziy-bg);
    width: 90%;
    max-width: 400px;
    border-radius: 40px;
    padding: 30px;
    text-align: center;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-premium {
    width: 100%;
    background: var(--button-gradient);
    color: white;
    padding: 18px;
    border: none;
    border-radius: 22px;
    font-weight: 900;
    font-size: 18px;
    box-shadow: 0 8px 0px #BF360C;
    cursor: pointer;
    transition: 0.2s;
}

.btn-premium:active {
    transform: translateY(4px);
    box-shadow: 0 4px 0px #BF360C;
}