:root {
--primary: #009ff7;
--secondary: #78fadc;
--accent: #1eb6ff;
--dark: #06000cf0;
--light: #f0fcfa;
--shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
--transition: all 0.3s ease;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Nunito', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
background: linear-gradient(135deg, #eef2f5 0%, #d9e4f0 100%);
color: var(--dark);
}


.container {
max-width: 1200px;
margin: 0 auto;
}

header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px 0;
margin-bottom: 30px;
}

.logo {
font-size: 2.2rem;
font-weight: 800;
background: linear-gradient(to right, var(--primary), var(--secondary));
-webkit-background-clip: text;
background-clip: text;
color: transparent;
cursor: pointer;
position: relative;
padding: 10px 20px;
border-radius: 18px;
background-color: #fff;
text-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

.nav-btn {
display: inline-flex;
align-items: center;
padding: 10px 20px;
background: linear-gradient(145deg, #f0f0f0, #ffffff);
color: var(--dark) !important;
border: none;
border-radius: 18px;
font-size: 1.1rem;
font-weight: 700;
cursor: pointer;
transition: var(--transition);
text-decoration: none;
position: relative;
overflow: hidden;
border: 2px solid rgba(255, 255, 255, 0.8);
}

.nav-btn::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(to right, var(--primary), var(--secondary));
opacity: 0;
transition: var(--transition);
z-index: 0;
}

.nav-btn:hover {
transform: translateY(-3px);

}

.nav-btn:hover::before {
opacity: 1;
}

.nav-btn:active {
transform: translateY(1px);
box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.15), 0 4px 10px rgba(0, 0, 0, 0.1);
}

.nav-btn span {
position: relative;
z-index: 1;
color: var(--primary);
}

.nav-btn i {
margin-right: 10px;
position: relative;
z-index: 1;
color: var(--primary);
}

.nav-btn:hover span, .nav-btn:hover i {
color: white;
}

.control-bar {
display: flex;
flex-wrap: wrap;
gap: 15px;
padding: 20px;
background: linear-gradient(145deg, #f5f7fa, #e4edf5);
border-radius: 24px;
margin-bottom: 30px;
box-shadow: inset 0 -8px 25px rgba(0, 0, 0, 0.05), 0 15px 40px rgba(0, 0, 0, 0.1);
position: relative;
border: 2px solid rgba(255, 255, 255, 0.8);
}

.control-bar::before {
content: '';
position: absolute;
top: 10px;
left: 10px;
right: 10px;
bottom: 10px;
border-radius: 24px;
background: linear-gradient(145deg, #ffffff, #f0f4f9);
z-index: 0;
box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.05), 0 5px 15px rgba(0, 0, 0, 0.05);
}

.input-group {
flex: 1;
min-width: 300px;
position: relative;
z-index: 1;
}

.input-group.api-group {
flex: 0.6;
}

.input-group.url-group {
flex: 1.4;
}

.input-group label {
display: block;
margin-bottom: 8px;
color: var(--dark);
font-weight: 600;
display: flex;
align-items: center;
gap: 8px;
}

select, input {
width: 100%;
padding: 14px 20px;
border-radius: 24px;
border: none;
background: #e2f6ff;
color: var(--dark);
font-size: 1rem;
outline: none;
transition: var(--transition);
position: relative;
overflow: hidden;
border: 2px solid rgba(255, 255, 255, 0.8);
}

select:focus, input:focus {
outline: none;
border-color: var(--primary);
box-shadow: inset 0 -3px 10px rgba(0, 0, 0, 0.1), 0 8px 20px rgba(52, 152, 219, 0.2), 0 0 0 3px rgba(52, 152, 219, 0.2);
}

select option {
padding: 10px;
}

.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 10px;
padding: 12px 24px;
border-radius: 24px;
border: none;
font-size: 1.1rem;
font-weight: 700;
cursor: pointer;
transition: var(--transition);
height: 50px;
align-self: flex-end;
position: relative;
overflow: hidden;
border: 2px solid rgba(255, 255, 255, 0.8);
}

.btn::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(to right, var(--primary), var(--secondary));
opacity: 0;
transition: var(--transition);
z-index: 0;
}

.btn span, .btn i {
position: relative;
z-index: 1;
color: var(--primary);
}

.btn:hover span, .btn:hover i {
color: white;
}

.btn:hover {
transform: translateY(-3px);
box-shadow: inset 0 -3px 10px rgba(0, 0, 0, 0.1), 0 12px 25px rgba(0, 0, 0, 0.15);
}

.btn:hover::before {
opacity: 1;
}

.btn:active {
transform: translateY(1px);
box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.15), 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-primary {
background: linear-gradient(145deg, #f0f0f0, #ffffff);
color: var(--dark);
box-shadow: inset 0 -3px 10px rgba(0, 0, 0, 0.1), 0 8px 20px rgba(0, 0, 0, 0.08);
}

.player-container {
background: linear-gradient(145deg, #f5f7fa, #e4edf5);
border-radius: 24px;
overflow: hidden;
box-shadow: inset 0 -8px 25px rgba(0, 0, 0, 0.05), 0 15px 40px rgba(0, 0, 0, 0.1);
position: relative;
margin-bottom: 30px;
border: 2px solid rgba(255, 255, 255, 0.8);
position: relative;
z-index: 1;
}

.player-container::before {
content: '';
position: absolute;
top: 10px;
left: 10px;
right: 10px;
bottom: 10px;
border-radius: 18px;
background: linear-gradient(145deg, #ffffff, #f0f4f9);
z-index: 0;
box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.05), 0 5px 15px rgba(0, 0, 0, 0.05);
}

.video-wrapper {
position: relative;
aspect-ratio: 16 / 9;
background: #000;
border-radius: 18px;
overflow: hidden;
margin: 10px;
}

#video-player {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: none;
}

.player-controls {
display: flex;
justify-content: space-between;
padding: 15px;
position: relative;
z-index: 1;
}

.player-info {
display: flex;
align-items: center;
gap: 10px;
}

.status-item {
display: flex;
align-items: center;
gap: 8px;
font-size: 1rem;
color: var(--dark);
background: #e2f6ff;
padding: 8px 15px;
border-radius: 21px;
position: relative;
overflow: hidden;
border: 2px solid rgba(255, 255, 255, 0.8);
}

.player-actions {
display: flex;
gap: 10px;
}

.action-btn {
display: flex;
align-items: center;
gap: 8px;
padding: 9px 18px;
background: linear-gradient(145deg, #f0f0f0, #ffffff);
color: var(--dark);
border-radius: 24px;
border: 2px solid rgba(255, 255, 255, 0.8);
cursor: pointer;
transition: var(--transition);
font-weight: 600;
box-shadow: inset 0 -3px 10px rgba(0, 0, 0, 0.1), 0 8px 20px rgba(0, 0, 0, 0.08);
position: relative;
overflow: hidden;
}

.action-btn::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(to right, var(--primary), var(--secondary));
opacity: 0;
transition: var(--transition);
z-index: 0;
}

.action-btn span, .action-btn i {
position: relative;
z-index: 1;
color: var(--primary);
}

.action-btn:hover span, .action-btn:hover i {
color: white;
}

.action-btn:hover {
transform: translateY(-3px);
box-shadow: inset 0 -3px 10px rgba(0, 0, 0, 0.1), 0 12px 25px rgba(0, 0, 0, 0.15);
}

.action-btn:hover::before {
opacity: 1;
}

.content-tabs {
display: flex;
background: linear-gradient(145deg, #f0f0f0, #ffffff);
border-bottom: 1px solid rgba(0, 0, 0, 0.05);
position: relative;
z-index: 1;
border-radius: 20px;
overflow: hidden;
margin: 0 0 20px 0;
box-shadow: inset 0 -3px 10px rgba(0, 0, 0, 0.05), 0 5px 15px rgba(0, 0, 0, 0.05);
}

.tab {
flex: 1;
text-align: center;
padding: 15px;
cursor: pointer;
transition: var(--transition);
border-bottom: 3px solid transparent;
font-weight: 600;
color: var(--dark);
position: relative;
z-index: 1;
}

.tab.active {
border-bottom: 3px solid var(--primary);
background: rgba(52, 152, 219, 0.15);
color: var(--primary);
}

.tab:hover {
background: rgba(52, 152, 219, 0.15);
}

.tab-content {
padding: 20px;
display: none;
position: relative;
z-index: 1;
background: linear-gradient(135deg, #f5f7fa, #e4edf5);
border-radius: 24px;
box-shadow: inset 0 -8px 25px rgba(0, 0, 0, 0.05), 0 15px 40px rgba(0, 0, 0, 0.1);
border: 2px solid rgba(255, 255, 255, 0.8);
}

.tab-content::before {
content: '';
position: absolute;
top: 8px;
left: 8px;
right: 8px;
bottom: 8px;
border-radius: 24px;
background: linear-gradient(145deg, #ffffff, #f0f4f9);
z-index: 0;
box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.05), 0 5px 15px rgba(0, 0, 0, 0.05);
}

.tab-content.active {
display: block;
}

.history-list {
list-style: none;
max-height: 300px;
overflow-y: auto;
position: relative;
z-index: 1;
}

.history-list li {
padding: 12px 15px;
background: #e2f6ff;
border-radius: 18px;
overflow: hidden;
display: flex;
justify-content: space-between;
align-items: center;
transition: var(--transition);
position: relative;
border: 2px solid rgba(255, 255, 255, 0.8);
will-change: transform, box-shadow; /* 性能优化 */
transition: transform 0.2s ease, box-shadow 0.2s ease; /* 添加过渡效果 */
}

.history-list li:hover {
transform: translateY(-3px);
}

.history-list .url {
flex-grow: 1;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
margin: 0 15px;
font-size: 0.95rem;
color: var(--dark);
}

.history-list .action {
color: var(--primary);
cursor: pointer;
transition: color 0.3s;
background: rgba(255, 255, 255, 0.8);
border-radius: 80%;
display: flex;
align-items: center;
justify-content: center;
}

.history-list .action:hover {
background: var(--primary);
color: white;
}

.instructions {
line-height: 1.8;
color: var(--dark);
position: relative;
z-index: 1;
}

.instructions h3 {
color: var(--primary);
margin-bottom: 15px;
display: flex;
align-items: center;
gap: 10px;
font-size: 1.4rem;
}

.instructions ol {
padding-left: 20px;
margin-bottom: 20px;
}

.instructions li {
margin-bottom: 10px;
color: var(--dark);
}

.disclaimer {
background: #e2f6ff;
border-left: 4px solid var(--accent);
padding: 15px;
border-radius: 9px 18px 18px 9px;
margin-top: 20px;
}

.platforms {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
gap: 15px;
margin-top: 20px;
}

.platform {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background: linear-gradient(145deg, #f0f0f0, #ffffff);
padding: 15px;
border-radius: 18px;
transition: var(--transition);
box-shadow: inset 0 -3px 10px rgba(0, 0, 0, 0.05), 0 5px 15px rgba(0, 0, 0, 0.05);
position: relative;
overflow: hidden;
border: 2px solid rgba(255, 255, 255, 0.8);
}

.platform:hover {
transform: translateY(-5px);
box-shadow: inset 0 -3px 10px rgba(0, 0, 0, 0.1), 0 12px 25px rgba(0, 0, 0, 0.15);
}

.platform a svg {
width: 100%;
height: 100%;
}

.ctrm-title { 
background: linear-gradient(90deg, #ffdee9, #b5fffc)!important; /* 标题背景渐变色 */
}

.nav-group {
display:flex;
gap:10px;
align-items:center;
}

.status-bar {
display: flex;
justify-content: space-between;
padding: 15px;
background: linear-gradient(145deg, #f5f7fa, #e4edf5);
border-top: 1px solid rgba(0, 0, 0, 0.05);
position: relative;
z-index: 1;
border-radius: 24px;
margin-bottom: 20px;
margin-top: 20px; 
box-shadow: inset 0 -8px 25px rgba(0, 0, 0, 0.05), 0 15px 40px rgba(0, 0, 0, 0.1);
border: 2px solid rgba(255, 255, 255, 0.8);
}

.status-bar::before {
content: '';
position: absolute;
top: 8px;
left: 8px;
right: 8px;
bottom: 8px;
border-radius: 24px;
background: linear-gradient(135deg, #ffffff, #f0f4f9);
z-index: 0;
box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.05), 0 5px 15px rgba(0, 0, 0, 0.05);
}

.status-item i {
color: var(--primary);
}

.footer {
text-align: center;
padding: 6px;
color: var(--dark);
font-size: 0.95rem;
border-top: 1px solid rgba(0, 0, 0, 0.05);
position: relative;
z-index: 1;
}

.footer a {
color: var(--primary);
text-decoration: none;
transition: color 0.3s;
font-weight: 600;
}

.footer a:hover {
color: #8e24ffd4;
text-decoration: underline;
}

.toast {
position: fixed;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
background: linear-gradient(145deg, #f0f0f0, #ffffff);
color: var(--dark);
padding: 10px 20px;
border-radius: 30px;
box-shadow: inset 0 -3px 10px rgba(0, 0, 0, 0.1), 0 15px 30px rgba(0, 0, 0, 0.2);
display: flex;
align-items: center;
gap: 10px;
z-index: 1000;
opacity: 0;
pointer-events: none;
transition: opacity 0.3s;
font-weight: 600;
border: 2px solid rgba(255, 255, 255, 0.8);
}

.toast.show {
opacity: 1;
pointer-events: auto;
}

.decoration {
position: absolute;
z-index: -1;
opacity: 0.1;
pointer-events: none;
}

.film-icon {
position: absolute;
font-size: 6rem;
color: var(--dark);
opacity: 0.05;
}

.film-1 {
top: 5%;
left: 5%;
}

.film-2 {
top: 15%;
right: 7%;
transform: rotate(-25deg);
}

.film-3 {
bottom: 15%;
left: 8%;
transform: rotate(15deg);
}

.film-4 {
bottom: 10%;
right: 6%;
transform: rotate(-45deg);
}

/* 响应式设计 */
@media (max-width: 900px) {
.control-bar {
    flex-direction: column;
}

.input-group {
    min-width: 100%;
}

.btn {
    width: 100%;
}

.player-controls {
    flex-direction: column;
    gap: 10px;
}

.player-info {
    justify-content: center;
}

.player-actions {
    justify-content: center;
}

.content-tabs {
    flex-direction: column;
}

.status-bar {
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.film-icon {
    display: none;
}
}

@media (max-width: 768px) {
.control-bar {
    flex-direction: column;
    gap: 15px;
}

.btn {
    width: 100%;
    justify-content: center;
}

.player-container {
    flex-direction: column;
}

.player-controls {
    flex-direction: column;
    gap: 12px;
}

.status-item {
    font-size: 0.9rem;
    text-align: center;
}

.platforms {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

.history-list li {
    flex-direction: column;
    align-items: flex-start;
}
}

@media (max-width: 580px) {
header {
    flex-direction: column;
    gap: 20px;
}

.logo {
    font-size: 1.8rem;
}

.btn, .action-btn {
    width: 100%;
    justify-content: center;
}

.player-controls {
    flex-direction: column;
}

.status-bar {
    flex-direction: column;
    align-items: center;
}

.platforms {
    grid-template-columns: 1fr;
}

.history-list {
    max-height: none;
}
}
.footer-stats {
text-align: center;
font-size: 15px;
color: #202020;
margin-bottom: 6px;
}

.footer-stats i {
color: #168eff;
font-size: 15px;
}

.footer-stats strong {
color: #111;
font-weight: 600;
}

.stats-values {
display: flex;
justify-content: center;
gap: 16px;
}