html,
body {
    height: 100%;
    overflow: hidden;
}

body { font-family: 'Inter', sans-serif; background-color: #f3f4f6; }
.font-arabic { font-family: 'Amiri', serif; }
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
.bg-app-blue { background: radial-gradient(circle at 18% 6%, rgba(125, 211, 252, 0.34), transparent 32%), linear-gradient(155deg, #07598f 0%, #0c72b8 48%, #064a86 100%); }
.text-app-blue { color: #1e3a8a; }
.ring-app-blue { --tw-ring-color: #1e3a8a; }
.border-app-blue { border-color: #1e3a8a; }
.fade-enter { opacity: 0; transform: translateY(10px) scale(0.995); filter: blur(2px); }
.fade-enter-active { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); transition: opacity 360ms ease, transform 360ms ease, filter 360ms ease; }

:root {
    --gold: #d7a83f;
    --deep-green: #063f35;
    --ink: #102a43;
}

.bg-premium-canvas {
    background:
        radial-gradient(circle at 50% -10%, rgba(215, 168, 63, 0.18), transparent 34%),
        linear-gradient(180deg, #eef4f3 0%, #f8fafc 45%, #e5e7eb 100%);
}

.app-shell {
    height: 100dvh;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.26), 0 0 0 1px rgba(255,255,255,0.7) inset;
}

@media (min-width: 640px) {
    .app-shell {
        height: calc(100dvh - 4rem);
        min-height: calc(100dvh - 4rem);
    }
}

.premium-aurora {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: inherit;
    pointer-events: none;
}

.premium-aurora::before,
.premium-aurora::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    filter: blur(38px);
    opacity: 0.42;
}

.premium-aurora::before {
    right: -90px;
    top: -80px;
    background: rgba(186, 230, 253, 0.42);
}

.premium-aurora::after {
    left: -110px;
    bottom: -120px;
    background: rgba(14, 165, 233, 0.35);
}

.brand-lockup {
    width: 132px;
    min-height: 38px;
    display: flex;
    align-items: center;
    padding: 5px 8px;
    border-radius: 15px;
    background: rgba(255,255,255,0.09);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(18px);
    box-shadow: 0 14px 28px rgba(3, 47, 77, 0.22), inset 0 1px 0 rgba(255,255,255,0.15);
}

.brand-logo {
    width: 116px;
    height: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.18));
}

.home-hero {
    overflow: hidden;
    height: 36%;
    min-height: 238px;
    max-height: 286px;
    padding: 10px 20px 18px !important;
    transition: height 420ms cubic-bezier(0.22, 1, 0.36, 1),
        min-height 420ms cubic-bezier(0.22, 1, 0.36, 1),
        max-height 420ms cubic-bezier(0.22, 1, 0.36, 1),
        padding 420ms cubic-bezier(0.22, 1, 0.36, 1),
        border-radius 420ms cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 420ms ease;
}

.hero-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 13px;
    max-height: 50px;
    overflow: hidden;
    transition: opacity 260ms ease, transform 360ms cubic-bezier(0.22, 1, 0.36, 1),
        max-height 360ms cubic-bezier(0.22, 1, 0.36, 1), margin 360ms ease;
}

.top-time-stack {
    min-width: 0;
}

.current-clock {
    color: #ffffff;
    font-size: 19px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0;
    text-shadow: 0 10px 20px rgba(2, 38, 68, 0.25);
    white-space: nowrap;
}

.top-date-line {
    color: rgba(255,255,255,0.86);
    font-size: 8.5px;
    line-height: 1.2;
    font-weight: 800;
    white-space: nowrap;
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 3px;
}

.hero-icon-btn {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: rgba(255,255,255,0.15);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 10px 22px rgba(2, 38, 68, 0.20), inset 0 1px 0 rgba(255,255,255,0.16);
    backdrop-filter: blur(16px);
}

.hero-summary-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 74px;
    padding: 10px 12px;
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.20), rgba(255,255,255,0.07)),
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.12), transparent 48%);
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 18px 38px rgba(2, 38, 68, 0.24), inset 0 1px 0 rgba(255,255,255,0.22);
    backdrop-filter: blur(18px);
    transform-origin: top center;
    transition: min-height 420ms cubic-bezier(0.22, 1, 0.36, 1),
        padding 420ms cubic-bezier(0.22, 1, 0.36, 1),
        border-radius 420ms cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 420ms ease, transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-current-title {
    font-size: 27px;
    font-weight: 950;
}

.hero-summary-card .hero-current-title,
.hero-summary-card #heroNextPrayerName,
.hero-summary-card #countdownDisplay {
    color: #ffffff !important;
}

.hero-prayer-main,
.hero-prayer-next {
    min-width: 0;
}

.hero-prayer-ring {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-prayer-ring svg {
    width: 48px;
    height: 48px;
    transform: rotate(-90deg);
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.18));
}

.hero-prayer-ring .ring-track {
    color: rgba(255,255,255,0.16);
}

.hero-prayer-ring .ring-progress {
    color: #ffffff;
    transition: stroke-dasharray 500ms ease;
}

.prayer-rail-shell {
    position: relative;
    margin-inline: -2px;
}

.prayer-rail {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0 2px 2px;
    scroll-behavior: smooth;
}

.prayer-card {
    flex: 0 0 calc((100% - 32px) / 5);
    min-width: 0;
    height: 42px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    scroll-snap-align: center;
    border: 1px solid transparent;
    background: transparent;
    color: rgba(255,255,255,0.84);
    box-shadow: none;
    backdrop-filter: none;
}

.prayer-card.is-current {
    background: rgba(255,255,255,0.22);
    color: #ffffff;
    border-color: rgba(255,255,255,0.30);
    box-shadow: 0 16px 28px rgba(2, 38, 68, 0.25), inset 0 1px 0 rgba(255,255,255,0.24);
}

.prayer-card.is-fardhu,
.prayer-card.is-fardhu svg {
    color: #fff3b0 !important;
}

.prayer-card svg {
    width: 13px;
    height: 13px;
    margin-bottom: 2px;
}

.prayer-card p {
    line-height: 1.05;
}

.prayer-card p:first-of-type {
    font-size: 8px;
}

.prayer-card p:last-of-type {
    font-size: 9px;
    margin-top: 1px !important;
}

.home-hero .mt-2\.5 {
    margin-top: 6px !important;
    max-height: 48px;
    overflow: hidden;
    transition: opacity 260ms ease, transform 360ms cubic-bezier(0.22, 1, 0.36, 1),
        max-height 360ms cubic-bezier(0.22, 1, 0.36, 1), margin 360ms ease;
}

#view-home.home-mini .home-hero {
    height: 104px;
    min-height: 104px;
    max-height: 104px;
    padding: 10px 8px 12px !important;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 16px 32px rgba(2, 38, 68, 0.24);
}

#view-home.home-mini .hero-topbar,
#view-home.home-mini .home-hero .mt-2\.5 {
    opacity: 0;
    transform: translateY(-8px);
    max-height: 0;
    margin: 0 !important;
    pointer-events: none;
}

#view-home.home-mini .hero-summary-card {
    min-height: 72px;
    padding: 9px 11px;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(2, 38, 68, 0.22), inset 0 1px 0 rgba(255,255,255,0.24);
}

#view-home.home-mini .hero-current-title {
    font-size: 26px;
}

#view-home.home-mini .hero-prayer-ring,
#view-home.home-mini .hero-prayer-ring svg {
    width: 46px;
    height: 46px;
}

#view-home.home-mini > [data-lenis-prevent] {
    margin-top: 0 !important;
}

.premium-action span:first-child,
.premium-card,
#dayTabsContainer > button,
#mutabaahAccordionContainer > div {
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.055), 0 1px 0 rgba(255,255,255,0.85) inset;
}

.premium-action span:first-child {
    position: relative;
    overflow: hidden;
}

.premium-action span:first-child::after,
.premium-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.55), transparent 42%);
    opacity: 0;
    transition: opacity 260ms ease;
    pointer-events: none;
}

.premium-action:active span:first-child,
.premium-card:active {
    transform: translateY(1px) scale(0.99);
}

.premium-action:hover span:first-child::after,
.premium-card:hover::after {
    opacity: 1;
}

.premium-card {
    position: relative;
    overflow: hidden;
}

.learn-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 2px;
}

.section-title-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    padding-inline: 2px;
}

.section-kicker {
    color: #0f172a;
    font-size: 11px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: 0;
    text-transform: uppercase;
}

.section-title-row h3 {
    color: #64748b;
    font-size: 10px;
    line-height: 1.1;
    font-weight: 850;
    margin-top: 4px;
}

.section-link-btn {
    border-radius: 999px;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
    padding: 8px 11px;
}

.video-series-rail {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 2px 2px 8px;
    margin-inline: -2px;
}

.video-series-card {
    position: relative;
    flex: 0 0 252px;
    aspect-ratio: 16 / 10.25;
    overflow: hidden;
    border-radius: 7px;
    background: #020617;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
    scroll-snap-align: start;
    isolation: isolate;
}

.video-series-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.video-series-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(2, 6, 23, 0.86) 100%);
    z-index: 1;
}

.video-series-card:active img {
    transform: scale(1.025);
}

.video-series-content {
    position: absolute;
    inset-inline: 12px;
    bottom: 11px;
    z-index: 2;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 10px;
}

.video-series-content p {
    color: rgba(255,255,255,0.68);
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.video-series-content h4 {
    color: #ffffff;
    font-size: 14px;
    line-height: 1.05;
    font-weight: 950;
    margin-top: 3px;
}

.video-play-pill {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(255,255,255,0.92);
    color: #0f5f9a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 12px 24px rgba(2, 6, 23, 0.24);
}

.series-top {
    min-height: 134px;
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 18px 42px rgba(2, 38, 68, 0.26);
}

.series-top::after {
    content: "";
    position: absolute;
    inset-inline: 18px;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.38), transparent);
    z-index: 2;
}

#view-series {
    scroll-behavior: smooth;
    background:
        radial-gradient(circle at 50% -8%, rgba(14, 116, 144, 0.13), transparent 32%),
        linear-gradient(180deg, #f8fafc 0%, #eef4f7 54%, #f8fafc 100%);
    overscroll-behavior: contain;
}

.series-back-btn {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 12px 24px rgba(2, 38, 68, 0.22), inset 0 1px 0 rgba(255,255,255,0.16);
    backdrop-filter: blur(16px);
}

.series-content {
    position: relative;
}

.series-content::before {
    content: "";
    position: absolute;
    inset: 0 14px auto;
    height: 180px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.11), transparent 68%);
    filter: blur(14px);
    pointer-events: none;
}

.video-player-card {
    position: relative;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.98)) padding-box,
        linear-gradient(135deg, rgba(255,255,255,0.98), rgba(14, 116, 144, 0.30), rgba(215, 168, 63, 0.26)) border-box;
    border-radius: 31px;
    border: 1px solid transparent;
    overflow: hidden;
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.13), 0 1px 0 rgba(255,255,255,0.95) inset;
    isolation: isolate;
}

.video-player-card::before {
    content: "";
    position: absolute;
    inset: 1px 1px auto;
    height: 42%;
    border-radius: 29px 29px 0 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.16), transparent);
    pointer-events: none;
    z-index: 2;
}

.video-player-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background:
        radial-gradient(circle at 50% 40%, rgba(14, 116, 144, 0.12), transparent 42%),
        #020617;
    overflow: hidden;
}

.video-player-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), transparent 24%);
    pointer-events: none;
    z-index: 1;
}

.video-player-frame iframe,
.video-player-frame img,
.video-embed-trigger {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

.video-player-frame iframe {
    background: #020617;
    position: relative;
    z-index: 0;
    pointer-events: auto !important;
}

.video-player-frame img {
    object-fit: cover;
}

.video-embed-trigger {
    position: relative;
    padding: 0;
    overflow: hidden;
    text-align: left;
    background: #020617;
    color: #ffffff;
}

.video-embed-trigger img {
    position: absolute;
    inset: 0;
    filter: saturate(1.03) contrast(1.04);
    transform: scale(1.01);
}

.video-embed-trigger::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.04), rgba(2, 6, 23, 0.44));
}

.video-embed-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 70px;
    height: 70px;
    border-radius: 999px;
    transform: translate(-50%, -50%);
    background: rgba(255,255,255,0.94);
    color: #0f5f9a;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 44px rgba(0,0,0,0.28);
    transition: transform 200ms ease, background 200ms ease;
}

.video-embed-trigger:active .video-embed-play {
    transform: translate(-50%, -50%) scale(0.94);
    background: #ffffff;
}

.video-embed-title {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 16px;
    z-index: 2;
    font-size: 14px;
    line-height: 1.15;
    font-weight: 900;
    text-shadow: 0 2px 12px rgba(0,0,0,0.38);
}

.video-player-reset {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 999px;
    background: rgba(255,255,255,0.92);
    color: #0f5f9a;
    padding: 7px 9px;
    font-size: 9px;
    line-height: 1;
    font-weight: 900;
    box-shadow: 0 14px 26px rgba(2,6,23,0.22);
    backdrop-filter: blur(12px);
}

.video-player-reset:active {
    transform: scale(0.96);
}

.video-player-expand {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 999px;
    background: rgba(255,255,255,0.92);
    color: #0f5f9a;
    padding: 7px 9px;
    font-size: 9px;
    line-height: 1;
    font-weight: 900;
    box-shadow: 0 14px 26px rgba(2,6,23,0.22);
    backdrop-filter: blur(12px);
}

.video-player-collapse {
    display: none;
}

.video-player-frame.app-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 220;
    width: 100vw;
    height: 100dvh;
    aspect-ratio: auto;
    border-radius: 0;
    background: #020617;
}

.video-player-frame.app-fullscreen::after {
    display: none;
}

.video-player-frame.app-fullscreen iframe {
    width: 100vw;
    height: 100dvh;
}

.video-player-frame.app-fullscreen .video-player-reset,
.video-player-frame.app-fullscreen .video-player-expand,
.video-player-frame.app-fullscreen .video-player-youtube-link {
    display: none;
}

.video-player-frame.app-fullscreen .video-player-collapse {
    position: absolute;
    top: max(14px, env(safe-area-inset-top));
    right: 14px;
    z-index: 8;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: rgba(255,255,255,0.92);
    color: #0f5f9a;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 30px rgba(2,6,23,0.28);
    backdrop-filter: blur(12px);
}

.video-fullscreen-overlay {
    position: absolute;
    inset: 0;
    z-index: 260;
    background: #020617;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-fullscreen-overlay iframe {
    width: 100%;
    height: 100%;
    border: 0;
    background: #020617;
}

.video-fullscreen-close {
    position: absolute;
    top: max(14px, env(safe-area-inset-top));
    right: 14px;
    z-index: 3;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: rgba(255,255,255,0.92);
    color: #0f5f9a;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 30px rgba(2,6,23,0.28);
    backdrop-filter: blur(12px);
}

.video-fullscreen-youtube {
    position: absolute;
    left: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    background: rgba(255,255,255,0.92);
    color: #0f5f9a;
    padding: 9px 11px;
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
    box-shadow: 0 16px 30px rgba(2,6,23,0.26);
    backdrop-filter: blur(12px);
}

body.video-fullscreen-active .bottom-nav,
body.video-fullscreen-active #toast {
    display: none !important;
}

.video-player-youtube-link {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.76);
    color: #ffffff;
    padding: 7px 9px;
    font-size: 9px;
    line-height: 1;
    font-weight: 900;
    box-shadow: 0 14px 26px rgba(2,6,23,0.22);
    backdrop-filter: blur(12px);
}

.video-placeholder-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.10), rgba(2, 6, 23, 0.50));
}

.video-placeholder-button {
    min-width: 112px;
    border-radius: 999px;
    background: rgba(255,255,255,0.94);
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 14px;
    font-size: 11px;
    font-weight: 950;
    box-shadow: 0 16px 30px rgba(2, 6, 23, 0.24);
}

.video-player-meta {
    position: relative;
    background:
        linear-gradient(90deg, rgba(248, 250, 252, 0.88), rgba(255,255,255,0.98)),
        radial-gradient(circle at 8% 0%, rgba(215, 168, 63, 0.13), transparent 42%);
}

.video-player-meta::before {
    content: "";
    position: absolute;
    top: 0;
    left: 18px;
    right: 18px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(15,23,42,0.09), transparent);
}

.episode-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
    padding-bottom: 8px;
}

.episode-card {
    position: relative;
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    width: 100%;
    padding: 10px;
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.98), rgba(248,250,252,0.96)) padding-box,
        linear-gradient(135deg, rgba(255,255,255,0.8), rgba(14,116,144,0.12)) border-box;
    border: 1px solid transparent;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.065), inset 0 1px 0 rgba(255,255,255,0.92);
    text-align: left;
    transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
    overflow: hidden;
}

.episode-card:active {
    transform: scale(0.985);
}

.episode-card.is-active {
    background:
        linear-gradient(135deg, rgba(255,255,255,0.98), rgba(235,253,245,0.98)) padding-box,
        linear-gradient(135deg, rgba(16,185,129,0.48), rgba(14,116,144,0.18)) border-box;
    box-shadow: 0 18px 36px rgba(16, 185, 129, 0.14), inset 0 1px 0 rgba(255,255,255,0.94);
}

.episode-card.is-active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 4px;
    border-radius: 0 999px 999px 0;
    background: linear-gradient(180deg, #10b981, #0ea5e9);
    box-shadow: 0 0 18px rgba(16,185,129,0.38);
}

.episode-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    overflow: hidden;
    background: #020617;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.episode-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.14);
    transform-origin: center 43%;
}

.episode-thumb::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 58px;
    height: 25px;
    border-top-right-radius: 16px;
    background:
        linear-gradient(135deg, rgba(2, 6, 23, 0.90), rgba(2, 6, 23, 0.36)),
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.10), transparent 64%);
    backdrop-filter: blur(8px);
    pointer-events: none;
}

.episode-thumb span {
    position: absolute;
    left: 6px;
    bottom: 6px;
    z-index: 2;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.72);
    color: #ffffff;
    font-size: 8px;
    line-height: 1;
    font-weight: 900;
    padding: 4px 6px;
}

.episode-meta h4 {
    color: #0f172a;
    font-size: 12px;
    line-height: 1.18;
    font-weight: 950;
}

.episode-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.episode-play-indicator {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #0f5f9a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}

.episode-card.is-active .episode-play-indicator {
    background: #10b981;
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(16,185,129,0.24);
}

.episode-meta p {
    color: #64748b;
    font-size: 10px;
    line-height: 1.35;
    font-weight: 650;
    margin-top: 4px;
}

.premium-skeleton {
    position: relative;
    overflow: hidden;
    background: linear-gradient(110deg, #ffffff 8%, #f1f5f9 18%, #ffffff 33%);
    background-size: 200% 100%;
    animation: shimmer 1.2s linear infinite;
}

@keyframes shimmer {
    to { background-position-x: -200%; }
}

@keyframes softFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

#tasbihProgressCircle,
#homeProgressRing {
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.35));
}

#clickTasbihArea {
    animation: softFloat 4.5s ease-in-out infinite;
}

.progress-pop {
    transform: scale(1.035);
    transition: transform 220ms ease;
}

.bottom-nav {
    min-height: 68px;
}

.home-nav-orb {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: linear-gradient(145deg, #ecfdf5, #ffffff);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 24px rgba(16, 185, 129, 0.18), inset 0 1px 0 rgba(255,255,255,0.9);
    border: 1px solid rgba(16, 185, 129, 0.14);
}

.settings-sheet {
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom));
}

.settings-section {
    border-radius: 24px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
}

.settings-select-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 0 12px;
}

.settings-select {
    width: 100%;
    appearance: none;
    border: 0;
    outline: none;
    background: transparent;
    color: #0f172a;
    font-size: 12px;
    font-weight: 800;
    padding: 12px 0;
}

.admin-entry-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 24px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #eef2f7;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05), inset 0 1px 0 rgba(255,255,255,0.9);
}

.admin-dashboard {
    min-height: 100%;
}

.admin-panel {
    background: #ffffff;
    border: 1px solid #eef2f7;
    border-radius: 26px;
    padding: 16px;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255,255,255,0.9);
}

.admin-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 13px;
}

.admin-kicker {
    color: #94a3b8;
    font-size: 8px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.admin-panel h3 {
    color: #0f172a;
    font-size: 13px;
    line-height: 1.1;
    font-weight: 950;
}

.admin-mini-btn,
.admin-count-pill {
    border-radius: 999px;
    background: #f8fafc;
    color: #0f766e;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 10px;
    font-size: 10px;
    line-height: 1;
    font-weight: 950;
    border: 1px solid #e2e8f0;
}

.admin-label {
    display: block;
    color: #64748b;
    font-size: 9px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 7px;
}

.admin-input,
.admin-textarea {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 12px;
    font-weight: 750;
    outline: none;
    padding: 12px 13px;
}

.admin-textarea {
    resize: vertical;
    line-height: 1.45;
}

.admin-input:focus,
.admin-textarea:focus {
    border-color: rgba(14, 116, 144, 0.38);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.10);
    background: #ffffff;
}

.admin-primary-btn,
.admin-secondary-btn {
    min-height: 42px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 11px;
    line-height: 1;
    font-weight: 950;
}

.admin-primary-btn {
    color: #ffffff;
    background: linear-gradient(135deg, #0474b8, #07598f);
    box-shadow: 0 14px 24px rgba(7, 89, 143, 0.22);
}

.admin-secondary-btn {
    color: #047857;
    background: #ecfdf5;
    border: 1px solid rgba(16, 185, 129, 0.18);
}

.admin-danger-link {
    width: 100%;
    margin-top: 10px;
    color: #ef4444;
    background: #fff1f2;
    border: 1px solid #ffe4e6;
    border-radius: 15px;
    padding: 10px 12px;
    font-size: 10px;
    line-height: 1;
    font-weight: 950;
}

.admin-preview-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.admin-preview-empty {
    color: #94a3b8;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    padding: 16px;
    font-size: 11px;
    line-height: 1.45;
    font-weight: 700;
    text-align: center;
}

.admin-preview-item {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 11px;
    align-items: center;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    padding: 8px;
}

.admin-preview-thumb {
    aspect-ratio: 16 / 10;
    border-radius: 13px;
    background: #020617;
    overflow: hidden;
}

.admin-preview-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.admin-preview-item h4 {
    color: #0f172a;
    font-size: 11px;
    line-height: 1.22;
    font-weight: 950;
}

.admin-preview-item p {
    color: #64748b;
    font-size: 9px;
    line-height: 1.35;
    font-weight: 700;
    margin-top: 4px;
    word-break: break-word;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
