*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}
:root{
    --bg1:#0b1020;
    --bg2:#11182d;
    --glass:rgba(255,255,255,.08);
    --border:rgba(255,255,255,.12);
    --text:#eef2ff;
    --muted:#94a3b8;
    --primary:#8b5cf6;
    --secondary:#22d3ee;
    --danger:#ef4444;
    --success:#22c55e;
}
body{
    min-height:100vh;
    font-family:"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
    color:var(--text);
    background:
        radial-gradient(circle at 10% 10%, rgba(139,92,246,.22), transparent 25%),
        radial-gradient(circle at 90% 85%, rgba(34,211,238,.18), transparent 28%),
        linear-gradient(135deg, var(--bg1), var(--bg2));
    overflow-x:hidden;
}
a{
    color:#fff;
    text-decoration:none;
}
.bg-orb{
    position:fixed;
    width:360px;
    height:360px;
    border-radius:50%;
    filter:blur(110px);
    opacity:.32;
    z-index:0;
}
.orb1{
    top:-100px;
    left:-80px;
    background:#8b5cf6;
}
.orb2{
    right:-80px;
    bottom:-100px;
    background:#22d3ee;
}
.layout{
    position:relative;
    z-index:1;
    width:min(1200px, 92%);
    margin:28px auto;
}
.glass{
    background:var(--glass);
    border:1px solid var(--border);
    backdrop-filter:blur(16px);
    box-shadow:0 20px 50px rgba(0,0,0,.25);
}
.topbar{
    border-radius:24px;
    padding:20px 24px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    margin-bottom:22px;
}
.logo{
    font-size:24px;
    font-weight:800;
    background:linear-gradient(90deg,#fff,#c4b5fd,#67e8f9);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}
.subtext{
    color:var(--muted);
    font-size:14px;
    margin-top:6px;
}
.nav{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
}
.nav a{
    padding:10px 14px;
    border-radius:12px;
    background:rgba(255,255,255,.06);
}
.nav a:hover{
    background:rgba(255,255,255,.12);
}
.danger-link{
    background:rgba(239,68,68,.16)!important;
}
.hero{
    padding:28px;
    border-radius:26px;
    margin-bottom:22px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
}
.hero h1{
    font-size:clamp(28px,4vw,42px);
    margin-bottom:10px;
}
.big-clock{
    font-size:34px;
    font-weight:800;
}
.grid{
    display:grid;
    gap:18px;
    margin-bottom:20px;
}
.cols-2{ grid-template-columns:repeat(2,1fr); }
.cols-3{ grid-template-columns:repeat(3,1fr); }
.cols-4{ grid-template-columns:repeat(4,1fr); }

@media (max-width:980px){
    .cols-2,.cols-3,.cols-4{ grid-template-columns:1fr; }
    .topbar,.hero{ flex-direction:column; align-items:flex-start; }
}

.card{
    border-radius:24px;
    padding:22px;
}
.card h2{
    margin-bottom:16px;
    font-size:20px;
}
.label{
    color:var(--muted);
    font-size:13px;
    margin-bottom:8px;
}
.value{
    font-size:30px;
    font-weight:800;
}
.btn{
    display:inline-block;
    padding:12px 16px;
    border:none;
    border-radius:14px;
    cursor:pointer;
    color:#fff;
    background:rgba(255,255,255,.08);
    font-weight:700;
    margin-top:14px;
}
.btn:hover{
    transform:translateY(-1px);
}
.btn.primary{
    background:linear-gradient(135deg,var(--primary),var(--secondary));
}
.btn.danger{
    background:linear-gradient(135deg,#ef4444,#dc2626);
}
.btn.small{
    padding:9px 12px;
    font-size:13px;
}
.big-btn{
    padding:16px 24px;
    font-size:18px;
}
.auth-wrap{
    min-height:70vh;
    display:flex;
    justify-content:center;
    align-items:center;
}
.auth-card{
    width:min(420px, 100%);
    padding:30px;
    border-radius:26px;
}
.auth-card h1{
    font-size:32px;
    margin-bottom:8px;
}
.form{
    display:flex;
    flex-direction:column;
    gap:14px;
    margin-top:18px;
}
.form input,.form select,.todo-form input,.todo-form select{
    width:100%;
    padding:14px 16px;
    border-radius:14px;
    border:1px solid rgba(255,255,255,.12);
    background:rgba(255,255,255,.06);
    color:#fff;
    outline:none;
}
.todo-form{
    display:grid;
    grid-template-columns:2fr 1fr auto;
    gap:12px;
}
@media (max-width:720px){
    .todo-form{
        grid-template-columns:1fr;
    }
}
.switch-link{
    margin-top:18px;
    color:var(--muted);
}
.switch-link a{
    color:#67e8f9;
}
.alert{
    padding:12px 14px;
    border-radius:14px;
    margin-top:16px;
    font-size:14px;
}
.alert.error{
    background:rgba(239,68,68,.14);
    border:1px solid rgba(239,68,68,.25);
}
.alert.success{
    background:rgba(34,197,94,.14);
    border:1px solid rgba(34,197,94,.25);
}
.menu-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:14px;
}
@media (max-width:720px){
    .menu-grid{
        grid-template-columns:1fr;
    }
}
.menu-box{
    display:block;
    padding:18px;
    border-radius:18px;
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.08);
}
.menu-box:hover{
    background:rgba(255,255,255,.1);
}
.info-list{
    display:flex;
    flex-direction:column;
    gap:14px;
    color:#dbeafe;
}
.info-list span{
    color:var(--muted);
}
.center-card{
    text-align:center;
}
.draw-result{
    margin-top:22px;
    padding:18px;
    border-radius:18px;
    font-size:24px;
    font-weight:800;
    background:rgba(255,255,255,.06);
}
.draw-result.muted{
    color:var(--muted);
    font-size:16px;
    font-weight:500;
}
.prize-list{
    display:flex;
    flex-direction:column;
    gap:12px;
    color:#dbeafe;
}
.recommend-card{
    padding:20px;
    border-radius:20px;
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.08);
}
.recommend-card h3{
    margin:10px 0 8px;
}
.recommend-card p{
    color:#cbd5e1;
    line-height:1.7;
}
.recommend-tag{
    display:inline-block;
    padding:6px 10px;
    border-radius:999px;
    background:rgba(139,92,246,.2);
    border:1px solid rgba(139,92,246,.35);
    font-size:12px;
}
.todo-list{
    display:flex;
    flex-direction:column;
    gap:14px;
}
.todo-item{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
    padding:16px;
    border-radius:18px;
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.08);
}
@media (max-width:720px){
    .todo-item{
        flex-direction:column;
        align-items:flex-start;
    }
}
.todo-title{
    font-size:16px;
    font-weight:700;
}
.line-through{
    text-decoration:line-through;
    opacity:.6;
}
.todo-meta{
    margin-top:8px;
    color:var(--muted);
    font-size:12px;
}
.todo-actions{
    display:flex;
    gap:10px;
}
.empty-box{
    padding:22px;
    border-radius:18px;
    text-align:center;
    color:var(--muted);
    background:rgba(255,255,255,.04);
    border:1px dashed rgba(255,255,255,.12);
}
.footer{
    text-align:center;
    color:rgba(255,255,255,.5);
    font-size:13px;
    padding:10px 0 20px;
}
.admin-table-wrap{
    overflow-x:auto;
}
.admin-table{
    width:100%;
    border-collapse:collapse;
    color:#fff;
}
.admin-table th,
.admin-table td{
    padding:14px 12px;
    border-bottom:1px solid rgba(255,255,255,.08);
    text-align:left;
    font-size:14px;
}
.admin-table th{
    color:#cbd5e1;
    font-weight:700;
}
.status-badge{
    display:inline-block;
    padding:6px 10px;
    border-radius:999px;
    font-size:12px;
    font-weight:700;
}
.status-pending{
    background:rgba(245,158,11,.16);
    border:1px solid rgba(245,158,11,.28);
    color:#fbbf24;
}
.status-approved{
    background:rgba(34,197,94,.16);
    border:1px solid rgba(34,197,94,.28);
    color:#86efac;
}
.status-rejected{
    background:rgba(239,68,68,.16);
    border:1px solid rgba(239,68,68,.28);
    color:#fca5a5;
}
.admin-actions{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
}
.danger-outline{
    background:rgba(255,255,255,.04);
    border:1px solid rgba(239,68,68,.4);
}
.prize-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    padding:14px 16px;
    border-radius:16px;
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.08);
    margin-bottom:10px;
}
.prize-row strong{
    color:#67e8f9;
}
.music-card{
    display:flex;
    flex-direction:column;
    gap:12px;
}
.music-cover{
    width:100%;
    max-width:120px;
    height:120px;
    object-fit:cover;
    border-radius:18px;
    border:1px solid rgba(255,255,255,.12);
    box-shadow:0 8px 24px rgba(0,0,0,.22);
}
.recommend-hero{
    align-items:flex-start;
}

.recommend-meta{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:14px;
}

.meta-pill{
    display:inline-flex;
    align-items:center;
    padding:8px 12px;
    border-radius:999px;
    background:rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.1);
    color:#dbeafe;
    font-size:12px;
}

.recommend-toolbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
    flex-wrap:wrap;
}

.tab-group{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
}

.tab-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:12px 16px;
    border-radius:14px;
    color:#fff;
    background:rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.1);
    transition:.25s ease;
}

.tab-btn:hover{
    background:rgba(255,255,255,.1);
}

.tab-btn.active{
    background:linear-gradient(135deg,var(--primary),var(--secondary));
    border-color:transparent;
    box-shadow:0 10px 24px rgba(139,92,246,.28);
}

.search-form{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    align-items:center;
}

.search-form input{
    min-width:260px;
    padding:13px 16px;
    border-radius:14px;
    border:1px solid rgba(255,255,255,.12);
    background:rgba(255,255,255,.06);
    color:#fff;
    outline:none;
}

.section-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:14px;
    margin-bottom:18px;
}

.rank-grid{
    display:grid;
    grid-template-columns:repeat(2, 1fr);
    gap:18px;
}

@media (max-width: 980px){
    .rank-grid{
        grid-template-columns:1fr;
    }
}

.rank-card{
    position:relative;
    display:grid;
    grid-template-columns:160px 1fr;
    gap:18px;
    padding:18px;
    border-radius:24px;
    background:linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
    border:1px solid rgba(255,255,255,.1);
    overflow:hidden;
    transition:.3s ease;
}

.rank-card:hover{
    transform:translateY(-6px);
    border-color:rgba(103,232,249,.35);
    box-shadow:0 20px 40px rgba(0,0,0,.25);
}

@media (max-width: 640px){
    .rank-card{
        grid-template-columns:1fr;
    }
}

.rank-badge{
    position:absolute;
    top:14px;
    left:14px;
    z-index:2;
    padding:8px 12px;
    border-radius:999px;
    background:linear-gradient(135deg,#8b5cf6,#22d3ee);
    color:#fff;
    font-weight:800;
    font-size:12px;
    box-shadow:0 10px 24px rgba(34,211,238,.25);
}

.rank-cover-wrap{
    display:flex;
    align-items:center;
    justify-content:center;
}

.rank-cover-lg{
    width:160px;
    height:160px;
    object-fit:cover;
    border-radius:20px;
    border:1px solid rgba(255,255,255,.12);
    box-shadow:0 10px 28px rgba(0,0,0,.28);
}

.rank-cover-placeholder{
    width:160px;
    height:160px;
    border-radius:20px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(255,255,255,.05);
    border:1px dashed rgba(255,255,255,.12);
    color:#94a3b8;
    font-size:13px;
}

.rank-content{
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.rank-content h3{
    margin:10px 0 8px;
    font-size:22px;
    line-height:1.35;
}

.rank-content p{
    color:#cbd5e1;
    line-height:1.8;
    font-size:14px;
    display:-webkit-box;
    -webkit-line-clamp:4;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

.rank-actions{
    margin-top:16px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
}

.pagination{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
    margin-top:24px;
}

.page-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:42px;
    height:42px;
    padding:0 14px;
    border-radius:12px;
    background:rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.1);
    color:#fff;
    transition:.25s ease;
}

.page-btn:hover{
    background:rgba(255,255,255,.12);
}

.page-btn.active{
    background:linear-gradient(135deg,var(--primary),var(--secondary));
    border-color:transparent;
}

@media (max-width: 720px){
    .search-form input{
        min-width:100%;
        width:100%;
    }
}
.source-switch{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
}

.source-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:10px 16px;
    border-radius:14px;
    color:#fff;
    background:rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.1);
    transition:.25s ease;
}

.source-btn:hover{
    background:rgba(255,255,255,.1);
}

.source-btn.active{
    background:linear-gradient(135deg,var(--primary),var(--secondary));
    border-color:transparent;
    box-shadow:0 10px 24px rgba(139,92,246,.28);
}