* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Nunito', 'Segoe UI', Arial, sans-serif;
}

html,
body {
    -webkit-tap-highlight-color: transparent;
    width: 100%;
    height: 100%;
    scroll-behavior: smooth;
}

body {
    -webkit-tap-highlight-color: transparent;
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
    max-width: 37.5rem;
    margin: 0 auto;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(108, 92, 231, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 50% 80%, rgba(0, 206, 209, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: bgFloat 20s ease-in-out infinite alternate;
}

@keyframes bgFloat {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-2%, -2%) rotate(3deg); }
}

body > * {
    position: relative;
    z-index: 1;
}

ul,
ol,
li {
    list-style: none;
}

a {
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

button {
    -webkit-tap-highlight-color: transparent;
    border: none;
    outline: none;
}

div, i {
    -webkit-tap-highlight-color: transparent;
}

input[type="search"] {
    -webkit-appearance: none;
}

/* ===== Header ===== */
.header-top {
    width: 100%;
    margin: 0 auto;
    padding: 1.2rem 0;
    position: relative;
    display: flex;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-top > .btn-history {
    width: 6.72px;
    height: 6.72px;
    display: flex;
    position: absolute;
    top: 3.6px;
    right: 3.6px;
}

.header-top > .btn-history > img {
    width: 100%;
    height: 100%;
}

.header-top > a,
.header-top > .logo-link {
    align-items: center;
    display: flex;
    justify-content: center;
    gap: .6rem;
    text-decoration: none;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #ff6b35, #f7c948);
    border-radius: .75rem;
    color: #fff;
    font-size: 1.8rem;
    font-weight: 900;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.logo-text {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -.02em;
    background: linear-gradient(90deg, #fff 0%, #f7c948 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.head-img {
    background: none;
    width: 22.5833rem;
    height: 3.3333rem;
    margin: 0 auto;
}

.form-search {
    width: 28.9167rem;
    height: 3.3333rem;
    margin: 0 auto;
    position: relative;
}

.form-search > .ipt-search {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: .75rem;
    width: 100%;
    height: 3.3333rem;
    padding: 0 3.3333rem 0 1.6667rem;
    position: absolute;
    transition: border-color .3s, background-color .3s;
}

.form-search > .ipt-search:focus {
    border-color: #ff6b35;
    background-color: rgba(255, 255, 255, 0.12);
}

.form-search .btn-search {
    justify-content: center;
    align-items: center;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    position: absolute;
    top: .8333rem;
    right: 1.4167rem;
}

.form-search .icon-search {
    background: url("../images/search.png") center / 100% no-repeat;
    background-size: 100%;
    width: 1.75rem;
    height: 1.75rem;
    display: block;
}

/* ===== Section Title ===== */
.title {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 28.9167rem;
    height: 2.5rem;
    margin: 1.5rem auto 1.25rem;
    line-height: 2.5rem;
    display: flex;
    position: relative;
}

.title:before {
    content: "";
    background: linear-gradient(180deg, #ff6b35, #f7c948);
    border-radius: .5833rem;
    width: .4167rem;
    height: 2.3333rem;
    position: absolute;
    top: 0;
    left: 0;
}

.title .lf {
    flex-direction: row;
    align-items: center;
    margin-left: .8333rem;
    display: flex;
}

.title .lf > span {
    color: #fff;
    font-size: 1.75rem;
    font-weight: 800;
    display: block;
}

.title .icon {
    width: 2.3333rem;
    height: 2.3333rem;
    margin-right: .8333rem;
}

.title > a {
    align-items: center;
    height: 2.3333rem;
    display: flex;
}

.title > a > span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.25rem;
    font-weight: 700;
    display: block;
    transition: color .3s;
}

.title > a:hover > span,
.title > a:active > span {
    color: #ff6b35;
}

/* ===== Footer ===== */
.footer {
    box-shadow: none;
    border-radius: .5833rem;
    width: 28.9167rem;
    margin: 1.67rem auto 0;
}

.footer a {
    margin: 0 auto;
    display: flex;
}

.ft-img {
    width: 28.9167rem;
    height: 100%;
    margin: 0 auto;
}

.footer .ft-txt {
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    width: 100%;
    margin-top: 0;
    margin-bottom: .4167rem;
    font-size: 1rem;
    text-decoration: none;
    display: block;
}

.ft-nav {
    background-color: transparent;
    border-radius: 2.4px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 28.9167rem;
    margin: 0 auto;
    display: flex;
}

.ft-nav a {
    color: #292f52;
    text-align: center;
    font-size: 1.1667rem;
    font-weight: bold;
    text-decoration: none;
}

.ft-nav span {
    color: #fff;
    width: .0833rem;
    height: 2.3333rem;
    overflow: hidden;
}

/* ===== Bottom Navigation ===== */
.ft-list {
    background: rgba(22, 33, 62, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    width: 37.5rem;
    max-width: 37.5rem;
    height: 5.5rem;
    padding: 0 1.5rem;
    display: flex;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

.ft-list > a {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    display: flex;
    padding: .4rem .8rem;
    border-radius: .8rem;
    transition: background-color .3s, transform .2s;
}

.ft-list > a:active {
    transform: scale(0.92);
}

.ft-list > a > .img {
    width: 2rem;
    height: 2rem;
    opacity: 0.5;
    transition: opacity .3s;
}

.ft-list > a > .txt {
    color: rgba(255, 255, 255, 0.4);
    margin-top: .3rem;
    font-size: .75rem;
    font-weight: 700;
    transition: color .3s;
}

.ft-list .ft-active {
    background: rgba(255, 107, 53, 0.12);
}

.ft-list .ft-active > .img {
    opacity: 1;
}

.ft-list .ft-active > .txt {
    color: #ff6b35;
    font-weight: 800;
}

.empty {
    width: 100%;
    height: 1.6667rem;
}

/* ===== Advertisement ===== */
.adv {
    flex-direction: column;
    align-items: center;
    width: 100%;
    display: flex;
}

.adv p {
    text-align: center;
    color: rgba(255, 255, 255, 0.25);
    width: 100%;
    margin: 12px 0;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.adv-float {
    z-index: 999;
    justify-content: center;
    width: 100%;
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
}

/* ===== Lazy Load ===== */
.lazyLoad {
    background: url("../images/default.png") center / 100% no-repeat;
    background-size: 100%;
}

/* ===== Scroll-reveal animation ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
