/*
Theme Name: DooBall66
Theme URI: https://dooball66.net
Author: DooBall66
Author URI: https://dooball66.net
Description: ธีมเว็บดูบอลออนไลน์/ดูบอลสด สไตล์ DooBall66 รองรับ Custom Post Type แมตช์บอล, เมนูไอคอน SVG, Customizer (โลโก้/LINE/SEO), วิดเจ็ต และจอเล่นวิดีโอในตัว (YouTube, vdo.ninja, HLS ฯลฯ)
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dooball66
Tags: sports, video, custom-post-type, custom-menu, custom-logo, footer-widgets, dark, full-width-template, translation-ready
*/

  *{margin:0;padding:0;box-sizing:border-box}
  body{
    background:#000;
    font-family:Tahoma,"Segoe UI",Arial,sans-serif;
    color:#ddd;
    font-size:13px;
    line-height:1.5;
  }
  a{text-decoration:none;color:inherit}
  .wrap{max-width:690px;margin:0 auto;background:#000;position:relative}

  /* ---------- HEADER ---------- */
  header{background:#0c0c0c;display:flex;align-items:center;justify-content:space-between;padding:14px 18px;border-bottom:1px solid #1a1a1a}
  .brand{display:flex;align-items:center;gap:10px}
  .brand .logo-mark{width:46px;height:46px;flex-shrink:0}
  .brand .brand-txt{line-height:1}
  .brand .brand-txt .b1{font-size:26px;font-weight:800;letter-spacing:.5px;color:#fff}
  .brand .brand-txt .b1 b{color:#f5821f}
  .brand .brand-txt .b2{font-size:7px;letter-spacing:1.2px;color:#9a9a9a;margin-top:3px}
.line-cta {
    background: #067cc7;
    border-radius: 8px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #fff;
}
.line-cta .lico{width:30px;height:30px;flex-shrink:0}
  .line-cta .ltxt .t1{font-size:11px;font-weight:700}
  .line-cta .ltxt .t2{font-size:13px;font-weight:800}

.line-cta2 {
    background: #067cc7;
    border-radius: 8px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #fff;
}
.line-cta2 .lico{width:30px;height:30px;flex-shrink:0}
  .line-cta2 .ltxt .t1{font-size:11px;font-weight:700}
  .line-cta2 .ltxt .t2{font-size:13px;font-weight:800}
  /* ---------- NAV ---------- */
  nav{background:#0c0c0c;display:flex;justify-content:center;flex-wrap:wrap;padding:6px 0 12px;border-bottom:1px solid #1a1a1a}
  .nav-item{width:80px;display:flex;flex-direction:column;align-items:center;gap:7px;padding:8px 2px;color:#cfcfcf;cursor:pointer}
  .nav-item .nbox{width:30px;height:30px;display:flex;align-items:center;justify-content:center}
  .nav-item .nbox svg{width:28px;height:28px}
  .nav-item.active .nbox{background:#f5821f;border-radius:7px;width:38px;height:38px;box-shadow:0 2px 6px rgba(245,130,31,.5)}
  .nav-item.active .nbox svg{width:24px;height:24px}
  .nav-item span{font-size:11px;white-space:nowrap}
  .nav-item.active span{color:#fff}

  /* ---------- INTRO TEXT ---------- */
  .intro-line{padding:9px 16px;font-size:12px;color:#cfcfcf;border-bottom:1px solid #161616}

  /* ---------- BANNER ---------- */
  .banner{padding:10px 12px 0}
  .banner-inner{background:linear-gradient(90deg,#2a2a2a 0%,#3a3a3a 40%,#555 100%);border-radius:6px;overflow:hidden;position:relative;height:118px;display:flex;align-items:center}
  .banner-inner .bn-left{padding:0 16px;z-index:2}
  .banner-inner .bn-brand{display:flex;align-items:center;gap:6px;margin-bottom:4px}
  .banner-inner .bn-brand .bm{width:20px;height:20px}
  .banner-inner .bn-brand span{font-size:11px;font-weight:800;color:#fff}
  .banner-inner .bn-brand b{color:#f5821f}
  .banner-inner .bn-head{font-size:26px;font-weight:900;color:#fff;line-height:1.05;text-shadow:1px 1px 0 #c4490a}
  .banner-inner .bn-head em{color:#ffd23f;font-style:normal}
  .banner-inner .bn-sub{display:inline-block;background:#111;color:#fff;font-size:13px;font-weight:800;padding:3px 10px;border-radius:4px;margin-top:6px}
  .banner-inner .bn-sub b{color:#f5821f}
  .banner-inner .bn-isp{display:flex;align-items:center;gap:10px;margin-top:8px}
  .banner-inner .bn-isp span{font-size:12px;font-weight:800;color:#fff;opacity:.9}
  .banner-inner .bn-phones{position:absolute;right:6px;top:0;bottom:0;display:flex;align-items:center;gap:4px;opacity:.92}
  .banner-inner .ph{background:#111;border:2px solid #444;border-radius:8px;width:58px;height:104px;transform:rotate(8deg)}
  .banner-inner .ph.two{transform:rotate(-6deg);background:#e8e8e8}

  .free-line{text-align:center;font-size:13px;color:#e6e6e6;padding:14px 16px 4px}
  .free-line b{color:#fff}
  .now-line{text-align:center;font-size:14px;color:#fff;font-weight:700;padding:6px 16px 12px}

  /* ---------- SPORT ICON GRID ---------- */
  .sports{display:flex;flex-wrap:wrap;justify-content:center;gap:7px;padding:4px 16px 10px;max-width:560px;margin:0 auto}
  .sp{width:32px;height:32px;background:#111;border:1px solid #262626;border-radius:6px;display:flex;align-items:center;justify-content:center;cursor:pointer}
  .sp svg{width:20px;height:20px}
  .sp.on{background:#f5821f;border-color:#f5821f}
  .live-now{text-align:center;color:#e60000;font-weight:800;font-size:14px;padding:8px 0 12px;letter-spacing:.5px}

  /* ---------- MATCH LISTS ---------- */
  .list{padding:0 12px}
  .lg-head{display:flex;align-items:center;gap:8px;padding:7px 12px;font-size:12.5px;font-weight:700;color:#fff;margin-top:6px}
  .lg-head.orange{background:#f5821f}
  .lg-head.gray{background:#8a8a8a}
  .lg-head .flag{width:22px;height:15px;border-radius:2px;overflow:hidden;flex-shrink:0;box-shadow:0 0 0 1px rgba(0,0,0,.25)}
  .lg-head .ball-mini{width:15px;height:15px;flex-shrink:0}
  .lg-head .lg-name b{font-weight:700}

  .match{display:flex;align-items:center;padding:9px 10px;gap:8px}
  .match.cream{background:#fdf7e3}
  .match.cream + .match.cream{border-top:1px solid #f0e8c8}
  .match.white{background:#fff}
  .match.white + .match.white{border-top:1px solid #ececec}
  .m-time{width:84px;flex-shrink:0;font-size:12px;color:#333}
  .m-time .dt{display:inline;font-size:12px;color:#333;margin-right:3px}
  .live-min{display:inline-flex;align-items:center;gap:3px;color:#e60000;font-weight:700;font-size:11px;margin-top:2px}
  .live-min .dot{width:8px;height:8px;border-radius:50%;background:#e60000;display:inline-block}

  .m-center{flex:1;min-width:0;display:flex;align-items:center;justify-content:center;gap:6px}
  .m-home{flex:1;min-width:0;display:flex;align-items:center;justify-content:flex-end;gap:7px;text-align:right;color:#1a1a1a;font-size:13px;overflow-wrap:anywhere}
  .m-away{flex:1;min-width:0;display:flex;align-items:center;justify-content:flex-start;gap:7px;text-align:left;color:#1a1a1a;font-size:13px;overflow-wrap:anywhere}
  .m-vs{width:26px;text-align:center;color:#7a7a7a;font-size:12px;flex-shrink:0}
  .m-score{min-width:40px;text-align:center;font-weight:800;color:#111;font-size:14px;flex-shrink:0}
  .tlogo{width:22px;height:22px;border-radius:50%;background:#cdcdcd;flex-shrink:0;overflow:hidden;display:flex;align-items:center;justify-content:center}
  .tlogo .flag{width:22px;height:22px;border-radius:50%}
  .two-line{display:inline-flex;flex-direction:column}
  .two-line .th{font-size:13px;color:#1a1a1a;line-height:1.15}
  .two-line .en{font-size:10px;color:#888;line-height:1.1}
  .m-home.right .two-line{align-items:flex-end}

  .m-actions{display:flex;gap:4px;flex-shrink:0}
  .ab{width:27px;height:27px;border-radius:5px;display:flex;align-items:center;justify-content:center;color:#fff}
  .ab svg{width:15px;height:15px}
  .ab.link{background:#3fb6dc}
  .ab.fb{background:#3b5998;font-weight:800;font-family:Georgia,serif;font-size:16px}
  .ab.ln{background:#06c755;font-size:9px;font-weight:800;letter-spacing:.3px}
  /* muted variants for upcoming */
  .white .ab.link{background:#9fbcc8}
  .white .ab.fb{background:#9aa2b6}
  .white .ab.ln{background:#a9cba9}

  .divider{border-bottom:1px solid #2a2a2a;margin:18px 14px}
  .gen-line{padding:14px 14px 4px;font-size:11px;color:#777}

  .iframe-btn{display:block;width:fit-content;margin:18px auto 24px;background:#2a7bd6;color:#fff;font-size:13px;font-weight:700;padding:9px 22px;border-radius:5px;cursor:pointer}

  /* ---------- FOOTER SEO ---------- */
  .seo{padding:6px 18px 10px;font-size:12.5px;color:#bdbdbd;line-height:1.85}
  .seo b{color:#fff}
  .seo .o{color:#f5821f;font-weight:700}
  .seo p{margin-bottom:2px}
  .seo .leagues{margin-top:12px}
  .seo .leagues b{color:#f5821f}
  .seo .tags{margin-top:10px}
  .seo .tags b{color:#f5821f}
  .seo .support{margin-top:14px;display:flex;align-items:center;gap:8px}
  .seo .support b{color:#f5821f}
  .seo .support .zaa{display:inline-flex;align-items:center;gap:4px;background:#0b0b0b;border:1px solid #2a2a2a;padding:3px 8px;border-radius:4px}
  .seo .support .zaa svg{height:14px}
  .seo .support .zaa span{font-size:12px;font-weight:900;color:#e60000;letter-spacing:.5px}

  .copyright{border-top:1px solid #1a1a1a;text-align:center;font-size:11px;color:#7a7a7a;padding:16px}
  .copyright b{color:#bbb}

  /* ============ LIVE PLAYER ============ */
  .match{cursor:pointer;transition:background .12s}
  .match.cream:hover{background:#fff3cf}
  .match.white:hover{background:#f1f1f1}
  .match.playing{box-shadow:inset 4px 0 0 #f5821f}

  .player{display:none;background:#000;border-bottom:3px solid #f5821f}
  .player.show{display:block}
  .player-bar{display:flex;align-items:center;gap:8px;padding:8px 12px;background:#141414}
  .player-bar .pdot{width:9px;height:9px;border-radius:50%;background:#e60000;flex-shrink:0;animation:blink 1s steps(2,start) infinite}
  .player-title{flex:1;min-width:0;color:#fff;font-size:13px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .player-close{background:#2a2a2a;border:none;width:26px;height:26px;border-radius:5px;display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0}
  .player-close svg{width:13px;height:13px}
  .player-close:hover{background:#3a3a3a}
  .player-linkbtn{background:#2a2a2a;border:none;width:26px;height:26px;border-radius:5px;display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0}
  .player-linkbtn svg{width:14px;height:14px}
  .player-linkbtn:hover,.player-linkbtn.on{background:#f5821f}
  .player-input{display:none;gap:6px;padding:8px 12px;background:#1b1b1b;border-top:1px solid #2a2a2a}
  .player-input.open{display:flex}
  .player-input input{flex:1;min-width:0;background:#0c0c0c;border:1px solid #333;color:#fff;font-size:12px;padding:7px 9px;border-radius:5px;outline:none;font-family:inherit}
  .player-input input:focus{border-color:#f5821f}
  .player-input button{background:#f5821f;color:#fff;border:none;font-size:12px;font-weight:700;padding:0 16px;border-radius:5px;cursor:pointer;font-family:inherit;flex-shrink:0}
  #pvideo{object-fit:contain;background:#000}
  .paste-trigger{display:inline-block;color:#f5821f;font-size:12px;font-weight:700;cursor:pointer;text-decoration:underline;margin-left:4px}

  .player-screen{position:relative;width:100%;aspect-ratio:16/9;overflow:hidden;background:#04130a}
  .player-screen .stream{position:absolute;inset:0;width:100%;height:100%;border:0;background:#000}
  .player-screen.has-stream .demo{display:none}
  .demo{position:absolute;inset:0}
  .pitch{position:absolute;inset:0;width:100%;height:100%}
  .sweep{position:absolute;top:0;bottom:0;width:38%;left:-40%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.07) 50%,transparent);animation:sweep 4.5s linear infinite}
  .ball{position:absolute;left:18%;top:62%;width:13px;height:13px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff,#b9b9b9);box-shadow:0 2px 6px rgba(0,0,0,.6);animation:ballmove 6s ease-in-out infinite;z-index:2}
  .scr-badge{position:absolute;top:10px;left:10px;display:flex;align-items:center;gap:5px;background:#e60000;color:#fff;font-size:11px;font-weight:800;letter-spacing:.5px;padding:3px 8px;border-radius:4px;z-index:3}
  .scr-badge .b{width:7px;height:7px;border-radius:50%;background:#fff;animation:blink 1s steps(2,start) infinite}
  .scr-clock{position:absolute;top:10px;right:10px;background:rgba(0,0,0,.55);color:#fff;font-size:12px;font-weight:700;padding:3px 9px;border-radius:4px;z-index:3}
  .scoreboard{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);text-align:center;color:#fff;z-index:3;width:92%;text-shadow:0 2px 8px rgba(0,0,0,.85)}
  .scoreboard .sb-league{font-size:11px;color:#ffd79a;margin-bottom:8px;font-weight:700}
  .scoreboard .sb-row{display:flex;align-items:center;justify-content:center;gap:12px}
  .scoreboard .sb-team{flex:1;min-width:0;font-size:15px;font-weight:800;overflow-wrap:anywhere}
  .scoreboard .sb-team.left{text-align:right}
  .scoreboard .sb-team.right{text-align:left}
  .scoreboard .sb-score{background:rgba(0,0,0,.45);border:1px solid rgba(255,255,255,.25);border-radius:6px;padding:6px 12px;font-size:20px;font-weight:900;white-space:nowrap}
  .scoreboard .sb-min{margin-top:8px;font-size:12px;color:#fff;font-weight:700}
  .scr-note{position:absolute;left:0;right:0;bottom:46px;text-align:center;color:rgba(255,255,255,.6);font-size:10.5px;z-index:3;padding:0 12px}
  .scr-note b{color:#ffd79a}
  .controls{position:absolute;left:0;right:0;bottom:0;height:38px;display:flex;align-items:center;gap:10px;padding:0 12px;background:linear-gradient(transparent,rgba(0,0,0,.78));z-index:4}
  .controls svg{width:16px;height:16px;flex-shrink:0;opacity:.92}
  .controls .bar{flex:1;height:4px;border-radius:2px;background:rgba(255,255,255,.25);position:relative;overflow:hidden}
  .controls .bar::after{content:'';position:absolute;left:0;top:0;bottom:0;width:100%;background:#e60000}
  .controls .livetag{font-size:10px;font-weight:800;color:#fff;background:#e60000;padding:1px 6px;border-radius:3px}

  @keyframes blink{50%{opacity:.15}}
  @keyframes sweep{0%{left:-40%}100%{left:110%}}
  @keyframes ballmove{0%{left:18%;top:62%}25%{left:70%;top:30%}50%{left:48%;top:70%}75%{left:28%;top:35%}100%{left:18%;top:62%}}
  @media(prefers-reduced-motion:reduce){.sweep,.ball,.pdot,.scr-badge .b{animation:none}}

  /* ============ FLOURISHES ============ */
  .ticker{display:flex;align-items:stretch;background:#0c0c0c;border-bottom:1px solid #1a1a1a;height:30px;overflow:hidden}
  .ticker-label{display:flex;align-items:center;gap:5px;background:#e60000;color:#fff;font-size:11px;font-weight:800;letter-spacing:.5px;padding:0 10px;flex-shrink:0;z-index:2}
  .ticker-label .tl-dot{width:7px;height:7px;border-radius:50%;background:#fff;animation:blink 1s steps(2,start) infinite}
  .ticker-viewport{flex:1;overflow:hidden;position:relative}
  .ticker-track{display:inline-flex;align-items:center;height:30px;white-space:nowrap;will-change:transform;animation:scrollx linear infinite}
  .ticker:hover .ticker-track{animation-play-state:paused}
  .ti{display:inline-flex;align-items:center;gap:6px;padding:0 16px;font-size:12px;color:#ddd;cursor:pointer;border-right:1px solid #1e1e1e}
  .ti:hover{background:#161616}
  .ti b{color:#fff;font-weight:600}
  .ti em{color:#ffd23f;font-weight:800;font-style:normal}
  .ti .vs{color:#777}
  .ti i{color:#e60000;font-style:normal;font-weight:700;font-size:11px}
  @keyframes scrollx{from{transform:translateX(0)}to{transform:translateX(-50%)}}

  .viewers{display:flex;align-items:center;justify-content:center;gap:6px;color:#9a9a9a;font-size:12px;padding:0 0 12px}
  .viewers svg{width:14px;height:14px;opacity:.8}
  .viewers b{color:#f5821f;font-weight:800;font-variant-numeric:tabular-nums}

  #backtop{position:fixed;right:16px;bottom:18px;width:42px;height:42px;border-radius:50%;background:#f5821f;border:none;display:flex;align-items:center;justify-content:center;cursor:pointer;opacity:0;visibility:hidden;transform:translateY(10px);transition:all .25s;box-shadow:0 4px 12px rgba(0,0,0,.45);z-index:50}
  #backtop.show{opacity:1;visibility:visible;transform:none}
  #backtop:hover{background:#ff9326}
  #backtop svg{width:20px;height:20px}

  .copy-toast{position:fixed;left:50%;bottom:26px;transform:translate(-50%,20px);background:#1eaa54;color:#fff;font-size:13px;font-weight:700;padding:10px 18px;border-radius:6px;box-shadow:0 6px 18px rgba(0,0,0,.4);opacity:0;visibility:hidden;transition:all .25s;z-index:60;display:flex;align-items:center;gap:7px}
  .copy-toast.show{opacity:1;visibility:visible;transform:translate(-50%,0)}
  .copy-toast svg{width:15px;height:15px}
  .iframe-btn:active{transform:scale(.97)}

  @media(max-width:480px){
    .ti{padding:0 12px;font-size:11px}
    #backtop{width:38px;height:38px;right:12px;bottom:14px}
    .viewers{font-size:11px}
  }

  /* ============ RESPONSIVE ============ */
  /* tablet / small laptop */
  @media(max-width:640px){
    .brand .brand-txt .b2{display:none}
    .brand .logo-mark{width:40px;height:40px}
    .brand .brand-txt .b1{font-size:22px}
    .line-cta{padding:7px 11px;gap:7px}
    .line-cta .lico{width:26px;height:26px}
    .line-cta .ltxt .t1{font-size:10px}
    .line-cta .ltxt .t2{font-size:12px}
    .nav-item{width:auto;flex:1 0 22%}
    .banner-inner{height:auto;min-height:104px;padding:12px 0}
    .banner-inner .bn-head{font-size:20px}
  }

  /* phones */
  @media(max-width:480px){
    body{font-size:12px}
    header{padding:10px 12px}
    .brand{gap:7px}
    .brand .brand-txt .b1{font-size:18px}
    .line-cta{padding:6px 9px;gap:6px}
    .line-cta .lico{width:24px;height:24px}
    .line-cta .ltxt .t1{font-size:9px}
    .line-cta .ltxt .t2{font-size:11px}

    nav{padding:4px 0 8px}
    .nav-item{flex:1 0 24%;width:auto;padding:7px 1px;gap:5px}
    .nav-item .nbox{width:26px;height:26px}
    .nav-item .nbox svg{width:24px;height:24px}
    .nav-item.active .nbox{width:32px;height:32px}
    .nav-item.active .nbox svg{width:21px;height:21px}
    .nav-item span{font-size:9.5px}

    .intro-line{padding:8px 12px;font-size:11px}
    .banner{padding:8px 8px 0}
    .banner-inner .bn-left{padding:0 12px}
    .banner-inner .bn-head{font-size:17px}
    .banner-inner .bn-sub{font-size:11px;padding:2px 7px}
    .banner-inner .bn-isp span{font-size:11px}
    .banner-inner .ph{width:44px;height:82px}
    .banner-inner .ph.two{width:44px;height:82px}
    .free-line{font-size:12px;padding:12px 12px 4px}
    .now-line{font-size:13px}

    .sports{gap:5px;padding:4px 10px 8px}
    .sp{width:28px;height:28px}
    .sp svg{width:17px;height:17px}

    .list{padding:0 8px}
    .lg-head{font-size:11px;padding:6px 8px;gap:6px}
    .lg-head .flag{width:20px;height:13px}
    .match{padding:7px 6px;gap:5px}
    .m-time{width:50px;font-size:11px}
    .m-time .dt{display:block;font-size:10.5px;margin-right:0}
    .live-min{font-size:10px}
    .m-home,.m-away{font-size:11px;gap:5px}
    .m-vs{width:16px;font-size:10px}
    .m-score{min-width:32px;font-size:12.5px}
    .tlogo{width:18px;height:18px}
    .tlogo .flag{width:18px;height:18px}
    .two-line .th{font-size:11px}
    .two-line .en{font-size:9px}
    .m-actions{gap:3px}
    .ab{width:24px;height:24px;border-radius:4px}
    .ab svg{width:13px;height:13px}
    .ab.fb{font-size:14px}
    .ab.ln{font-size:7.5px}

    .gen-line{padding:12px 12px 4px}
    .iframe-btn{font-size:12px;padding:8px 18px;margin:16px auto 20px}
    .seo{padding:6px 12px 10px;font-size:11.5px;line-height:1.7}
    .copyright{padding:14px 12px;font-size:10.5px}
  }

  /* very small phones */
  @media(max-width:360px){
    .nav-item{flex:1 0 25%}
    .nav-item span{font-size:9px}
    .m-time{width:46px}
    .m-home,.m-away{font-size:10.5px}
    .m-vs{width:14px}
    .ab{width:22px;height:22px}
    .ab svg{width:12px;height:12px}
    .banner-inner .bn-head{font-size:15px}
  }
  /* ============ BUTTON HOVER FX ============ */
  /* match share buttons: spring-lift + colored glow */
  .ab{transition:transform .16s cubic-bezier(.34,1.56,.64,1), box-shadow .16s, background .16s}
  .ab svg{transition:transform .16s}
  .ab:hover{transform:translateY(-2px) scale(1.12)}
  .ab:hover svg{transform:scale(1.12)}
  .ab:active{transform:translateY(0) scale(.95)}
  .ab.link:hover{background:#23c1ef;box-shadow:0 4px 11px rgba(63,182,220,.6)}
  .ab.fb:hover{background:#2167da;box-shadow:0 4px 11px rgba(59,89,152,.6)}
  .ab.ln:hover{background:#05e070;box-shadow:0 4px 11px rgba(6,199,85,.6)}

  /* sport icons: lift + orange ring, active one gently pulses */
  .sp{transition:transform .18s cubic-bezier(.34,1.56,.64,1), border-color .15s, background .15s, box-shadow .15s}
  .sp:hover{transform:translateY(-3px) scale(1.12);border-color:#f5821f;box-shadow:0 5px 12px rgba(0,0,0,.5)}
  .sp:active{transform:scale(.94)}
  .sp.on{animation:sppulse 2.4s ease-in-out infinite}
  .sp.on:hover{transform:translateY(-3px) scale(1.14)}
  @keyframes sppulse{0%,100%{box-shadow:0 0 0 0 rgba(245,130,31,.55)}50%{box-shadow:0 0 0 5px rgba(245,130,31,0)}}

  /* top nav: icon hops, label turns orange */
  .nav-item .nbox{transition:transform .2s cubic-bezier(.34,1.56,.64,1), background .15s}
  .nav-item span{transition:color .15s}
  .nav-item:hover .nbox{transform:translateY(-3px) scale(1.08)}
  .nav-item:hover span{color:#f5821f}
  .nav-item:active .nbox{transform:translateY(0) scale(.96)}

  /* LINE call-to-action */
  .line-cta{transition:transform .16s, box-shadow .16s, filter .16s}
  .line-cta:hover{transform:translateY(-1px) scale(1.02);box-shadow:0 6px 16px rgba(6,199,85,.5);filter:brightness(1.05)}
  .line-cta:active{transform:scale(.99)}

  /* copy iframe */
  .iframe-btn{transition:transform .15s, box-shadow .16s, background .16s}
  .iframe-btn:hover{background:#2f88e6;transform:translateY(-2px);box-shadow:0 6px 16px rgba(42,123,214,.5)}
  .iframe-btn:active{transform:scale(.97) translateY(0)}

  /* player buttons */
  .player-close,.player-linkbtn{transition:transform .15s, background .15s}
  .player-close:hover,.player-linkbtn:hover{transform:scale(1.13)}
  .player-input button{transition:transform .15s, filter .15s}
  .player-input button:hover{filter:brightness(1.08);transform:translateY(-1px)}

  /* back to top: pops + arrow nudges up */
  #backtop svg{transition:transform .2s}
  #backtop:hover{transform:scale(1.1)}
  #backtop:hover svg{transform:translateY(-2px)}

  .paste-trigger{transition:color .15s}
  .paste-trigger:hover{color:#ff9326}

/* ===== WP-specific: heading resets so the H1/H2 keep the original look ===== */
h1.intro-line{font-weight:400;margin:0}
h2.now-line,h2.live-now{margin:0}

/* ===== generic content (posts/pages) on the dark theme ===== */
.content{max-width:690px;margin:0 auto;padding:18px;color:#d7d7d7;line-height:1.8}
.content .page-title{font-size:22px;color:#fff;margin:6px 0 16px;border-left:4px solid #f5821f;padding-left:10px}
.content article{margin-bottom:26px;padding-bottom:18px;border-bottom:1px solid #1c1c1c}
.content h1,.content h2,.content h3{color:#fff;margin:18px 0 8px}
.content a{color:#f5821f;text-decoration:underline}
.content img{max-width:100%;height:auto;border-radius:6px}
.content .entry-title a{color:#fff;text-decoration:none}
.content .entry-meta{font-size:12px;color:#888;margin-bottom:8px}
.content .more-link{display:inline-block;margin-top:6px;color:#f5821f;font-weight:700}
.content blockquote{border-left:3px solid #f5821f;margin:14px 0;padding:4px 14px;color:#bbb;background:#0d0d0d}
.content code{background:#111;padding:2px 6px;border-radius:4px;color:#ffd79a}
.pager{display:flex;justify-content:center;gap:10px;padding:10px 0 30px}
.pager a,.pager span{background:#141414;border:1px solid #2a2a2a;color:#ddd;padding:7px 13px;border-radius:5px;text-decoration:none}
.pager a:hover{border-color:#f5821f;color:#fff}
.searchform{display:flex;gap:6px;margin:10px 0}
.searchform input[type=search]{flex:1;background:#0c0c0c;border:1px solid #333;color:#fff;padding:8px 10px;border-radius:5px}
.searchform button{background:#f5821f;border:none;color:#fff;font-weight:700;padding:0 16px;border-radius:5px;cursor:pointer}
.widget-area{max-width:690px;margin:0 auto;padding:8px 18px 24px}
.widget{margin-bottom:20px}
.widget-title{color:#fff;font-size:14px;font-weight:800;border-left:4px solid #f5821f;padding-left:9px;margin-bottom:10px}
.widget ul{list-style:none}
.widget li{padding:6px 0;border-bottom:1px solid #181818}
.widget a{color:#cfcfcf;text-decoration:none}
.widget a:hover{color:#f5821f}
.error-404{max-width:690px;margin:0 auto;padding:60px 18px;text-align:center}
.error-404 .big{font-size:64px;font-weight:900;color:#f5821f}

/* ===== Homepage articles (user-created posts/pages) ===== */
.posts,.feat-page{max-width:690px;margin:16px auto 0;padding:0 16px}
.sec-head{display:flex;align-items:center;gap:8px;color:#fff;font-size:16px;font-weight:800;margin:0 0 12px}
.sec-head::before{content:"";flex:0 0 auto;width:4px;height:18px;background:#f5821f;border-radius:2px}
.posts-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.post-card{display:block;background:#0d0d0d;border:1px solid #1e1e1e;border-radius:9px;overflow:hidden;text-decoration:none;transition:transform .16s cubic-bezier(.34,1.56,.64,1),box-shadow .16s,border-color .16s}
.post-card:hover{transform:translateY(-3px);border-color:#f5821f;box-shadow:0 8px 18px rgba(0,0,0,.55)}
.pc-thumb{aspect-ratio:16/10;background:#161616;display:flex;align-items:center;justify-content:center;overflow:hidden}
.pc-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.pc-ph{color:#3c3c3c;font-weight:800;font-size:13px;letter-spacing:.5px}
.pc-body{padding:9px 10px 11px}
.pc-title{color:#fff;font-size:13.5px;font-weight:700;line-height:1.42;margin:0 0 5px}
.pc-meta{color:#7d7d7d;font-size:10.5px;margin:0 0 6px}
.pc-ex{color:#b5b5b5;font-size:11.5px;line-height:1.6;margin:0}
.fp-content{padding:0}
.fp-content p{margin:0 0 10px}
@media(max-width:640px){.posts-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:400px){.posts-grid{grid-template-columns:1fr}.sec-head{font-size:15px}}

/* ===== Menu uploaded icon (Appearance > Menus) ===== */
.nbox .nico-img{width:24px;height:24px;object-fit:contain;display:block}
/* ===== Shortcode / banner slots (Theme Options) ===== */
.dball-slot{max-width:690px;margin:12px auto;padding:0 16px;text-align:center}
.dball-slot img{max-width:100%;height:auto;border-radius:6px}
.banner-sidebar{margin:0 0 16px;padding:0;max-width:none}
/* ===== Footer logo + disclaimer ===== */
.footer-logo{max-width:690px;margin:14px auto 0;padding:0 16px;text-align:center}
.footer-logo img{max-height:46px;width:auto;display:inline-block}
.disclaimer{max-width:690px;margin:8px auto 0;padding:0 16px 6px;color:#777;font-size:11px;line-height:1.7;text-align:center}
/* ===== Sports row icons via menu (uploaded image) ===== */
.sp .sp-ico{width:22px;height:22px;object-fit:contain;display:block}
.sports a.sp{text-decoration:none}

.brand img.logo-mark{width:46px;height:46px;object-fit:contain;display:block}

/* ===== Sports category tabs + content panels ===== */
.sports-tabs .sp{cursor:pointer}
.sp-panels{max-width:690px;margin:4px auto 0;padding:0 16px}
.sp-panel{display:none;background:#0d0d0d;border:1px solid #1f1f1f;border-radius:8px;padding:12px;color:#ddd}
.sp-panel.is-open{display:block;animation:dballfade .2s ease}
.sp-panel img{max-width:100%;height:auto}
@keyframes dballfade{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}


/* ===== Header logo image-only mode v1.3 ===== */
.brand{min-width:0;text-decoration:none}
.brand .site-logo-img{display:block;width:auto;height:auto;max-height:58px;max-width:260px;object-fit:contain;flex-shrink:0}
header .brand:has(.site-logo-img){gap:0}
@media (max-width:768px){
  .brand .site-logo-img{max-height:46px;max-width:210px}
}
@media (max-width:480px){
  .brand .site-logo-img{max-height:40px;max-width:165px}
  header{gap:8px}
}
@media (max-width:360px){
  .brand .site-logo-img{max-width:145px}
}
