/* =====================================================================
   WINFALAK — Beranda (Default.aspx)
   ===================================================================== */

.wf-home {
    width: 1080px;
    width: min(1080px, calc(100vw - 96px));
    margin: 0 auto;
    text-align: left;
}
.wf-home h1, .wf-home h2, .wf-home h3 { font-family: var(--wf-font-head); margin: 0; }

/* ---------- tombol ---------- */
.wf-btn, .wf-btn:visited {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 12px;
    font: 600 15px/1.2 var(--wf-font);
    text-decoration: none !important;
    transition: transform .15s, box-shadow .15s, background-color .15s;
}
.wf-btn-primary, .wf-btn-primary:visited {
    background: var(--wf-gold);
    color: #1d1a10 !important;
    box-shadow: 0 8px 24px rgba(232, 184, 74, 0.35);
}
.wf-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(232, 184, 74, 0.45); color: #1d1a10 !important; }
.wf-btn-ghost, .wf-btn-ghost:visited {
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.06);
}
.wf-btn-ghost:hover { background: rgba(255, 255, 255, 0.14); color: #fff !important; }

.wf-eyebrow {
    display: inline-block;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--wf-gold);
    margin-bottom: 10px;
}

/* ---------- HERO ---------- */
.wf-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 44px 44px;
    border-radius: 18px;
    color: #fff;
    background:
        radial-gradient(ellipse at 85% 50%, rgba(56, 102, 210, 0.45), transparent 55%),
        radial-gradient(ellipse at 0% 0%, rgba(19, 121, 91, 0.45), transparent 50%),
        linear-gradient(135deg, #0b1230 0%, #121b45 55%, #0a0f26 100%);
}
.wf-hero-stars, .wf-explore::before {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(1.5px 1.5px at 12% 22%, #fff, transparent),
        radial-gradient(1px 1px at 28% 72%, rgba(255,255,255,.8), transparent),
        radial-gradient(1.5px 1.5px at 44% 38%, rgba(255,255,255,.9), transparent),
        radial-gradient(1px 1px at 58% 84%, rgba(255,255,255,.7), transparent),
        radial-gradient(1.2px 1.2px at 66% 16%, #fff, transparent),
        radial-gradient(1px 1px at 78% 62%, rgba(255,255,255,.8), transparent),
        radial-gradient(1.5px 1.5px at 92% 28%, rgba(255,255,255,.9), transparent),
        radial-gradient(1px 1px at 6% 88%, rgba(255,255,255,.7), transparent),
        radial-gradient(1px 1px at 36% 8%, rgba(255,255,255,.8), transparent),
        radial-gradient(1.2px 1.2px at 86% 90%, #fff, transparent);
    animation: wf-twinkle 5s ease-in-out infinite alternate;
}
.wf-hero-text { position: relative; z-index: 1; flex: 1 1 auto; max-width: 600px; }
.wf-hero h1 {
    text-align: left;
    color: #fff;
    font-size: 38px;
    line-height: 1.18;
    font-weight: 800;
    letter-spacing: -0.3px;
    margin-bottom: 14px;
}
.wf-hero p { color: rgba(255, 255, 255, 0.78); font-size: 16.5px; line-height: 1.65; margin: 0 0 24px; animation: none; }
.wf-hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }

/* Bumi + Bulan mengorbit */
.wf-orbit { position: relative; z-index: 1; flex: 0 0 260px; width: 260px; height: 260px; }
.wf-orbit-ring {
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.18);
}
.wf-earth {
    position: absolute;
    left: 50%; top: 50%;
    width: 110px; height: 110px;
    margin: -55px 0 0 -55px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 28%, rgba(255,255,255,.55), transparent 22%),
        radial-gradient(ellipse 30% 20% at 38% 58%, #3aa76d 60%, transparent 62%),
        radial-gradient(ellipse 22% 30% at 68% 38%, #3aa76d 60%, transparent 62%),
        radial-gradient(ellipse 18% 12% at 62% 76%, #4cb87b 60%, transparent 62%),
        radial-gradient(circle at 35% 35%, #4ea3ff, #1d4fb8 60%, #0b2466 100%);
    box-shadow: inset -18px -14px 30px rgba(0, 0, 0, 0.55), 0 0 40px rgba(78, 163, 255, 0.45);
}
.wf-moon-track {
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    animation: wf-spin 14s linear infinite;
}
.wf-moon {
    position: absolute;
    top: -14px; left: 50%;
    width: 28px; height: 28px;
    margin-left: -14px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fbfbf4, #c9c6b8 60%, #8f8c80 100%);
    box-shadow: 0 0 18px rgba(255, 255, 240, 0.55);
}

/* ---------- HARI INI ---------- */
.wf-today {
    display: grid;
    grid-template-columns: 1fr 1.15fr 1fr;
    gap: 14px;
    margin-top: 18px;
}
.wf-card {
    background: #fff;
    border: 1px solid var(--wf-border);
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 4px 14px rgba(15, 30, 60, 0.06);
}
.wf-card-label { font-size: 12.5px; font-weight: 600; color: var(--wf-text-soft); text-transform: uppercase; letter-spacing: .6px; }
.wf-card-label span { text-transform: none; letter-spacing: 0; }
.wf-date-main { font: 700 19px/1.3 var(--wf-font-head); color: var(--wf-navy); margin-top: 8px; }
.wf-date-hijri { color: var(--wf-primary); font-weight: 600; font-size: 15.5px; margin-top: 4px; }

.wf-card-next {
    background: linear-gradient(135deg, var(--wf-primary) 0%, var(--wf-primary-dark) 100%);
    border-color: transparent;
    color: #fff;
    text-align: center;
    box-shadow: 0 10px 24px rgba(19, 121, 91, 0.3);
}
.wf-card-next .wf-card-label { color: rgba(255, 255, 255, 0.8); }
.wf-next-name { font: 700 18px/1.3 var(--wf-font-head); margin-top: 6px; }
.wf-next-count {
    font: 800 36px/1.1 var(--wf-font-head);
    letter-spacing: 1px;
    font-variant-numeric: tabular-nums;
    margin: 2px 0;
}
.wf-next-at { font-size: 14px; color: rgba(255, 255, 255, 0.85); }

.wf-card-moon { display: flex; align-items: center; gap: 14px; }
.wf-moon-img {
    flex: 0 0 76px;
    width: 76px; height: 76px;
    border-radius: 50%;
    overflow: hidden;
    background: #000;
    box-shadow: 0 0 0 4px #0b1230, 0 6px 18px rgba(0, 0, 0, 0.25);
}
.wf-moon-img img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.35); }
.wf-moon-desc { font-weight: 600; color: var(--wf-navy); margin-top: 6px; line-height: 1.4; }

.wf-prayer-list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-top: 14px;
}
.wf-prayer {
    text-align: center;
    padding: 10px 6px;
    border-radius: 12px;
    background: var(--wf-surface-2);
    border: 1px solid var(--wf-border);
    transition: background-color .2s, border-color .2s;
}
.wf-prayer span { display: block; font-size: 13px; color: var(--wf-text-soft); font-weight: 500; }
.wf-prayer strong { display: block; font: 700 18px/1.3 var(--wf-font-head); color: var(--wf-navy); font-variant-numeric: tabular-nums; }
.wf-prayer-sunnah span::after { content: " (sunnah)"; font-size: 11px; opacity: .7; }
.wf-prayer-next { background: var(--wf-gold-soft); border-color: var(--wf-gold); }
.wf-prayer-next span { color: #8a6410; font-weight: 700; }

/* ---------- Section ---------- */
.wf-section { margin-top: 40px; }
.wf-section-head { margin-bottom: 16px; }
.wf-section-head h2 { font-size: 24px; color: var(--wf-navy); font-weight: 800; }
.wf-section-head p { color: var(--wf-text-soft); margin: 4px 0 0; animation: none; }

/* ---------- Fitur ---------- */
.wf-features {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}
.wf-feature, .wf-feature:visited {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--wf-border);
    color: var(--wf-text);
    text-decoration: none !important;
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.wf-feature:hover {
    transform: translateY(-3px);
    border-color: var(--wf-primary);
    box-shadow: 0 12px 26px rgba(19, 121, 91, 0.16);
    color: var(--wf-text);
}
img.wf-feature-icon {
    width: 46px !important;
    height: 46px !important;
    max-width: none !important;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border: 0 !important;
}
.wf-feature-title { font: 700 15px/1.3 var(--wf-font-head); color: var(--wf-navy); }
.wf-feature-desc { font-size: 13px; line-height: 1.45; color: var(--wf-text-soft); }

/* ---------- Jelajahi Tata Surya ---------- */
.wf-explore {
    position: relative;
    overflow: hidden;
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 30px 36px;
    border-radius: 18px;
    color: #fff;
    background:
        radial-gradient(ellipse at 15% 50%, rgba(255, 170, 60, 0.28), transparent 50%),
        linear-gradient(135deg, #140f2e 0%, #1d1747 60%, #0d0b22 100%);
}
.wf-explore::before { content: ""; }
.wf-explore-text { position: relative; z-index: 1; }
.wf-explore h2 { color: #fff; font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.wf-explore p { color: rgba(255, 255, 255, 0.78); margin: 0 0 18px; animation: none; }

.wf-solar { position: relative; z-index: 1; flex: 0 0 220px; width: 220px; height: 220px; }
.wf-sun {
    position: absolute;
    left: 50%; top: 50%;
    width: 44px; height: 44px;
    margin: -22px 0 0 -22px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, #fff6c8, #ffc23d 45%, #ff8a1f 100%);
    box-shadow: 0 0 30px 8px rgba(255, 170, 50, 0.55);
}
.wf-planet-orbit {
    position: absolute;
    left: 50%; top: 50%;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    animation: wf-spin linear infinite;
}
.wf-planet { position: absolute; top: 0; left: 50%; border-radius: 50%; transform: translate(-50%, -50%); }
.wf-po1 { width: 80px;  height: 80px;  margin: -40px 0 0 -40px;   animation-duration: 6s; }
.wf-po2 { width: 120px; height: 120px; margin: -60px 0 0 -60px;   animation-duration: 10s; }
.wf-po3 { width: 166px; height: 166px; margin: -83px 0 0 -83px;   animation-duration: 16s; }
.wf-po4 { width: 214px; height: 214px; margin: -107px 0 0 -107px; animation-duration: 26s; }
.wf-po1 .wf-planet { width: 8px;  height: 8px;  background: #b9b2a6; }
.wf-po2 .wf-planet { width: 12px; height: 12px; background: #e7c27a; }
.wf-po3 .wf-planet { width: 13px; height: 13px; background: radial-gradient(circle at 35% 35%, #6cb6ff, #1f5fc4); box-shadow: 0 0 8px rgba(80, 160, 255, .6); }
.wf-po4 .wf-planet { width: 10px; height: 10px; background: #e0643c; }

/* ---------- Artikel & Nota ---------- */
.wf-posts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.wf-post {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--wf-border);
    border-left: 4px solid var(--wf-primary);
    border-radius: 14px;
    padding: 16px 18px;
    transition: box-shadow .15s, transform .15s;
}
.wf-post:hover { box-shadow: 0 10px 24px rgba(15, 30, 60, 0.10); transform: translateY(-2px); }
.wf-post-note { border-left-color: var(--wf-gold); }
.wf-post-title, .wf-post-title:visited {
    font: 700 16.5px/1.4 var(--wf-font-head);
    color: var(--wf-navy);
    text-decoration: none !important;
}
.wf-post-title:hover { color: var(--wf-primary); }
.wf-post-excerpt {
    margin: 8px 0 12px;
    color: var(--wf-text-soft);
    font-size: 14.5px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.wf-post-excerpt * { font-size: inherit !important; color: inherit !important; margin: 0 !important; animation: none; }
.wf-post-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--wf-text-soft);
}
.wf-post-meta a { font-weight: 600; white-space: nowrap; }

.wf-lists {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 18px;
}
.wf-list {
    background: var(--wf-surface-2);
    border: 1px solid var(--wf-border);
    border-radius: 14px;
    padding: 14px 16px;
}
.wf-list h3 { font-size: 14.5px; font-weight: 700; color: var(--wf-primary-dark); margin-bottom: 8px; }
.wf-list ul { list-style: none; margin: 0; padding: 0; }
.wf-list li { padding: 7px 0; border-top: 1px solid var(--wf-border); font-size: 14px; line-height: 1.4; }
.wf-list li:first-child { border-top: 0; }
.wf-list li a { color: var(--wf-text); }
.wf-list li a:hover { color: var(--wf-primary); }
.wf-list li small { display: block; color: var(--wf-text-soft); font-size: 12px; margin-top: 2px; }
.wf-list-inline { margin-top: 14px; }
.wf-archive { display: flex; flex-direction: column; gap: 6px; }
.wf-list-inline .wf-archive { flex-direction: row; flex-wrap: wrap; gap: 8px; }
.wf-archive-year { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; }
.wf-list-inline .wf-archive-year { background: #fff; border: 1px solid var(--wf-border); border-radius: 10px; padding: 6px 10px; }
.wf-archive-year strong { color: var(--wf-navy); min-width: 40px; }
.wf-archive-year a {
    font-size: 12.5px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--wf-primary-soft);
    color: var(--wf-primary-dark);
    text-decoration: none !important;
}
.wf-archive-year a:hover { background: var(--wf-primary); color: #fff; }

.wf-social .fb-page { max-width: 500px; }

/* ---------- animasi ---------- */
@keyframes wf-spin { to { transform: rotate(360deg); } }
@keyframes wf-twinkle { from { opacity: .55; } to { opacity: 1; } }

/* ---------- Responsif ---------- */
@media (max-width: 1100px) {
    .wf-features { grid-template-columns: repeat(4, 1fr); }
    .wf-lists { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 991px) {
    .wf-home { width: calc(100vw - 72px); }
    .wf-hero { padding: 32px 28px; }
    .wf-hero h1 { font-size: 30px; }
    .wf-orbit { flex-basis: 200px; width: 200px; height: 200px; }
    .wf-earth { width: 86px; height: 86px; margin: -43px 0 0 -43px; }
    .wf-today { grid-template-columns: 1fr 1fr; }
    .wf-card-next { grid-column: 1 / -1; order: -1; }
    .wf-prayer-list { grid-template-columns: repeat(3, 1fr); }
    .wf-features { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
    .wf-home { width: 100%; }
    .wf-hero {
        flex-direction: column-reverse;
        text-align: center;
        padding: 22px 18px 26px;
        gap: 6px;
    }
    .wf-hero-cta { justify-content: center; }
    .wf-hero h1 { font-size: 25px; text-align: center; }
    .wf-hero p { font-size: 15px; margin-bottom: 18px; }
    .wf-orbit { flex-basis: 120px; width: 120px; height: 120px; }
    .wf-earth { width: 54px; height: 54px; margin: -27px 0 0 -27px; }
    .wf-moon { width: 20px; height: 20px; margin-left: -10px; top: -10px; }
    .wf-btn { padding: 10px 14px; font-size: 14.5px; }

    .wf-today { grid-template-columns: 1fr; gap: 10px; }
    .wf-next-count { font-size: 32px; }
    .wf-prayer-list { gap: 8px; }
    .wf-prayer strong { font-size: 16.5px; }
    .wf-prayer-sunnah span::after { content: ""; }

    .wf-section { margin-top: 30px; }
    .wf-section-head h2 { font-size: 20px; }
    .wf-features { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .wf-feature { padding: 12px; }
    img.wf-feature-icon { width: 40px !important; height: 40px !important; }

    .wf-explore { flex-direction: column; text-align: center; padding: 24px 18px; gap: 10px; }
    .wf-explore .wf-hero-cta { justify-content: center; }
    .wf-solar { flex-basis: 170px; width: 170px; height: 170px; transform: scale(.78); }

    .wf-posts, .wf-lists { grid-template-columns: 1fr; }
    .wf-post-meta { flex-wrap: wrap; }
}

/* =====================================================================
   Lokasi + Mode TV
   ===================================================================== */
.wf-prayer-sunnah span::after { content: none; }
.wf-prayer-sunnah > span::after { content: " (sunnah)"; font-size: 11px; opacity: .7; }

.wf-today-wrap { margin-top: 18px; position: relative; }
.wf-today-wrap .wf-today { margin-top: 12px; }
.wf-today-wrap.wf-loading .wf-today,
.wf-today-wrap.wf-loading .wf-prayer-list { opacity: .55; transition: opacity .2s; }

.wf-today-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.wf-loc { display: flex; align-items: center; gap: 8px; flex: 1 1 auto; min-width: 0; }
.wf-loc label { font-weight: 600; color: var(--wf-navy); white-space: nowrap; padding: 0; margin: 0; }
.wf-loc label .fa { color: var(--wf-primary); }
select.wf-loc-select {
    min-width: 220px;
    max-width: 340px;
    min-height: 40px;
    padding: 6px 10px;
    border-radius: 10px;
    font-weight: 600;
    color: var(--wf-navy);
}
#wfNearest {
    width: 40px; height: 40px;
    padding: 0;
    border-radius: 10px;
    background: #fff;
    color: var(--wf-primary);
    border: 1px solid #c9d3da;
    box-shadow: none;
    font-size: 16px;
}
#wfNearest:hover { background: var(--wf-primary-soft); border-color: var(--wf-primary); color: var(--wf-primary-dark); }
#wfNearest.is-busy .fa { animation: wf-spin 1s linear infinite; }
#wfTvBtn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 16px;
    border-radius: 10px;
    background: var(--wf-navy);
    border: 1px solid var(--wf-navy);
    color: #fff;
    font: 600 14.5px var(--wf-font);
    box-shadow: 0 6px 16px rgba(29, 39, 71, 0.25);
}
#wfTvBtn:hover { background: #24315a; color: var(--wf-gold); }
.wf-loc-msg { display: none; margin-top: 8px; padding: 8px 12px; border-radius: 10px; background: var(--wf-gold-soft); color: #7a5a0e; font-size: 13.5px; }

.wf-home-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin-top: 12px; }
.wf-mini {
    display: flex; gap: 12px; align-items: center;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f7f5ff;
    border: 1px solid #e3def7;
}
.wf-mini > .fa { flex: 0 0 34px; width: 34px; height: 34px; line-height: 34px; text-align: center; border-radius: 50%; background: var(--wf-navy); color: var(--wf-gold); font-size: 15px; }
.wf-mini strong { display: block; color: var(--wf-navy); font-size: 14px; line-height: 1.3; }
.wf-mini span { display: block; color: var(--wf-text-soft); font-size: 13px; line-height: 1.4; }

@media (max-width: 767px) {
    .wf-loc { flex-wrap: wrap; }
    .wf-loc label { width: 100%; }
    select.wf-loc-select { flex: 1 1 auto; min-width: 0; max-width: none; }
    #wfTvBtn { width: 100%; justify-content: center; }
}

/* ---------------- Overlay Mode TV ---------------- */
#wfTv { display: none; }
html.wf-tv-open, html.wf-tv-open body { overflow: hidden !important; }
html.wf-tv-open #wfTv {
    position: fixed;
    inset: 0;
    z-index: 6000;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    gap: 2.2vh;
    padding: 3vh 3vw 0;
    color: #fff;
    font-family: var(--wf-font);
    background:
        radial-gradient(ellipse at 80% 0%, rgba(56, 102, 210, 0.35), transparent 55%),
        radial-gradient(ellipse at 0% 100%, rgba(19, 121, 91, 0.35), transparent 50%),
        linear-gradient(160deg, #070b1d 0%, #0d1535 55%, #070a18 100%);
    overflow: hidden;
}
#wfTv .wf-tv-stars {
    position: absolute; inset: 0; pointer-events: none; opacity: .7;
    background-image:
        radial-gradient(1.5px 1.5px at 8% 12%, #fff, transparent), radial-gradient(1px 1px at 22% 40%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 35% 8%, #fff, transparent), radial-gradient(1px 1px at 48% 30%, #fff, transparent),
        radial-gradient(1px 1px at 62% 14%, #fff, transparent), radial-gradient(1.5px 1.5px at 76% 36%, #fff, transparent),
        radial-gradient(1px 1px at 90% 10%, #fff, transparent), radial-gradient(1px 1px at 14% 70%, #fff, transparent),
        radial-gradient(1px 1px at 55% 62%, #fff, transparent), radial-gradient(1.5px 1.5px at 94% 66%, #fff, transparent);
    animation: wf-twinkle 6s ease-in-out infinite alternate;
}
#wfTv > * { position: relative; z-index: 1; }

/* kontrol */
#wfTv .wf-tv-controls {
    position: absolute; z-index: 5; top: 1.2vh; right: 1.2vw;
    display: flex; gap: 8px; align-items: center;
    transition: opacity .4s;
}
#wfTv.is-idle .wf-tv-controls { opacity: 0; pointer-events: none; }
#wfTv.is-idle { cursor: none; }
#wfTv .wf-tv-controls button {
    width: 42px; height: 42px; padding: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff; font-size: 17px; box-shadow: none;
}
#wfTv .wf-tv-controls button:hover { background: rgba(255, 255, 255, 0.22); color: var(--wf-gold); }
#wfTv .wf-tv-select {
    height: 42px; min-height: 42px; max-width: 260px;
    background: rgba(255, 255, 255, 0.10); color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 10px;
}
#wfTv .wf-tv-select option { color: #111; }

/* header */
.wf-tv-head { display: flex; align-items: center; justify-content: space-between; gap: 3vw; padding-right: 13vw; }
.wf-tv-brand { display: flex; align-items: center; gap: 1.6vw; min-width: 0; }
.wf-tv-brand img { height: 6.5vh; width: auto; }
.wf-tv-loc { font: 700 3.6vh/1.2 var(--wf-font-head); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wf-tv-loc .fa { color: var(--wf-gold); }
.wf-tv-sub { font-size: 2.1vh; color: rgba(255, 255, 255, 0.6); letter-spacing: .3vh; text-transform: uppercase; margin-top: .4vh; }
.wf-tv-time { display: flex; align-items: center; gap: 2vw; }
.wf-tv-clock { font: 800 10vh/1 var(--wf-font-head); letter-spacing: .2vh; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wf-tv-clock small { font-size: 4.5vh; color: var(--wf-gold); margin-left: .6vw; vertical-align: top; }
.wf-tv-dates { font-size: 2.7vh; line-height: 1.35; text-align: right; white-space: nowrap; }
.wf-tv-hijri { color: var(--wf-gold); font-weight: 600; }

/* bagian tengah */
.wf-tv-main { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5vw; min-height: 0; }
.wf-tv-next, .wf-tv-info {
    border-radius: 3vh;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    min-height: 0;
    overflow: hidden;
}
.wf-tv-next {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 2vh 2vw;
    background: linear-gradient(150deg, rgba(19, 121, 91, 0.85), rgba(10, 72, 54, 0.85));
    border-color: rgba(120, 220, 170, 0.25);
}
.wf-tv-label { font-size: 2.3vh; letter-spacing: .3vh; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); font-weight: 600; }
.wf-tv-next-name { font: 800 7.5vh/1.1 var(--wf-font-head); margin-top: 1vh; }
.wf-tv-next-count { font: 800 15vh/1 var(--wf-font-head); font-variant-numeric: tabular-nums; letter-spacing: .4vh; margin: 1vh 0; }
.wf-tv-next-at { font-size: 3vh; color: rgba(255, 255, 255, 0.85); }
.wf-tv-alert {
    display: none; margin-top: 2vh; padding: 1.2vh 2vw; border-radius: 2vh;
    background: var(--wf-gold); color: #1d1a10; font: 700 3vh var(--wf-font-head);
    animation: wf-pulse 1.6s ease-in-out infinite;
}
.wf-tv-alert.show { display: block; }

.wf-tv-info { position: relative; padding: 3vh 2.5vw 5vh; }
.wf-tv-slides { position: relative; height: 100%; }
.wf-tv-slide {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; justify-content: center;
    opacity: 0; transform: translateY(1.5vh);
    transition: opacity .7s ease, transform .7s ease;
    pointer-events: none;
}
.wf-tv-slide.is-active { opacity: 1; transform: none; pointer-events: auto; }
.wf-tv-slide h3 { font: 800 6vh/1.15 var(--wf-font-head); color: #fff; margin: 1.4vh 0 1vh; }
.wf-tv-slide p { font-size: 3vh; line-height: 1.4; margin: .4vh 0; color: rgba(255, 255, 255, 0.88); animation: none; }
.wf-tv-slide .wf-tv-muted { font-size: 2.3vh; color: rgba(255, 255, 255, 0.6); }
.wf-tv-slide .wf-tv-label .fa { color: var(--wf-gold); }
.wf-tv-moon { flex-direction: row !important; align-items: center; gap: 2.5vw; }
.wf-tv-moon img { width: 22vh; height: 22vh; border-radius: 50%; object-fit: cover; box-shadow: 0 0 6vh rgba(255, 255, 240, 0.25); flex: 0 0 auto; }
.wf-tv-moon h3 { font-size: 4.6vh; }
.wf-tv-list { list-style: none; margin: 1.6vh 0 0; padding: 0; }
.wf-tv-list li {
    display: flex; align-items: center; justify-content: space-between; gap: 1.5vw;
    padding: 1.3vh 0; border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.wf-tv-list li:first-child { border-top: 0; }
.wf-tv-list strong { display: block; font: 700 3.2vh/1.25 var(--wf-font-head); color: #fff; }
.wf-tv-list span { display: block; font-size: 2.3vh; color: rgba(255, 255, 255, 0.7); }
.wf-tv-list em { font-style: normal; white-space: nowrap; font-size: 2.3vh; font-weight: 700; color: #1d1a10; background: var(--wf-gold); padding: .5vh 1vw; border-radius: 99px; }
.wf-tv-dots { position: absolute; left: 0; right: 0; bottom: 2vh; text-align: center; }
.wf-tv-dots i { display: inline-block; width: 1vh; height: 1vh; margin: 0 .5vh; border-radius: 50%; background: rgba(255, 255, 255, 0.3); transition: background .3s, width .3s; }
.wf-tv-dots i.is-active { background: var(--wf-gold); width: 3vh; border-radius: 1vh; }

/* jadwal shalat */
.wf-tv-prayers { display: grid; grid-template-columns: repeat(8, 1fr); gap: 1vw; }
.wf-tv-prayer {
    text-align: center; padding: 1.6vh .5vw;
    border-radius: 2vh;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: background .3s, transform .3s;
}
.wf-tv-prayer span { display: block; font-size: 2.5vh; color: rgba(255, 255, 255, 0.75); font-weight: 600; }
.wf-tv-prayer strong { display: block; font: 800 5.4vh/1.15 var(--wf-font-head); color: #fff; font-variant-numeric: tabular-nums; }
.wf-tv-prayer[data-key="imsak"], .wf-tv-prayer[data-key="terbit"], .wf-tv-prayer[data-key="dhuha"] { background: rgba(255, 255, 255, 0.03); }
.wf-tv-prayer[data-key="imsak"] strong, .wf-tv-prayer[data-key="terbit"] strong, .wf-tv-prayer[data-key="dhuha"] strong { color: rgba(255, 255, 255, 0.8); }
.wf-tv-prayer.is-next { background: var(--wf-gold); border-color: var(--wf-gold); transform: translateY(-.8vh); box-shadow: 0 1.5vh 4vh rgba(232, 184, 74, 0.35); }
.wf-tv-prayer.is-next span, .wf-tv-prayer.is-next strong { color: #1d1a10; }
.wf-tv-prayer.is-now { background: var(--wf-primary); border-color: #4fd6a0; }

/* teks berjalan */
.wf-tv-ticker {
    margin: 0 -3vw; padding: 1.3vh 0;
    background: rgba(0, 0, 0, 0.35);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden; white-space: nowrap;
}
.wf-tv-ticker-track { display: inline-block; padding-left: 100%; animation: wf-ticker 70s linear infinite; font-size: 2.6vh; color: rgba(255, 255, 255, 0.88); }
.wf-tv-ticker-track span { margin-right: 4vw; }
.wf-tv-ticker-track span::before { content: "\25C6"; color: var(--wf-gold); margin-right: 1.2vw; font-size: 1.8vh; vertical-align: middle; }

@keyframes wf-ticker { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@keyframes wf-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(232, 184, 74, 0.6); } 50% { box-shadow: 0 0 0 2vh rgba(232, 184, 74, 0); } }

/* layar tegak (HP / monitor portrait) */
@media (max-aspect-ratio: 1/1) {
    html.wf-tv-open #wfTv { display: flex; flex-direction: column; gap: 1.6vh; padding: 2vh 4vw 0; overflow-y: auto; }
    html.wf-tv-open #wfTv > * { flex-shrink: 0; }
    .wf-tv-main, .wf-tv-next, .wf-tv-info { min-height: auto; }
    .wf-tv-next { padding: 2.5vh 4vw; }
    .wf-tv-ticker { margin-top: auto !important; }
    .wf-tv-head { flex-direction: column; align-items: flex-start; padding-right: 0; padding-top: 5vh; gap: 1vh; }
    .wf-tv-time { width: 100%; justify-content: space-between; }
    .wf-tv-clock { font-size: 7vh; }
    .wf-tv-dates { font-size: 2vh; }
    .wf-tv-main { grid-template-columns: 1fr; }
    .wf-tv-next-count { font-size: 9vh; }
    .wf-tv-next-name { font-size: 5vh; }
    .wf-tv-info { min-height: 34vh; }
    .wf-tv-slide h3 { font-size: 4vh; }
    .wf-tv-slide p { font-size: 2.2vh; }
    .wf-tv-moon img { width: 14vh; height: 14vh; }
    .wf-tv-list strong { font-size: 2.3vh; }
    .wf-tv-list span, .wf-tv-list em { font-size: 1.7vh; }
    .wf-tv-prayers { grid-template-columns: repeat(4, 1fr); gap: 1.2vh; }
    .wf-tv-prayer strong { font-size: 3.6vh; }
    .wf-tv-prayer span { font-size: 1.8vh; }
    .wf-tv-ticker { margin: 0 -4vw; }
    #wfTv .wf-tv-select { max-width: 46vw; }
}
