/* Tune Radio — shared stylesheet
   Extracted verbatim from the original page so every
   page of the site renders identically. */

    :root {
      --bg: #f8fafc; --card-bg: #ffffff; --text-main: #0f172a; --text-muted: #64748b;
      --border-color: #e2e8f0; --primary: #e6006b; --gold-border: #f59e0b; --radius: 16px;
      --surface: #ffffff; --surface-soft: #f8fafc; --surface-hover: #f1f5f9;
    }
    body.dark-mode {
      --bg: #0b1220; --card-bg: #1e293b; --text-main: #f1f5f9; --text-muted: #94a3b8;
      --border-color: #334155; --surface: #1e293b; --surface-soft: #172033; --surface-hover: #334155;
    }
    body.dark-mode header { background: #0f172a; border-bottom-color: #1e293b; }
    body.dark-mode .sidebar { background: #0f172a; }
    body.dark-mode .sidebar-head { border-bottom-color: #1e293b; }
    body.dark-mode .menu-btn { background: #1e293b; border-color: #334155; color: #f1f5f9; }
    body.dark-mode .brand-logo { color: #f1f5f9; }
    body.dark-mode .brand-title { color: #f1f5f9; }
    body.dark-mode .station-card { background: #1e293b; border-color: #334155; }
    body.dark-mode .card-thumb-wrap { background: #0f172a; border-color: #334155; }
    body.dark-mode .logo-fallback { background: #172033; color: #cbd5e1; }
    body.dark-mode .card-title { color: #f1f5f9; }
    body.dark-mode .info-card { background: #1e293b; border-color: #334155; }
    body.dark-mode .info-card-title { color: #f1f5f9; }
    body.dark-mode .info-card p { color: #cbd5e1; }
    body.dark-mode .info-value { color: #f1f5f9; }
    body.dark-mode .detail-hero-title { color: #f1f5f9; }
    body.dark-mode .detail-hero-logo { background: #0f172a; border-color: #334155; }
    body.dark-mode .player-card { background: #1e293b; border-color: #334155; }
    body.dark-mode .player-control-btn { background: #334155; color: #cbd5e1; }
    body.dark-mode .action-btn-circle { background: #1e293b; border-color: #334155; color: #94a3b8; }
    body.dark-mode .view-count-badge { background: #334155; border-color: #475569; color: #cbd5e1; }
    body.dark-mode .blog-card { background: #1e293b; border-color: #334155; }
    body.dark-mode .blog-card-title { color: #f1f5f9; }
    body.dark-mode .blog-content { color: #cbd5e1; }
    body.dark-mode .blog-content h2 { color: #f1f5f9; }
    body.dark-mode .blog-content h3 { color: #e2e8f0; }
    body.dark-mode .blog-author-box { background: #0f172a; border-color: #334155; }
    body.dark-mode .form-input, body.dark-mode .form-textarea { background: #0f172a; color: #f1f5f9; border-color: #334155; }
    body.dark-mode .form-label { color: #cbd5e1; }
    body.dark-mode .page-btn { background: #1e293b; border-color: #334155; color: #f1f5f9; }
    body.dark-mode .status-box { color: #94a3b8; }
    body.dark-mode .breadcrumb { color: #94a3b8; }
    body.dark-mode .home-section-header h2 { color: #f1f5f9; }
    body.dark-mode .related-section .section-header h2 { color: #f1f5f9; }
    body.dark-mode .blog-back-btn { background: #334155; border-color: #475569; color: #f1f5f9; }
    body.dark-mode .static-content { color: #cbd5e1; }
    body.dark-mode .static-content h2 { color: #f1f5f9; }
    body.dark-mode .static-content h3 { color: #e2e8f0; }
    body.dark-mode .static-content strong { color: #f1f5f9; }

    * { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
    html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
    body { font-family: 'Plus Jakarta Sans', sans-serif; background: var(--bg); color: var(--text-main); min-height: 100dvh; display: flex; flex-direction: column; transition: background-color .3s, color .3s; scroll-behavior: smooth; }

    header { background: var(--surface); border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 50; width: 100%; transition: background-color .3s, border-color .3s; }
    .header-inner { max-width: 1440px; margin: 0 auto; padding: 12px 14px; display: flex; align-items: center; gap: 12px; }
    .menu-btn { background: var(--surface-soft); border: 1px solid var(--border-color); width: 40px; height: 40px; border-radius: 10px; font-size: 1.15rem; cursor: pointer; color: var(--text-main); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all .18s ease; }
    .menu-btn:hover { background: #fdf2f8; border-color: #fbcfe8; color: var(--primary); }
    .brand-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text-main); cursor: pointer; }
    .brand-svg { width: 46px; height: 46px; flex-shrink: 0; display: block; border-radius: 0; overflow: hidden; transition: transform 0.25s ease; }
    .brand-logo:hover .brand-svg { transform: rotate(-6deg) scale(1.06); }
    .brand-title { font-size: 1.25rem; font-weight: 800; line-height: 1; letter-spacing: -0.5px; color: var(--text-main); }
    .sidebar-brand-svg { width: 38px; height: 38px; border-radius: 0; overflow: hidden; display: block; flex-shrink: 0; }
    .footer-brand-svg { width: 40px; height: 40px; flex-shrink: 0; border-radius: 0; overflow: hidden; }

    svg.logo-dark { display: none !important; }
    body.dark-mode svg.logo-light { display: none !important; }
    body.dark-mode svg.logo-dark { display: block !important; }

    .install-app-btn { display: none; align-items: center; gap: 8px; background: linear-gradient(135deg, #ff3d8a, #e6006b); color: #fff; padding: 8px 14px; border-radius: 99px; font-size: 0.78rem; font-weight: 700; border: none; cursor: pointer; box-shadow: 0 4px 14px rgba(230,0,107,0.35); transition: all 0.2s; }
    .install-app-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(230,0,107,0.45); }
    .install-app-btn.show { display: inline-flex; }

    .sidebar-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 100; display: none; backdrop-filter: blur(2px); }
    .sidebar-overlay.active { display: block; }
    .sidebar { position: fixed; top: 0; left: -320px; width: 320px; height: 100%; background: var(--surface); z-index: 101; transition: left .25s ease, background-color .3s; display: flex; flex-direction: column; }
    .sidebar.open { left: 0; }
    .sidebar-head { padding: 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border-color); flex-shrink: 0; }
    .sidebar-menu { padding: 12px; list-style: none; overflow-y: auto; flex: 1; -webkit-overflow-scrolling: touch; }
    .sidebar-menu li { margin-bottom: 2px; }
    .sidebar-menu li a, .sidebar-menu li button { display: flex; align-items: center; gap: 12px; padding: 12px; color: var(--text-main); text-decoration: none; border-radius: 10px; font-weight: 600; font-size: 0.92rem; cursor: pointer; transition: all .15s; background: transparent; border: none; width: 100%; text-align: left; font-family: inherit; }
    .sidebar-menu li a i, .sidebar-menu li button i { width: 20px; text-align: center; flex-shrink: 0; font-size: 0.95rem; }
    .sidebar-menu li a:hover, .sidebar-menu li a.active, .sidebar-menu li button:hover { background: #fdf2f8; color: var(--primary); }
    .sidebar-section-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); font-weight: 800; padding: 14px 14px 6px; margin-top: 6px; }
    .theme-toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 12px; border-radius: 10px; background: var(--surface-soft); margin: 6px 4px; }
    .theme-toggle-row .label { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 0.92rem; color: var(--text-main); }
    .theme-toggle-row .label i { width: 20px; text-align: center; font-size: 0.95rem; color: var(--primary); }
    .sidebar-menu li button.theme-switch { width: 52px !important; height: 28px !important; padding: 0 !important; background: #cbd5e1; flex: 0 0 52px; display: block; position: relative; border-radius: 99px; border: none; cursor: pointer; transition: background .25s; }
    .theme-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; background: #fff; border-radius: 50%; transition: transform .25s; box-shadow: 0 2px 4px rgba(0,0,0,.15); }
    body.dark-mode .sidebar-menu li button.theme-switch { background: var(--primary); }
    body.dark-mode .theme-switch::after { transform: translateX(24px); }

    .sleep-timer-badge { display: none; align-items: center; gap: 6px; background: linear-gradient(135deg, #7c3aed, #6366f1); color: #fff; padding: 3px 10px; border-radius: 99px; font-size: 0.72rem; font-weight: 800; margin-left: auto; font-family: 'Courier New', monospace; animation: pulseTimer 1.6s infinite; }
    .sleep-timer-badge.active { display: inline-flex; }
    @keyframes pulseTimer { 0%, 100% { opacity: 1; } 50% { opacity: .65; } }

    main { flex: 1; max-width: 800px; width: 100%; margin: 0 auto; padding: 14px 14px 24px; }
    @media (min-width: 1200px) { main { max-width: 1200px; } }
    .breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 16px; padding: 0 4px; flex-wrap: wrap; }
    .breadcrumb a { color: var(--primary); text-decoration: none; font-weight: 600; cursor: pointer; }
    .breadcrumb a:hover { text-decoration: underline; }
    .breadcrumb i { font-size: 0.7rem; }

    .detail-hero-centered { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 24px; }
    .detail-hero-logo { width: 150px; height: 150px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: 0 10px 25px rgba(0,0,0,.1); margin-bottom: 16px; }
    @media (min-width: 640px) { .detail-hero-logo { width: 180px; height: 180px; } }
    .detail-hero-logo img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
    .detail-hero-logo .logo-fallback i { font-size: 4rem; }
    .detail-hero-title { font-size: 1.6rem; font-weight: 800; letter-spacing: -.5px; margin-bottom: 8px; color: var(--text-main); }
    @media (min-width: 640px) { .detail-hero-title { font-size: 2rem; } }
    .detail-hero-tags { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; font-size: 0.9rem; color: var(--text-muted); font-weight: 500; }
    .detail-hero-tags span { display: flex; align-items: center; gap: 6px; }
    .detail-hero-tags span::before { content: "•"; color: #cbd5e1; margin-right: 4px; }
    .detail-hero-tags span:first-child::before { display: none; }

    .player-card { background: var(--surface); border-radius: 24px; padding: 24px; box-shadow: 0 4px 20px rgba(0,0,0,.05); border: 1px solid var(--border-color); display: flex; flex-direction: column; align-items: center; gap: 20px; margin-bottom: 24px; }
    .player-controls-row { display: flex; align-items: center; justify-content: center; gap: 30px; width: 100%; }
    .player-control-btn { background: var(--surface-hover); border: none; width: 54px; height: 54px; border-radius: 50%; color: #475569; font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .2s; }
    .player-control-btn:hover { background: #e2e8f0; color: #0f172a; }
    .player-main-play-btn { background: #22c55e; border: none; width: 76px; height: 76px; border-radius: 50%; color: #fff; font-size: 1.8rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .2s; box-shadow: 0 8px 20px rgba(34,197,94,.4); }
    .player-main-play-btn:hover { transform: scale(1.05); }
    .player-main-play-btn.is-playing { background: #0f172a; box-shadow: 0 8px 20px rgba(15,23,42,.4); }
    .player-action-row { display: flex; align-items: center; justify-content: center; gap: 16px; width: 100%; padding-top: 16px; border-top: 1px solid var(--border-color); }
    .action-btn-circle { background: var(--surface); border: 1px solid var(--border-color); width: 44px; height: 44px; border-radius: 50%; color: #64748b; font-size: 1.1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .2s; text-decoration: none; }
    .action-btn-circle:hover { background: var(--surface-soft); color: var(--primary); border-color: #fbcfe8; }
    .action-btn-circle.is-liked { color: #e11d48; border-color: #fecdd3; background: #fff1f2; }
    @keyframes heartPop { 0% { transform: scale(1); } 45% { transform: scale(1.35); } 100% { transform: scale(1); } }
    .action-btn-circle.is-liked i { animation: heartPop .35s; }
    .view-count-badge { display: flex; align-items: center; gap: 6px; background: var(--surface-soft); border: 1px solid var(--border-color); padding: 8px 16px; border-radius: 99px; font-size: 0.85rem; font-weight: 600; color: #475569; margin-left: auto; }

    .info-card { background: var(--surface); border-radius: 20px; padding: 24px; box-shadow: 0 4px 20px rgba(0,0,0,.03); border: 1px solid var(--border-color); margin-bottom: 20px; }
    .info-card-title { font-size: 1.2rem; font-weight: 700; color: var(--text-main); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
    .info-card-title i { color: var(--primary); font-size: 1rem; }
    .info-card p { font-size: 0.92rem; line-height: 1.7; color: var(--text-muted); }
    .info-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
    @media (min-width: 640px) { .info-grid { grid-template-columns: repeat(2, 1fr); } }
    .info-item { display: flex; flex-direction: column; gap: 4px; }
    .info-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); font-weight: 700; }
    .info-value { font-size: 0.92rem; font-weight: 600; color: var(--text-main); word-break: break-word; }
    .info-value a { color: #8b5cf6; text-decoration: none; }
    .info-value a:hover { text-decoration: underline; }

    .related-section { margin-top: 30px; }
    .related-section .section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; padding: 0 4px; }
    .related-section .section-header h2 { font-size: 1.1rem; font-weight: 700; color: var(--text-main); }

    .station-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
    @media (min-width: 640px) { .station-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
    @media (min-width: 840px) { .station-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }
    @media (min-width: 1080px) { .station-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; } }

    .station-card { background: var(--card-bg); border-radius: var(--radius); border: 1.5px solid var(--border-color); padding: 8px; cursor: pointer; display: flex; flex-direction: column; align-items: center; transition: transform .15s, border-color .15s, box-shadow .15s; position: relative; user-select: none; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
    .station-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.06); }
    .station-card.is-active { border: 2px solid var(--gold-border); box-shadow: 0 0 14px rgba(245,158,11,.3); background: #fffdf5; }
    body.dark-mode .station-card.is-active { background: #2a2410; }
    .card-thumb-wrap { width: 100%; aspect-ratio: 1/1; border-radius: 12px; overflow: hidden; position: relative; background: var(--surface); display: flex; align-items: center; justify-content: center; border: 1px solid var(--border-color); }
    .card-thumb-wrap img { width: 100%; height: 100%; object-fit: contain; padding: 6px; display: block; background: var(--surface); }
    .logo-fallback { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--surface-soft); color: var(--text-muted); padding: 8px; text-align: center; }
    .logo-fallback i { font-size: 2rem; margin-bottom: 6px; color: #94a3b8; }
    .logo-fallback span { font-size: 0.72rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; max-width: 92%; white-space: nowrap; }
    .play-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.25); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s; pointer-events: none; }
    .station-card:hover .play-overlay, .station-card.is-active .play-overlay { opacity: 1; }
    .play-btn-circle { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.95); color: #0f172a; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; box-shadow: 0 4px 10px rgba(0,0,0,.2); }
    .station-card.is-active .play-btn-circle { background: var(--gold-border); color: #fff; }
    .card-info { width: 100%; text-align: center; padding: 8px 2px 2px; }
    .card-title { font-size: 0.84rem; font-weight: 700; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2; }
    .card-meta { font-size: 0.7rem; color: var(--text-muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

    footer { background: #0f172a; color: #94a3b8; border-top: 1px solid #1e293b; margin-top: auto; padding: 36px 16px 80px; width: 100%; }
    .footer-inner { max-width: 1440px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 24px; }
    @media (min-width: 640px) { .footer-inner { grid-template-columns: repeat(2, 1fr); } }
    @media (min-width: 1024px) { .footer-inner { grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 32px; } }
    .footer-col h3 { color: #fff; font-size: 0.95rem; font-weight: 700; margin-bottom: 14px; position: relative; display: inline-block; }
    .footer-col p { font-size: 0.82rem; line-height: 1.6; color: #94a3b8; margin-bottom: 14px; }
    .footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 1.15rem; font-weight: 800; margin-bottom: 10px; text-decoration: none; cursor: pointer; }
    .footer-links { list-style: none; }
    .footer-links li { margin-bottom: 8px; }
    .footer-links a { color: #94a3b8; text-decoration: none; font-size: 0.82rem; transition: color .2s; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
    .footer-links a:hover { color: #fff; }
    .social-icons { display: flex; gap: 10px; margin-top: 10px; }
    .social-icon { width: 34px; height: 34px; border-radius: 8px; background: #1e293b; color: #cbd5e1; display: flex; align-items: center; justify-content: center; text-decoration: none; font-size: 0.85rem; transition: all .2s; }
    .social-icon:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
    .copyright { max-width: 1440px; margin: 28px auto 0; padding-top: 20px; border-top: 1px solid #1e293b; text-align: center; font-size: 0.82rem; color: #94a3b8; }
    .copyright strong { color: #fff; font-weight: 800; }

    .player-dock { position: fixed; bottom: 0; left: 0; right: 0; background: #0f172a; color: #fff; padding: 10px 14px; z-index: 90; box-shadow: 0 -4px 15px rgba(0,0,0,.15); border-top: 1px solid #1e293b; width: 100%; }
    .dock-inner { max-width: 1440px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
    .dock-station-info { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
    .dock-img { width: 40px; height: 40px; border-radius: 8px; object-fit: contain; background: #1e293b; flex-shrink: 0; padding: 2px; }
    .dock-text { min-width: 0; overflow: hidden; }
    .dock-title { font-size: 0.85rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .dock-status { font-size: 0.7rem; color: #94a3b8; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
    .dock-controls { display: flex; align-items: center; gap: 12px; }
    .dock-btn { background: none; border: none; color: #fff; font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
    .dock-play-btn { width: 40px; height: 40px; background: var(--gold-border); color: #0f172a; border-radius: 50%; font-size: 1.1rem; }

    .dock-volume { display: none; align-items: center; gap: 8px; }
    .dock-volume input[type="range"] { width: 90px; accent-color: var(--primary); cursor: pointer; }
    @media (min-width: 768px) { .dock-volume { display: flex; } }

    .status-box { grid-column: 1/-1; text-align: center; padding: 40px 16px; color: var(--text-muted); font-size: 0.88rem; }
    .live-dot { width: 8px; height: 8px; background: #22c55e; border-radius: 50%; display: inline-block; }

    .home-search-wrap { margin-bottom: 14px; }
    .home-search { position: relative; width: 100%; display: flex; align-items: center; }
    .home-search input {
      width: 100%; height: 50px; padding: 0 48px 0 46px;
      border-radius: 99px; border: 1.5px solid var(--border-color);
      background: var(--surface); font-size: 0.92rem; font-family: inherit;
      color: var(--text-main); outline: none; -webkit-appearance: none; appearance: none;
      box-shadow: 0 2px 10px rgba(15,23,42,.05);
      transition: border-color .22s, box-shadow .22s, background .22s;
    }
    .home-search input::placeholder { color: var(--text-muted); opacity: .9; }
    .home-search input:hover { border-color: #cbd5e1; }
    .home-search input:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 4px rgba(230,0,107,.12), 0 4px 16px rgba(15,23,42,.06);
    }
    .home-search > i {
      position: absolute; left: 17px; top: 50%; transform: translateY(-50%);
      color: var(--text-muted); font-size: 0.95rem; pointer-events: none;
      transition: color .22s;
    }
    .home-search:focus-within > i { color: var(--primary); }
    .home-search .search-clear {
      position: absolute; right: 9px; top: 50%; transform: translateY(-50%);
      width: 32px; height: 32px; border-radius: 50%; border: none; padding: 0;
      background: var(--surface-hover); color: var(--text-muted); cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      font-size: 0.78rem; transition: background .2s, color .2s, transform .15s;
    }
    .home-search .search-clear:hover { background: #fdf2f8; color: var(--primary); }
    .home-search .search-clear:active { transform: translateY(-50%) scale(.92); }
    .home-search .search-clear[hidden] { display: none; }
    body.dark-mode .home-search input { background: #1e293b; color: #f1f5f9; border-color: #334155; box-shadow: none; }
    body.dark-mode .home-search input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(230,0,107,.18); }
    body.dark-mode .home-search .search-clear { background: #334155; color: #cbd5e1; }
    body.dark-mode .home-search .search-clear:hover { background: #3b4a61; color: #fff; }


    .home-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 10px; }
    .home-section-header h2 { font-size: 1rem; font-weight: 700; display: flex; align-items: center; gap: 6px; color: var(--text-main); }

    .form-group { margin-bottom: 14px; }
    .form-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-main); margin-bottom: 6px; }
    .form-label .req { color: var(--primary); margin-left: 2px; }
    .form-input, .form-textarea { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border-color); background: var(--surface); font-family: inherit; font-size: 0.9rem; outline: none; color: var(--text-main); transition: all .3s; }
    .form-input:focus, .form-textarea:focus { border-color: var(--primary); }
    .form-textarea { min-height: 110px; resize: vertical; }
    .form-submit { background: var(--primary); color: #fff; border: none; padding: 11px 22px; border-radius: 10px; font-weight: 700; cursor: pointer; font-family: inherit; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 8px; }
    .form-submit:hover { background: #be0058; }
    .form-submit:disabled { opacity: 0.6; cursor: not-allowed; }
    .form-row-2 { display: grid; grid-template-columns: 1fr; gap: 12px; }
    @media (min-width: 640px) { .form-row-2 { grid-template-columns: 1fr 1fr; gap: 14px; } }

    .page-hero-icon { width: 70px; height: 70px; border-radius: 50%; background: #fdf2f8; color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin: 0 auto 14px; }

    .static-content { font-size: 0.95rem; line-height: 1.85; color: var(--text-muted); }
    .static-content h2 { font-size: 1.15rem; font-weight: 800; color: var(--text-main); margin: 26px 0 12px; padding-bottom: 8px; border-bottom: 2px solid #fce7f3; display: flex; align-items: center; gap: 10px; }
    .static-content h2 i { color: var(--primary); font-size: 0.95rem; }
    .static-content h3 { font-size: 1.02rem; font-weight: 700; color: var(--text-main); margin: 20px 0 8px; }
    .static-content p { margin-bottom: 14px; }
    .static-content ul, .static-content ol { margin: 10px 0 18px 22px; display: flex; flex-direction: column; gap: 8px; }
    .static-content li { line-height: 1.7; }
    .static-content strong { color: var(--text-main); font-weight: 700; }
    .static-content a { color: var(--primary); text-decoration: none; font-weight: 600; }
    .static-content a:hover { text-decoration: underline; }

    .contact-highlight { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 20px 0; }
    @media (min-width: 640px) { .contact-highlight { grid-template-columns: repeat(3, 1fr); } }
    .contact-card { background: linear-gradient(135deg, rgba(230,0,107,.08), rgba(124,45,18,.06)); border: 1px solid rgba(230,0,107,.2); border-radius: 16px; padding: 20px 16px; text-align: center; transition: all .2s; }
    .contact-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(230,0,107,.15); }
    .contact-card-icon { width: 54px; height: 54px; border-radius: 50%; background: linear-gradient(135deg, #e6006b, #7c2d12); color: #fff; font-size: 1.4rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
    .contact-card-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); font-weight: 800; margin-bottom: 6px; }
    .contact-card-value { font-size: 0.95rem; font-weight: 800; color: var(--text-main); text-decoration: none; word-break: break-all; }
    .contact-card-value:hover { color: var(--primary); }

    .blog-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
    @media (min-width: 768px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
    .blog-card { background: var(--surface); border: 1px solid var(--border-color); border-radius: 18px; overflow: hidden; cursor: pointer; transition: all .2s; display: flex; flex-direction: column; }
    .blog-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(15,23,42,.1); border-color: #fbcfe8; }
    .blog-card-banner { height: 180px; position: relative; overflow: hidden; background: linear-gradient(135deg, #e6006b 0%, #7c2d12 100%); }
    .blog-card-banner img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
    .blog-card:hover .blog-card-banner img { transform: scale(1.06); }
    .blog-card-banner .banner-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,23,42,.5) 0%, transparent 60%); pointer-events: none; }
    .blog-card-banner .banner-category { position: absolute; top: 12px; left: 12px; background: rgba(230,0,107,.95); color: #fff; padding: 5px 12px; border-radius: 99px; font-size: 0.7rem; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; z-index: 2; }
    .blog-card-banner .banner-icon { position: absolute; bottom: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.95); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1rem; z-index: 2; box-shadow: 0 4px 10px rgba(0,0,0,.15); }
    .blog-card-body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
    .blog-card-meta { display: flex; align-items: center; gap: 12px; font-size: 0.72rem; color: var(--text-muted); margin-bottom: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
    .blog-card-meta span { display: inline-flex; align-items: center; gap: 5px; }
    .blog-card-title { font-size: 1.02rem; font-weight: 800; color: var(--text-main); margin-bottom: 8px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .blog-card-excerpt { font-size: 0.85rem; color: var(--text-muted); line-height: 1.55; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
    .blog-card-read-more { font-size: 0.82rem; font-weight: 700; color: var(--primary); display: inline-flex; align-items: center; gap: 6px; margin-top: auto; }
    .blog-card-read-more i { transition: transform .2s; }
    .blog-card:hover .blog-card-read-more i { transform: translateX(4px); }
    .blog-post-hero { position: relative; color: #fff; border-radius: 22px; margin-bottom: 24px; overflow: hidden; min-height: 260px; display: flex; align-items: flex-end; justify-content: center; text-align: center; padding: 28px 22px; background: #0f172a; }
    @media (min-width: 640px) { .blog-post-hero { min-height: 340px; padding: 40px 28px; } }
    .blog-post-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,23,42,.92) 0%, rgba(15,23,42,.35) 50%, rgba(15,23,42,.15) 100%); z-index: 1; }
    .blog-post-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
    .blog-post-hero > .hero-content { position: relative; z-index: 2; max-width: 720px; }
    .blog-post-hero .blog-hero-icon { display: inline-flex; width: 56px; height: 56px; border-radius: 50%; background: rgba(230,0,107,.95); color: #fff; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 16px; box-shadow: 0 6px 20px rgba(0,0,0,.3); }
    .blog-post-hero h1 { font-size: 1.5rem; font-weight: 800; line-height: 1.35; margin-bottom: 14px; letter-spacing: -.3px; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
    @media (min-width: 640px) { .blog-post-hero h1 { font-size: 2rem; } }
    .blog-post-hero .blog-hero-meta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 16px; font-size: 0.82rem; opacity: .95; font-weight: 600; }
    .blog-post-hero .blog-hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
    .blog-content { font-size: 1rem; line-height: 1.85; color: var(--text-muted); }
    .blog-content h2 { font-size: 1.25rem; font-weight: 800; color: var(--text-main); margin: 28px 0 12px; padding-bottom: 8px; border-bottom: 2px solid #fce7f3; display: flex; align-items: center; gap: 10px; }
    .blog-content h2 i { color: var(--primary); font-size: 1rem; }
    .blog-content h3 { font-size: 1.08rem; font-weight: 700; color: var(--text-main); margin: 22px 0 10px; }
    .blog-content p { margin-bottom: 14px; }
    .blog-content ul, .blog-content ol { margin: 10px 0 18px 22px; display: flex; flex-direction: column; gap: 8px; }
    .blog-content li { line-height: 1.7; }
    .blog-content strong { color: var(--text-main); font-weight: 700; }
    .blog-content a { color: var(--primary); text-decoration: none; font-weight: 600; }
    .blog-content blockquote { border-left: 4px solid var(--primary); background: #fdf2f8; padding: 14px 18px; border-radius: 8px; margin: 18px 0; font-style: italic; color: #831843; font-weight: 500; }
    .blog-content .highlight-box { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 12px; padding: 16px 18px; margin: 18px 0; }
    .blog-content .highlight-box strong { color: #9a3412; }
    .blog-content .blog-inline-img { width: 100%; border-radius: 14px; margin: 20px 0; box-shadow: 0 6px 20px rgba(15,23,42,.08); display: block; }
    .blog-content .blog-inline-caption { text-align: center; font-size: 0.8rem; color: var(--text-muted); font-style: italic; margin: -12px 0 20px; }
    body.dark-mode .blog-content blockquote { background: rgba(230,0,107,.1); color: #fbcfe8; }
    body.dark-mode .blog-content .highlight-box { background: rgba(245,158,11,.1); border-color: rgba(245,158,11,.3); }
    body.dark-mode .blog-content .highlight-box strong { color: #fbbf24; }
    .blog-back-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--surface-hover); border: 1px solid var(--border-color); padding: 10px 18px; border-radius: 10px; font-weight: 700; font-size: 0.88rem; color: var(--text-main); cursor: pointer; text-decoration: none; transition: all .18s; margin-top: 8px; }
    .blog-back-btn:hover { background: #fdf2f8; border-color: #fbcfe8; color: var(--primary); }
    .blog-author-box { display: flex; align-items: center; gap: 14px; background: var(--surface-soft); border: 1px solid var(--border-color); border-radius: 16px; padding: 18px; margin-top: 24px; }
    .blog-author-avatar { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, #e6006b, #7c2d12); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
    .blog-author-info strong { display: block; color: var(--text-main); font-size: 0.95rem; font-weight: 800; }
    .blog-author-info span { font-size: 0.82rem; color: var(--text-muted); }
    .blog-share-row { display: flex; align-items: center; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border-color); flex-wrap: wrap; }
    .blog-share-row .label { font-size: 0.85rem; font-weight: 700; color: var(--text-main); margin-right: auto; }
    .blog-share-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-color); background: var(--surface); color: #64748b; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .2s; text-decoration: none; font-size: 0.95rem; }
    .blog-share-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

    .pagination-wrap { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; margin: 28px 0 10px; padding-top: 22px; border-top: 1px solid var(--border-color); width: 100%; }
    .pagination-info { font-size: 0.95rem; color: var(--text-muted); font-weight: 600; text-align: center; }
    .pagination-info strong { color: var(--text-main); font-weight: 800; }
    .pagination-controls { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
    .page-btn { min-width: 42px; height: 42px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--border-color); background: var(--surface); color: var(--text-main); font-weight: 700; font-size: 0.9rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: all .18s; font-family: inherit; }
    .page-btn:hover:not(:disabled):not(.active) { background: #fdf2f8; border-color: #fbcfe8; color: var(--primary); }
    .page-btn.active { background: #e6006b; border-color: #e6006b; color: #fff; cursor: default; box-shadow: 0 4px 10px rgba(230,0,107,.3); }
    .page-btn:disabled { opacity: .4; cursor: not-allowed; background: var(--surface-soft); }
    .page-btn.dots { border: none; background: transparent; cursor: default; padding: 0 4px; color: var(--text-muted); }
    @media (max-width: 480px) { .page-btn { min-width: 38px; height: 38px; padding: 0 8px; font-size: 0.85rem; } .pagination-controls { gap: 4px; } }

    .modal-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.6); backdrop-filter: blur(3px); z-index: 500; display: none; align-items: center; justify-content: center; padding: 16px; }
    .modal-overlay.active { display: flex; }
    .modal-card { background: var(--surface); border-radius: 22px; width: 100%; max-width: 420px; box-shadow: 0 24px 60px rgba(0,0,0,.35); overflow: hidden; }
    .modal-head { padding: 20px 22px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--border-color); }
    .modal-head-icon { width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(135deg, #7c3aed, #6366f1); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; }
    .modal-title-wrap { flex: 1; min-width: 0; }
    .modal-title { font-size: 1.05rem; font-weight: 800; color: var(--text-main); line-height: 1.2; }
    .modal-subtitle { font-size: 0.78rem; color: var(--text-muted); margin-top: 3px; }
    .modal-close { background: var(--surface-hover); border: 1px solid var(--border-color); width: 36px; height: 36px; border-radius: 10px; color: var(--text-muted); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1rem; flex-shrink: 0; }
    .modal-close:hover { background: #fdf2f8; color: var(--primary); border-color: #fbcfe8; }
    .modal-body { padding: 20px 22px 6px; }
    .sleep-active-status { display: none; align-items: center; gap: 14px; background: linear-gradient(135deg, rgba(124,58,237,.1), rgba(99,102,241,.1)); border: 1px solid rgba(124,58,237,.3); border-radius: 14px; padding: 14px 16px; margin-bottom: 18px; }
    .sleep-active-status.active { display: flex; }
    .sleep-active-icon { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, #7c3aed, #6366f1); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
    .sleep-active-text { flex: 1; min-width: 0; }
    .sleep-active-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
    .sleep-active-time { font-size: 1.35rem; font-weight: 800; color: var(--text-main); font-family: 'Courier New', monospace; line-height: 1.2; margin-top: 2px; }
    .sleep-cancel-btn { background: rgba(239,68,68,.15); color: #ef4444; border: 1px solid rgba(239,68,68,.3); padding: 8px 12px; border-radius: 10px; font-size: 0.78rem; font-weight: 800; cursor: pointer; font-family: inherit; flex-shrink: 0; }
    .sleep-options-label { font-size: 0.82rem; font-weight: 700; color: var(--text-muted); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
    .sleep-options-label i { color: var(--primary); font-size: 0.78rem; }
    .sleep-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
    .sleep-option { background: var(--surface-soft); border: 1.5px solid var(--border-color); border-radius: 14px; padding: 14px 6px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; font-family: inherit; color: var(--text-main); transition: all .18s; }
    .sleep-option:hover { background: rgba(124,58,237,.08); border-color: rgba(124,58,237,.5); transform: translateY(-2px); }
    .sleep-option i { font-size: 1.15rem; color: #7c3aed; margin-bottom: 2px; }
    .sleep-option .duration { font-size: 0.95rem; font-weight: 800; color: var(--text-main); }
    .sleep-option .unit { font-size: 0.68rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; }
    .sleep-option.selected { background: linear-gradient(135deg, rgba(124,58,237,.15), rgba(99,102,241,.15)); border-color: #7c3aed; box-shadow: 0 6px 16px rgba(124,58,237,.25); }
    .modal-foot { padding: 12px 22px 20px; display: flex; justify-content: flex-end; gap: 10px; }
    .modal-btn-cancel { background: var(--surface-hover); border: 1px solid var(--border-color); color: var(--text-main); padding: 10px 20px; border-radius: 10px; font-size: 0.88rem; font-weight: 700; cursor: pointer; font-family: inherit; }
    .toast { position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%) translateY(20px); background: #0f172a; color: #fff; padding: 12px 22px; border-radius: 12px; font-size: 0.88rem; font-weight: 700; box-shadow: 0 12px 30px rgba(0,0,0,.35); z-index: 400; opacity: 0; pointer-events: none; transition: all .3s; display: flex; align-items: center; gap: 10px; max-width: 90%; }
    .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
    .toast i { color: #22c55e; }
    .toast.error i { color: #ef4444; }
    .toast.timer i { color: #a78bfa; }
  


    /* install page */
    .install-hero-btn {
      display: inline-flex; align-items: center; justify-content: center; gap: 10px;
      margin-top: 18px; padding: 14px 30px; border: none; border-radius: 99px; cursor: pointer;
      background: linear-gradient(135deg, #ff3d8a, #e6006b); color: #fff;
      font-size: 0.95rem; font-weight: 800; font-family: inherit;
      box-shadow: 0 8px 22px rgba(230,0,107,.35); transition: transform .2s, box-shadow .2s;
    }
    .install-hero-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(230,0,107,.45); }
    .install-hero-btn:disabled { opacity: .6; cursor: default; transform: none; }
    .install-note { margin-top: 14px; font-size: 0.82rem; color: var(--text-muted); }
    .install-step { display: flex; gap: 14px; margin-bottom: 18px; }
    .install-step-num {
      flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
      background: linear-gradient(135deg, #ff3d8a, #e6006b); color: #fff;
      display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.85rem;
    }
    .install-step-body { flex: 1; min-width: 0; }
    .install-step-body h3 { font-size: 0.98rem; font-weight: 800; color: var(--text-main); margin-bottom: 4px; }
    .install-step-body p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

    /* install status rows */
    .pwa-status-list { display: grid; gap: 12px; }
    .pwa-status-row { display: flex; gap: 12px; align-items: flex-start; }
    .pwa-status-row > i { margin-top: 3px; font-size: 0.95rem; flex-shrink: 0; }
    .pwa-status-row > div { min-width: 0; }
    .pwa-status-row strong { display: block; font-size: 0.88rem; font-weight: 800; color: var(--text-main); }
    .pwa-status-row span { font-size: 0.82rem; color: var(--text-muted); line-height: 1.55; }
