@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Roboto:wght@300;400;500&display=swap');

:root {
    --ark-cyan: #00e5ff;
    --ark-cyan-dim: rgba(0, 229, 255, 0.3);
    --ark-bg-dark: rgba(0, 0, 0, 0.85);
    --ark-card-bg: rgba(16, 26, 38, 0.90);
    --text-primary: #ffffff;
    --text-secondary: #b0c4de;
    --border-color: rgba(0, 229, 255, 0.6);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    color: var(--text-primary);
    overflow-x: hidden;
    background-color: #050a10;
    cursor: url(https://cur.cursors-4u.net/others/oth-8/oth726.ani), url(https://cur.cursors-4u.net/others/oth-8/oth726.png), auto; /* Fallback dinosaur/game cursor */
}

/* 恐龙光标 fallback 如果上面链接失效，可以用这个简单的 emoji 或 base64 (这里暂时用 external link) */

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.video-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6) contrast(1.1);
}

/* 科技感网格背景叠加 */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

.server-card {
    background: var(--ark-card-bg);
    border: 2px solid var(--border-color);
    border-radius: 4px; /* ARK UI is often angular */
    padding: 0;
    width: 100%;
    max-width: 1000px; /* Wider card */
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.15), inset 0 0 50px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ARK Tech Corners */
.server-card::before, .server-card::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--ark-cyan);
    transition: all 0.3s ease;
}

.server-card::before {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.server-card::after {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

.header {
    background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0, 229, 255, 0.15) 50%, rgba(0,0,0,0.8) 100%);
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid var(--ark-cyan-dim);
    position: relative;
}

.header img.ark-logo {
    max-width: 200px; /* Adjust size as needed */
    height: auto;
    filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.5));
    margin-bottom: 10px;
    animation: logoFloat 3s ease-in-out infinite alternate;
}

@keyframes logoFloat {
    from { transform: translateY(0); }
    to { transform: translateY(-5px); }
}

.header h2 {
    font-family: 'Orbitron', sans-serif;
    color: var(--ark-cyan);
    margin: 10px 0 0;
    letter-spacing: 4px;
    font-size: 1.4rem;
    text-shadow: 0 0 10px var(--ark-cyan);
    text-transform: uppercase;
}

.server-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.server-title-section {
    text-align: center;
}

.server-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
    margin: 10px 0;
    line-height: 1.3;
}

/* Status Badge */
.status {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid;
    border-radius: 2px;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    font-size: 0.9rem;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.status.online {
    border-color: #4caf50;
    color: #4caf50;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.2);
}

.status.offline {
    border-color: #f44336;
    color: #f44336;
    box-shadow: 0 0 15px rgba(244, 67, 54, 0.2);
}

/* Main Grid Layout */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Details Panel (Left) */
.details-panel {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 229, 255, 0.2);
    padding: 25px;
    border-radius: 4px;
    position: relative;
}

.details-panel h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--ark-cyan);
    margin-top: 0;
    border-bottom: 2px solid var(--ark-cyan-dim);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 1.1rem;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-label svg {
    fill: var(--ark-cyan);
    width: 20px;
    height: 20px;
}

.detail-value {
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

/* Action Panel (Right) */
.action-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.connect-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70px;
    background: linear-gradient(90deg, rgba(0, 172, 193, 0.8) 0%, rgba(0, 229, 255, 0.8) 100%);
    color: #000;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 2px solid #fff;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
    transition: all 0.3s ease;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
}

.connect-btn:hover {
    background: linear-gradient(90deg, #fff 0%, #e0f7fa 100%);
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.8);
    transform: scale(1.02);
    cursor: pointer; /* Force pointer on button even with custom cursor */
}

.connect-btn.offline-btn {
    background: linear-gradient(90deg, #555 0%, #777 100%);
    border-color: #999;
    box-shadow: none;
    color: #ccc;
}

/* Player List Panel */
.player-list-wrapper {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 4px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

.player-list-header {
    background: rgba(0, 229, 255, 0.1);
    padding: 10px 15px;
    font-family: 'Orbitron', sans-serif;
    color: var(--ark-cyan);
    font-size: 0.9rem;
    font-weight: bold;
    border-bottom: 1px solid rgba(0, 229, 255, 0.2);
}

.player-list-content {
    flex-grow: 1;
    padding: 10px;
    overflow-y: auto;
    max-height: 300px;
}

/* Custom Scrollbar */
.player-list-content::-webkit-scrollbar {
    width: 8px;
}
.player-list-content::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.3);
}
.player-list-content::-webkit-scrollbar-thumb {
    background: var(--ark-cyan);
    border-radius: 0;
    border: 1px solid #000;
}

.player-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
}

.player-row:hover {
    background: rgba(0, 229, 255, 0.1);
}

.player-name {
    font-weight: 500;
}

.player-time {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.error-box {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.4);
    padding: 15px;
    color: #ff8a80;
    border-radius: 4px;
    margin-bottom: 15px;
}

/* 音乐播放器按钮样式 */
.music-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.music-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ark-cyan), #00b8d4);
    border: 2px solid var(--ark-cyan);
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.5);
    transition: all 0.3s ease;
    outline: none;
    padding: 0;
}

.music-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.8);
}

.music-btn:active {
    transform: scale(0.95);
}

.music-icon {
    width: 24px;
    height: 24px;
    fill: #000;
}

/* 播放状态样式 */
.music-btn.playing {
    background: linear-gradient(135deg, #00c853, #009624);
    box-shadow: 0 0 20px rgba(0, 200, 83, 0.5);
}

.music-btn.playing:hover {
    box-shadow: 0 0 25px rgba(0, 200, 83, 0.8);
}

.music-btn.playing .music-icon {
    fill: #000;
}

/* 音乐播放器容器 */
.music-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

/* 音量控制 */
.volume-control {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px;
    border-radius: 15px;
    margin-top: 5px;
    border: 1px solid var(--ark-cyan);
    opacity: 0.9;
}

.volume-slider {
    width: 80px;
    -webkit-appearance: none;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.3);
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--ark-cyan);
    cursor: pointer;
    transition: all 0.2s;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: #fff;
}

.volume-icon {
    fill: var(--ark-cyan);
    width: 16px;
    height: 16px;
}

/* 页脚样式 */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    background: rgba(0, 0, 0, 0.7);
    border-top: 1px solid var(--ark-cyan-dim);
    z-index: 1000;
}

footer p {
    margin: 0;
    color: var(--ark-cyan);
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    text-shadow: 0 0 5px var(--ark-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

footer p::before {
    content: "\1F30C";
    font-size: 0.9rem;
}

/* 复制按钮样式 */
.copy-btn {
    background: rgba(0, 229, 255, 0.2);
    color: var(--ark-cyan);
    border: 1px solid var(--ark-cyan);
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Orbitron', sans-serif;
}

.copy-btn:hover {
    background: rgba(0, 229, 255, 0.4);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

.copy-btn:active {
    transform: scale(0.95);
}

/* 多服务器网格布局 */
.servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(1000px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 100%;
    padding: 20px 0;
    box-sizing: border-box;
}

@media (max-width: 1024px) {
    .servers-grid {
        grid-template-columns: 1fr;
    }
    
    .server-card {
        max-width: 95%; /* 稍微小于100%以适应边距 */
    }
}

/* 为多服务器页面调整容器 */
.multi-servers-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

/* 为单服务器页面保持原始样式 */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}
