/*
Theme Name: Football Hupu
Description: Vietnam football - Hupu.com UI from scratch
Version: 2.0
*/
:root{
  --red:#e03a2d;--red-d:#c0321f;--red-bg:#fff1f0;
  --black:#1a1a1a;--g1:#333;--g2:#555;--g3:#888;--g4:#bbb;--g5:#e5e5e5;--g6:#f5f5f5;
  --white:#fff;--border:#e8e8e8;
  --sh:0 1px 4px rgba(0,0,0,.08);--sh2:0 4px 16px rgba(0,0,0,.10);
  --r:4px;--r2:8px;--nav-h:56px;--side:300px;
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
html{font-size:14px;}
body{
  font-family:'PingFang SC','Microsoft YaHei','Helvetica Neue',Arial,sans-serif;
  background:var(--g6);color:var(--g1);line-height:1.6;
}
a{color:inherit;text-decoration:none;}
a:hover{color:var(--red);}
img{display:block;max-width:100%;height:auto;}
ul{list-style:none;}
button,input{font-family:inherit;}

/* Layout */
.hp-wrap{max-width:1200px;margin:0 auto;padding:0 16px;}
.hp-page{max-width:1200px;margin:16px auto;padding:0 16px;display:grid;grid-template-columns:1fr var(--side);gap:16px;align-items:start;}
.hp-page--full{max-width:1200px;margin:16px auto;padding:0 16px;}

/* Header */
.site-header{position:sticky;top:0;z-index:9000;background:var(--white);border-bottom:2px solid var(--red);box-shadow:var(--sh);transition:box-shadow .2s;}
.site-header.scrolled{box-shadow:var(--sh2);}
.hp-nav{max-width:1200px;margin:0 auto;padding:0 16px;height:var(--nav-h);display:flex;align-items:center;}
.hp-logo{flex-shrink:0;margin-right:28px;display:flex;align-items:center;gap:6px;}
.hp-logo-icon{width:34px;height:34px;background:var(--red);border-radius:var(--r);display:flex;align-items:center;justify-content:center;font-size:18px;}
.hp-logo-text{font-size:19px;font-weight:900;color:var(--red);letter-spacing:1px;}
.hp-logo:hover .hp-logo-text{color:var(--red-d);}
.hp-nav-menu{flex:1;display:flex;align-items:center;height:var(--nav-h);list-style:none;}
.hp-nav-menu li{display:flex;}
.hp-nav-menu>li>a{display:flex;align-items:center;height:var(--nav-h);padding:0 13px;font-size:14px;font-weight:700;color:var(--black);white-space:nowrap;border-bottom:3px solid transparent;transition:color .15s,border-color .15s;}
.hp-nav-menu>li>a:hover,.hp-nav-menu>li.current-menu-item>a{color:var(--red);border-bottom-color:var(--red);}
.hp-nav-right{flex-shrink:0;display:flex;align-items:center;gap:8px;margin-left:16px;}
.hp-search{display:flex;align-items:center;border:1.5px solid var(--border);border-radius:20px;height:32px;overflow:hidden;background:var(--g6);transition:border-color .15s;}
.hp-search:focus-within{border-color:var(--red);background:var(--white);}
.hp-search input{border:none;outline:none;background:transparent;padding:0 10px;font-size:13px;width:130px;height:100%;color:var(--black);}
.hp-search input::placeholder{color:var(--g4);}
.hp-search button{border:none;background:var(--red);color:var(--white);height:100%;padding:0 12px;cursor:pointer;display:flex;align-items:center;transition:background .15s;}
.hp-search button:hover{background:var(--red-d);}
.hp-hamburger{display:none;flex-direction:column;justify-content:center;align-items:center;gap:5px;width:34px;height:34px;border:1.5px solid var(--border);background:transparent;border-radius:var(--r);cursor:pointer;padding:5px;}
.hp-hamburger:hover{border-color:var(--red);}
.hp-bar{display:block;width:18px;height:2px;background:var(--black);border-radius:2px;transition:transform .28s,opacity .28s;transform-origin:center;}
.hp-hamburger.is-active .hp-bar:nth-child(1){transform:translateY(7px) rotate(45deg);}
.hp-hamburger.is-active .hp-bar:nth-child(2){opacity:0;transform:scaleX(0);}
.hp-hamburger.is-active .hp-bar:nth-child(3){transform:translateY(-7px) rotate(-45deg);}

/* Breadcrumb */
.hp-breadcrumb{background:var(--white);border-bottom:1px solid var(--border);font-size:12px;color:var(--g3);}
.hp-breadcrumb-inner{max-width:1200px;margin:0 auto;padding:7px 16px;}
.hp-breadcrumb a{color:var(--g2);}
.hp-breadcrumb a:hover{color:var(--red);}

/* Hero */
.hp-hero{position:relative;height:240px;background:#111 center/cover no-repeat;overflow:hidden;}
.hp-hero::after{content:'';position:absolute;inset:0;background:linear-gradient(to right,rgba(0,0,0,.72),rgba(0,0,0,.1) 70%,transparent);}
.hp-hero-inner{position:relative;z-index:2;height:100%;max-width:1200px;margin:0 auto;padding:0 24px;display:flex;flex-direction:column;justify-content:center;}
.hp-hero-kicker{display:inline-block;background:var(--red);color:var(--white);font-size:10px;font-weight:800;letter-spacing:1.5px;text-transform:uppercase;padding:3px 8px;border-radius:var(--r);margin-bottom:10px;width:fit-content;}
.hp-hero-title{font-size:24px;font-weight:900;color:var(--white);line-height:1.25;max-width:500px;text-shadow:0 2px 8px rgba(0,0,0,.5);margin-bottom:8px;}
.hp-hero-meta{font-size:12px;color:rgba(255,255,255,.72);}

/* Section Bar */
.hp-bar-row{display:flex;align-items:center;justify-content:space-between;padding-bottom:10px;margin-bottom:12px;border-bottom:1px solid var(--border);}
.hp-bar-left{display:flex;align-items:center;gap:8px;}
.hp-bar-left::before{content:'';display:block;width:4px;height:18px;background:var(--red);border-radius:2px;}
.hp-bar-title{font-size:15px;font-weight:800;color:var(--black);}
.hp-bar-more{font-size:12px;color:var(--g3);transition:color .15s;}
.hp-bar-more:hover{color:var(--red);}

/* News Feed */
.hp-feed{display:flex;flex-direction:column;gap:1px;background:var(--border);border-radius:var(--r2);overflow:hidden;box-shadow:var(--sh);margin-bottom:16px;}
.hp-item{display:flex;background:var(--white);min-height:108px;transition:background .15s;}
.hp-item:hover{background:#fafafa;}
.hp-item-thumb{flex-shrink:0;width:192px;overflow:hidden;background:var(--g6);}
.hp-item-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .3s;}
.hp-item:hover .hp-item-thumb img{transform:scale(1.05);}
.hp-item-body{flex:1;padding:12px 16px;display:flex;flex-direction:column;justify-content:space-between;border-left:1px solid var(--border);min-width:0;}
.hp-item-body--full{border-left:none;}
.hp-item-tag{display:inline-block;font-size:10px;font-weight:700;color:var(--red);background:var(--red-bg);padding:2px 6px;border-radius:var(--r);letter-spacing:.5px;text-transform:uppercase;margin-bottom:5px;width:fit-content;}
.hp-item-title{font-size:14px;font-weight:700;color:var(--black);line-height:1.4;margin-bottom:5px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;transition:color .15s;}
.hp-item:hover .hp-item-title{color:var(--red);}
.hp-item-desc{font-size:12px;color:var(--g2);line-height:1.5;margin-bottom:8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.hp-item-meta{display:flex;align-items:center;gap:10px;font-size:11px;color:var(--g4);margin-top:auto;}
.hp-item-source{font-weight:600;color:var(--g3);}

/* Match Score Rows */
.hp-matches{background:var(--white);border-radius:var(--r2);overflow:hidden;box-shadow:var(--sh);margin-bottom:16px;}
.hp-matches-head{display:flex;align-items:center;justify-content:space-between;padding:10px 14px;border-bottom:1px solid var(--border);font-size:11px;color:var(--g3);font-weight:700;text-transform:uppercase;letter-spacing:.6px;}
.hp-matches-head a{color:var(--g3);}
.hp-matches-head a:hover{color:var(--red);}
.hp-match-row{display:grid;grid-template-columns:1fr 56px 1fr;align-items:center;padding:10px 14px;border-bottom:1px solid var(--g5);font-size:13px;transition:background .12s;}
.hp-match-row:last-child{border-bottom:none;}
.hp-match-row:hover{background:var(--g6);}
.hp-match-home{text-align:right;font-weight:600;}
.hp-match-away{text-align:left;font-weight:600;}
.hp-match-score{text-align:center;font-weight:900;font-size:15px;letter-spacing:1px;}
.hp-match-score.live{color:var(--red);}
.hp-match-row.is-live{background:var(--red-bg);}
.hp-match-league{grid-column:1/-1;font-size:10px;font-weight:700;color:var(--red);letter-spacing:.8px;text-transform:uppercase;padding:6px 14px 0;}
.hp-live-dot{display:inline-block;width:6px;height:6px;background:var(--red);border-radius:50%;margin-right:4px;animation:blink 1.2s ease-in-out infinite;vertical-align:middle;}
@keyframes blink{0%,100%{opacity:1}50%{opacity:.3}}

/* Sidebar Widget */
.hp-widget{background:var(--white);border-radius:var(--r2);overflow:hidden;box-shadow:var(--sh);margin-bottom:16px;}
.hp-widget-head{display:flex;align-items:center;gap:8px;padding:12px 14px;border-bottom:1px solid var(--border);font-size:14px;font-weight:800;color:var(--black);}
.hp-widget-head::before{content:'';display:block;width:3px;height:16px;background:var(--red);border-radius:2px;}
.hp-hot-list{}
.hp-hot-item{display:flex;align-items:flex-start;gap:10px;padding:8px 14px;border-bottom:1px solid var(--g5);transition:background .12s;cursor:pointer;}
.hp-hot-item:last-child{border-bottom:none;}
.hp-hot-item:hover{background:var(--g6);}
.hp-hot-rank{flex-shrink:0;width:18px;height:18px;border-radius:var(--r);display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:800;background:var(--g5);color:var(--g3);}
.hp-hot-item:nth-child(1) .hp-hot-rank,.hp-hot-item:nth-child(2) .hp-hot-rank,.hp-hot-item:nth-child(3) .hp-hot-rank{background:var(--red);color:var(--white);}
.hp-hot-text{font-size:13px;color:var(--black);line-height:1.4;transition:color .12s;}
.hp-hot-item:hover .hp-hot-text{color:var(--red);}

/* Team/League card grid */
.hp-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:16px;}
.hp-grid-card{background:var(--white);border-radius:var(--r2);padding:16px 10px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:8px;box-shadow:var(--sh);border:1px solid var(--border);transition:box-shadow .15s,transform .15s;}
.hp-grid-card:hover{box-shadow:var(--sh2);transform:translateY(-2px);}
.hp-grid-img{width:52px;height:52px;object-fit:contain;border-radius:50%;border:2px solid var(--border);}
.hp-grid-name{font-size:13px;font-weight:700;color:var(--black);}
.hp-grid-card:hover .hp-grid-name{color:var(--red);}

/* Article detail */
.hp-article{background:var(--white);border-radius:var(--r2);box-shadow:var(--sh);padding:24px;margin-bottom:16px;}
.hp-article-title{font-size:22px;font-weight:900;color:var(--black);line-height:1.3;margin-bottom:12px;}
.hp-article-meta{font-size:12px;color:var(--g3);margin-bottom:16px;display:flex;align-items:center;gap:12px;}
.hp-article-meta a{color:var(--red);}
.hp-article-thumb{border-radius:var(--r2);overflow:hidden;margin-bottom:20px;}
.hp-article-thumb img{width:100%;height:auto;}
.hp-article-body{font-size:14px;line-height:1.85;color:var(--g1);}
.hp-article-body h2,.hp-article-body h3{font-size:16px;font-weight:800;color:var(--black);margin:20px 0 10px;}
.hp-article-body p{margin-bottom:14px;}
.hp-article-body img{border-radius:var(--r2);margin:14px auto;}

/* Sidebar related */
.hp-related-list{}
.hp-related-item{display:flex;gap:10px;padding:10px 14px;border-bottom:1px solid var(--g5);transition:background .12s;}
.hp-related-item:last-child{border-bottom:none;}
.hp-related-item:hover{background:var(--g6);}
.hp-related-thumb{flex-shrink:0;width:72px;height:52px;border-radius:var(--r);overflow:hidden;background:var(--g6);}
.hp-related-thumb img{width:100%;height:100%;object-fit:cover;}
.hp-related-title{font-size:12px;font-weight:600;color:var(--black);line-height:1.4;transition:color .12s;}
.hp-related-item:hover .hp-related-title{color:var(--red);}
.hp-related-date{font-size:11px;color:var(--g4);margin-top:4px;}

/* Pagination */
.hp-pager{margin:20px 0 8px;text-align:center;display:flex;justify-content:center;gap:4px;flex-wrap:wrap;}
.hp-pager a,.hp-pager span{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:34px;padding:0 10px;font-size:13px;font-weight:600;color:var(--g1);background:var(--white);border:1px solid var(--border);border-radius:var(--r);transition:all .15s;}
.hp-pager .current{background:var(--red);color:var(--white);border-color:var(--red);}
.hp-pager a:hover{background:var(--red-bg);border-color:var(--red);color:var(--red);}

/* More btn */
.hp-more{text-align:center;padding:12px 0 4px;}
.hp-more a{display:inline-block;padding:7px 24px;font-size:13px;font-weight:700;color:var(--red);border:1.5px solid var(--red);border-radius:20px;transition:all .15s;}
.hp-more a:hover{background:var(--red);color:var(--white);}

/* Empty */
.hp-empty{text-align:center;padding:32px;color:var(--g3);font-size:13px;}

/* Back to top */
#back-to-top{position:fixed;right:20px;bottom:24px;z-index:8000;width:38px;height:38px;border-radius:50%;border:1.5px solid var(--border);background:var(--white);color:var(--red);font-size:16px;cursor:pointer;opacity:0;visibility:hidden;transform:translateY(8px);transition:opacity .25s,transform .25s,box-shadow .2s;box-shadow:var(--sh);}
#back-to-top.show{opacity:1;visibility:visible;transform:translateY(0);}
#back-to-top:hover{box-shadow:var(--sh2);border-color:var(--red);}

/* Footer */
.site-footer{background:#1a1a1a;color:#888;margin-top:40px;}
.hp-footer-bar{height:3px;background:var(--red);}
.hp-footer-inner{max-width:1200px;margin:0 auto;padding:36px 16px 24px;display:grid;grid-template-columns:2fr 1fr 1fr;gap:32px;}
.hp-footer-brand{font-size:16px;font-weight:900;color:var(--white);margin-bottom:10px;}
.hp-footer-desc{font-size:12px;color:#666;line-height:1.7;}
.hp-footer-col-title{font-size:11px;font-weight:800;color:var(--red);text-transform:uppercase;letter-spacing:1px;margin-bottom:12px;padding-bottom:6px;border-bottom:1px solid #333;}
.hp-footer-col ul li{margin-bottom:8px;}
.hp-footer-col ul li a{font-size:12px;color:#666;transition:color .15s;}
.hp-footer-col ul li a:hover{color:var(--white);}
.hp-footer-copy{max-width:1200px;margin:0 auto;padding:14px 16px;border-top:1px solid #2a2a2a;font-size:11px;color:#444;text-align:center;}

/* Standings */
.hp-standings{background:var(--white);border-radius:var(--r2);overflow:hidden;box-shadow:var(--sh);margin-bottom:16px;}
.hp-standings-title{font-size:13px;font-weight:800;color:var(--black);padding:10px 14px;border-bottom:1px solid var(--border);background:var(--red-bg);display:flex;align-items:center;gap:6px;}
.hp-standings-title::before{content:'';display:block;width:3px;height:14px;background:var(--red);border-radius:2px;}
.hp-standings-row{display:grid;grid-template-columns:28px 1fr 40px;align-items:center;padding:7px 14px;font-size:12px;border-bottom:1px solid var(--g5);}
.hp-standings-row:last-child{border-bottom:none;}
.hp-standings-row:nth-child(even){background:#fafafa;}
.hp-standings-row.head{font-weight:700;background:var(--g6);font-size:11px;color:var(--g3);}
.hp-standings-rank{font-weight:700;color:var(--g3);}
.hp-standings-row:nth-child(2) .hp-standings-rank{color:#d4a017;}
.hp-standings-row:nth-child(3) .hp-standings-rank{color:#888;}
.hp-standings-pts{font-weight:800;color:var(--red);text-align:right;}

/* Responsive */
@media(max-width:960px){
  .hp-page{grid-template-columns:1fr;}
  .hp-grid{grid-template-columns:repeat(3,1fr);}
  .hp-footer-inner{grid-template-columns:1fr 1fr;}
}
@media(max-width:768px){
  :root{--nav-h:50px;--side:100%;}
  .hp-hamburger{display:flex;}
  .hp-nav-menu{
    display:none;position:absolute;top:calc(var(--nav-h) + 2px);left:0;right:0;
    flex-direction:column;background:var(--white);
    border-bottom:2px solid var(--red);box-shadow:var(--sh2);
    z-index:8999;padding:6px 0;
  }
  .hp-nav-menu.is-open{display:flex;}
  .hp-nav-menu li{display:block;width:100%;}
  .hp-nav-menu>li>a{height:auto;padding:12px 20px;border-bottom:1px solid var(--border);border-left:3px solid transparent;}
  .hp-nav-menu>li>a:hover,.hp-nav-menu>li.current-menu-item>a{border-left-color:var(--red);background:var(--red-bg);border-bottom-color:var(--border);}
  .hp-search input{width:90px;}
  .hp-item-thumb{width:120px;}
  .hp-item-desc{display:none;}
  .hp-grid{grid-template-columns:repeat(2,1fr);}
  .hp-hero{height:180px;}
  .hp-hero-title{font-size:18px;}
  .hp-footer-inner{grid-template-columns:1fr;gap:20px;padding:24px 16px 16px;}
  .hp-article{padding:16px;}
  .hp-article-title{font-size:18px;}
  #back-to-top{right:12px;bottom:16px;width:34px;height:34px;font-size:14px;}
}

