* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
}

.header {
    height: 60px;
    font-size: 15px;
    line-height: 60px;
    padding: 0 40px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.headerL {
    float: left;
    font-weight: 500;
}

.headerL h3 {
    color: #00d9ff;
    font-weight: 500;
}

.headerR {
    float: right;
}

.headerR a {
    padding: 0 16px;
    color: #aaa;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}

.headerR a:hover {
    color: #00d9ff;
}

.login {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 360px;
    margin-left: -180px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    text-align: center;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(-50%);
}

.login:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.password {
    padding-top: 0;
}

.password h1 {
    margin-bottom: 24px;
    color: #fff;
    font-weight: 500;
    font-size: 24px;
}

#username, #password, #password2, #bgname {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin: 0 0 16px;
    padding: 14px 16px;
    box-sizing: border-box;
    font-size: 14px;
    color: #fff;
    border-radius: 8px;
    transition: all 0.3s;
}

#username:focus, #password:focus, #password2:focus, #bgname:focus {
    border-color: #00d9ff;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.1);
}

#submit {
    outline: none;
    background: linear-gradient(135deg, #00d9ff 0%, #00a8cc 100%);
    width: 100%;
    border: none;
    padding: 14px;
    color: #fff;
    font-size: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

#submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 217, 255, 0.3);
}

.message {
    margin: 14px 0 0;
    color: #888;
    font-size: 12px;
}

input {
    border: none;
    outline: none;
}

.pageBox {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    margin-top: 30px;
    border-radius: 12px;
}

.pageBox a {
    display: inline-block;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    color: #aaa;
    padding: 0 14px;
    text-decoration: none;
    line-height: 36px;
    border-radius: 6px;
    margin: 0 4px;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pageBox a:hover {
    background: #00d9ff;
    color: #fff;
    border-color: #00d9ff;
}

.fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
}

.table {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border-spacing: 0;
    margin: 20px 0;
    white-space: nowrap;
    table-layout: fixed;
    border-collapse: separate;
    border-radius: 12px;
    overflow: visible;
}

.table thead {
    position: sticky;
    top: 60px;
    z-index: 10;
}

.table th {
    font-size: 14px;
    line-height: 44px;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.2) 0%, rgba(0, 168, 204, 0.2) 100%);
    color: #00d9ff;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
}

.table th, .table td {
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.table td {
    padding: 12px 8px;
    font-size: 13px;
    white-space: normal;
    word-wrap: break-word;
    color: #ccc;
}

.table img {
    max-width: 80px;
    border-radius: 6px;
}

.trd {
    background: rgba(255, 255, 255, 0.02);
}

.trs {
    background: rgba(255, 255, 255, 0.04);
}

.trd:hover, .trs:hover {
    background: rgba(0, 217, 255, 0.08);
}

.ratingStart:hover, .tagStart:hover {
    background: rgba(0, 217, 255, 0.15);
    color: #00d9ff;
    cursor: pointer;
}

#tagDiv, #ratingDiv {
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    height: 100%;
    width: 100%;
    z-index: 500;
}

#tagDiv form, #ratingDiv form {
    width: 400px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -200px;
    background: #1a1a2e;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(-50%);
}

#ratingDiv label, .password h1, #tagDiv label {
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    line-height: 44px;
    text-align: center;
    font-size: 18px;
    color: #fff;
    margin-bottom: 20px;
}

#tag, #rating {
    display: block;
    margin: 16px auto;
    background: rgba(255, 255, 255, 0.08);
    padding: 12px 16px;
    box-sizing: border-box;
    font-size: 14px;
    text-align: center;
    width: 100%;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
}

.dealDiv dl {
    font-size: 13px;
    margin-top: 16px;
    color: #888;
}

.dealDiv dd {
    padding-left: 1em;
    line-height: 1.8;
}

.dealDiv dl span {
    color: #ff6b6b;
}

.btnbox {
    text-align: center;
    margin-top: 24px;
}

.btnbox input {
    background: linear-gradient(135deg, #00d9ff 0%, #00a8cc 100%);
    color: #fff;
    border: none;
    font-size: 14px;
    display: inline-block;
    height: 40px;
    padding: 0 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.btnbox input:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 217, 255, 0.3);
}

.btnbox button {
    background: rgba(255, 255, 255, 0.1);
    color: #aaa;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 14px;
    display: inline-block;
    height: 40px;
    padding: 0 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    margin: 0 10px;
}

.btnbox button:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.content {
    padding: 20px;
    width: 100%;
    margin: 0 auto;
}

.height {
    height: 60px;
}

.th_name {
    width: 120px;
}

.selectBox {
    position: relative;
    text-align: left;
    margin-bottom: 16px;
}

.selectBox label {
    font-size: 14px;
    line-height: 46px;
    margin-right: 16px;
    color: #888;
}

.selectBox:after {
    content: ' ';
    position: absolute;
    right: 16px;
    top: 50%;
    margin-top: -6px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #00d9ff;
    font-size: 0;
    line-height: 0;
}

#numberofplayer {
    display: inline-block;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 70%;
    background: rgba(255, 255, 255, 0.08);
    text-align: center;
    outline: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin: 0 0 14px;
    padding: 14px;
    box-sizing: border-box;
    font-size: 14px;
    color: #fff;
    border-radius: 8px;
}

#numberofplayer option {
    background: #1a1a2e;
    color: #fff;
}

.subtitle {
    font-size: 14px;
    text-align: left;
    color: #888;
    margin-bottom: 14px;
}

.subtitle span {
    font-size: 12px;
    color: #ff6b6b;
}

.selectClear {
    overflow: hidden;
}

.selectClear select {
    border: 1px solid rgba(0, 217, 255, 0.3);
    height: 100%;
    width: 113%;
    text-align: center;
    outline: none;
    background: rgba(255, 255, 255, 0.05);
    color: #ccc;
    border-radius: 8px;
}

.selectClear option {
    padding: 10px 0;
    background: #1a1a2e;
}

.selectFl, .selectFr {
    width: 48%;
    overflow: hidden;
    border: 1px solid rgba(0, 217, 255, 0.3);
    height: 200px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
}

.selectFl {
    float: left;
}

.selectFr {
    float: right;
}

.search #submit {
    margin-top: 16px;
}

.flashes {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 200;
}

.flashes li {
    background: rgba(255, 107, 107, 0.9);
    color: #fff;
    padding: 12px 24px;
    margin-bottom: 8px;
    border-radius: 8px;
    list-style: none;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.content h1 {
    color: #fff;
    font-weight: 400;
    margin-bottom: 24px;
    font-size: 28px;
}
