:root {
  --md-sys-color-primary: #6750A4;
  --md-sys-color-on-primary: #FFFFFF;
  --md-sys-color-primary-container: #EADDFF;
  --md-sys-color-on-primary-container: #21005D;
  
  --md-sys-color-secondary: #625B71;
  --md-sys-color-on-secondary: #FFFFFF;
  --md-sys-color-secondary-container: #E8DEF8;
  --md-sys-color-on-secondary-container: #1D192B;
  
  --md-sys-color-surface: #FFFBFE;
  --md-sys-color-surface-dim: #E4E1E5;
  --md-sys-color-surface-bright: #FFFBFE;
  --md-sys-color-surface-container-lowest: #FFFFFF;
  --md-sys-color-surface-container-low: #F7F2FA;
  --md-sys-color-surface-container: #F3EDF7;
  --md-sys-color-surface-container-high: #ECE6F0;
  --md-sys-color-surface-container-highest: #E6E0E9;
  --md-sys-color-on-surface: #1C1B1F;
  --md-sys-color-on-surface-variant: #49454F;
  
  --md-sys-color-outline: #79747E;
  --md-sys-color-outline-variant: #CAC4D0;
  
  --md-sys-color-error: #B3261E;
  --md-sys-color-on-error: #FFFFFF;
  --md-sys-color-error-container: #F9DEDC;
  --md-sys-color-on-error-container: #410E0B;
  
  --md-sys-shape-corner-none: 0px;
  --md-sys-shape-corner-extra-small: 4px;
  --md-sys-shape-corner-small: 8px;
  --md-sys-shape-corner-medium: 12px;
  --md-sys-shape-corner-large: 16px;
  --md-sys-shape-corner-extra-large: 28px;
  --md-sys-shape-corner-full: 9999px;
  
  --md-sys-elevation-level1: 0 1px 2px rgba(0,0,0,0.3), 0 1px 3px 1px rgba(0,0,0,0.15);
  --md-sys-elevation-level2: 0 1px 2px rgba(0,0,0,0.3), 0 2px 6px 2px rgba(0,0,0,0.15);
  --md-sys-elevation-level3: 0 4px 8px 3px rgba(0,0,0,0.15), 0 1px 3px rgba(0,0,0,0.3);
}

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

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.header {
  background: var(--md-sys-color-surface-container);
  box-shadow: var(--md-sys-elevation-level1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--md-sys-color-on-surface);
  font-weight: 600;
  font-size: 22px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
  border-radius: var(--md-sys-shape-corner-medium);
  font-size: 20px;
}

.logo-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--md-sys-color-on-surface);
}

.fans-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
  padding: 6px 12px;
  border-radius: var(--md-sys-shape-corner-full);
  font-size: 13px;
  margin-left: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.fans-badge:hover {
  background: var(--md-sys-color-secondary-container);
  transform: translateY(-1px);
}

.bili-icon {
  width: 16px;
  height: 16px;
}

.fans-label {
  font-weight: 500;
  opacity: 0.8;
}

.fans-count {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.header-actions {
  display: flex;
  gap: 12px;
}

.search-form {
  flex: 1;
  max-width: 480px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  padding: 12px 52px 12px 20px;
  border: 1px solid var(--md-sys-color-outline);
  border-radius: var(--md-sys-shape-corner-full);
  background: var(--md-sys-color-surface-container-high);
  color: var(--md-sys-color-on-surface);
  font-size: 16px;
  transition: all 0.2s;
}

.search-input:focus {
  outline: none;
  border-color: var(--md-sys-color-primary);
  background: var(--md-sys-color-surface-container-highest);
}

.search-input::placeholder {
  color: var(--md-sys-color-on-surface-variant);
}

.search-btn {
  position: absolute;
  right: 4px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: var(--md-sys-shape-corner-full);
  background: var(--md-sys-color-primary);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.2s;
}

.search-btn:hover {
  filter: brightness(1.1);
  box-shadow: var(--md-sys-elevation-level1);
}

.nav {
  display: flex;
  gap: 8px;
}

.nav-link {
  padding: 10px 16px;
  text-decoration: none;
  color: var(--md-sys-color-on-surface-variant);
  border-radius: var(--md-sys-shape-corner-full);
  font-weight: 500;
  transition: all 0.2s;
}

.nav-link:hover {
  background: var(--md-sys-color-surface-container-highest);
  color: var(--md-sys-color-on-surface);
}

.main {
  padding: 32px 0;
}

.page-title {
  font-size: 32px;
  font-weight: 400;
  color: var(--md-sys-color-on-surface);
  margin-bottom: 8px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-title {
  font-size: 24px;
  font-weight: 500;
  color: var(--md-sys-color-on-surface);
}

.batch-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.select-all-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 14px;
}

.select-all-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border-radius: var(--md-sys-shape-corner-extra-small);
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

.filter-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sort-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-label {
  font-size: 14px;
  color: var(--md-sys-color-on-surface-variant);
  font-weight: 500;
}

.sort-select {
  padding: 8px 12px;
  padding-right: 32px;
  border: 1px solid var(--md-sys-color-outline);
  border-radius: var(--md-sys-shape-corner-medium);
  background: var(--md-sys-color-surface-container);
  color: var(--md-sys-color-on-surface);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2349454F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 20px;
}

.sort-select:hover {
  border-color: var(--md-sys-color-primary);
  background-color: var(--md-sys-color-surface-container-high);
}

.sort-select:focus {
  outline: none;
  border-color: var(--md-sys-color-primary);
}

.category-chip {
  padding: 8px 16px;
  border-radius: var(--md-sys-shape-corner-full);
  background: var(--md-sys-color-surface-container-high);
  color: var(--md-sys-color-on-surface-variant);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.category-chip:hover {
  background: var(--md-sys-color-surface-container-highest);
  color: var(--md-sys-color-on-surface);
}

.category-chip.active {
  background: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
  font-weight: 600;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.video-card-wrapper,
.video-card {
  position: relative;
  transition: all 0.3s;
  background: var(--md-sys-color-surface-container-low);
  border-radius: var(--md-sys-shape-corner-large);
  overflow: hidden;
  box-shadow: var(--md-sys-elevation-level1);
  border: 2px solid transparent;
  text-decoration: none;
  display: block;
}

.video-card-wrapper:hover,
.video-card:hover {
  box-shadow: var(--md-sys-elevation-level2);
}

.video-card-wrapper.selected {
  transform: translateY(-4px);
}

.video-card-wrapper.selected .video-card {
  box-shadow: var(--md-sys-elevation-level3);
  border: 2px solid var(--md-sys-color-primary);
  background: var(--md-sys-color-primary-container);
}

.card-checkbox {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--md-sys-color-primary);
}

.thumbnail-link {
  display: block;
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.video-thumbnail {
  width: 100%;
  height: 100%;
  position: relative;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.3s;
}

.thumbnail-link:hover img {
  transform: scale(1.05);
}

.thumbnail-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--md-sys-color-surface-container-highest);
  font-size: 48px;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s;
}

.thumbnail-link:hover .play-overlay {
  opacity: 1;
}

.play-btn {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--md-sys-color-primary);
  color: white;
  border-radius: 50%;
  font-size: 24px;
  box-shadow: var(--md-sys-elevation-level2);
}

.video-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.video-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.video-title-link {
  flex: 1;
  font-size: 16px;
  font-weight: 500;
  color: var(--md-sys-color-on-surface);
  margin: 0;
  line-height: 1.4;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-title-link:hover {
  color: var(--md-sys-color-primary);
}

.has-audio-badge {
  font-size: 16px;
  flex-shrink: 0;
}

.video-category {
  display: inline-block;
  padding: 6px 14px;
  background: var(--md-sys-color-tertiary-container);
  color: var(--md-sys-color-on-tertiary-container);
  border-radius: var(--md-sys-shape-corner-full);
  font-size: 12px;
  font-weight: 700;
  align-self: flex-start;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.video-desc {
  font-size: 14px;
  color: var(--md-sys-color-on-surface-variant);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.video-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  padding: 4px 10px;
  background: var(--md-sys-color-surface-container-high);
  color: var(--md-sys-color-on-surface-variant);
  border-radius: var(--md-sys-shape-corner-medium);
  font-size: 12px;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid var(--md-sys-color-outline-variant);
}

.tag:hover {
  background: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
  border-color: transparent;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 16px;
  margin-top: auto;
  border-top: 1px solid var(--md-sys-color-outline-variant);
}

.card-actions audio {
  flex: 1;
  height: 36px;
  min-width: 0;
  border-radius: var(--md-sys-shape-corner-medium);
}

.card-actions .btn-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--md-sys-shape-corner-full);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  box-shadow: var(--md-sys-elevation-level1);
}

.btn-primary:hover:not(:disabled) {
  box-shadow: var(--md-sys-elevation-level2);
  filter: brightness(1.1);
}

.btn-secondary {
  background: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
}

.btn-secondary:hover {
  filter: brightness(0.95);
}

.btn-icon {
  background: transparent;
  color: var(--md-sys-color-primary);
  padding: 8px;
  border-radius: var(--md-sys-shape-corner-medium);
}

.btn-icon:hover {
  background: var(--md-sys-color-primary-container);
}

.btn-danger {
  background: var(--md-sys-color-error-container);
  color: var(--md-sys-color-on-error-container);
}

.btn-danger:hover {
  filter: brightness(0.95);
}

.empty-state {
  text-align: center;
  padding: 64px 24px;
  color: var(--md-sys-color-on-surface-variant);
}

.empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.admin-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.admin-header-bar .page-title {
  margin: 0;
  margin-right: auto;
}

.admin-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-list-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--md-sys-color-surface-container-low);
  border-radius: var(--md-sys-shape-corner-large);
  box-shadow: var(--md-sys-elevation-level1);
  transition: all 0.2s;
}

.admin-list-item:hover {
  background: var(--md-sys-color-surface-container);
  box-shadow: var(--md-sys-elevation-level2);
}

.item-thumbnail {
  width: 120px;
  height: 68px;
  border-radius: var(--md-sys-shape-corner-medium);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--md-sys-color-surface-container-highest);
}

.item-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.no-thumb {
  font-size: 24px;
}

.item-info {
  flex: 1;
  min-width: 0;
}

.item-info h3 {
  font-weight: 500;
  font-size: 16px;
  color: var(--md-sys-color-on-surface);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-meta {
  font-size: 12px;
  color: var(--md-sys-color-on-surface-variant);
  margin-bottom: 8px;
}

.item-status {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.status-badge {
  padding: 2px 8px;
  border-radius: var(--md-sys-shape-corner-small);
  font-size: 12px;
  font-weight: 500;
}

.status-badge.has-bilibili {
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}

.status-badge.has-audio {
  background: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
}

.item-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.btn-small {
  padding: 6px 12px;
  font-size: 13px;
  min-width: 52px;
}

.form-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 0;
}

.form-title {
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 32px;
  color: var(--md-sys-color-on-surface);
}

.upload-form {
  max-width: 720px;
  margin: 0 auto;
}

.form-section {
  background: var(--md-sys-color-surface-container-low);
  border-radius: var(--md-sys-shape-corner-large);
  padding: 28px;
  margin-bottom: 20px;
}

.form-section h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--md-sys-color-on-surface);
  margin: 0 0 24px 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--md-sys-color-on-surface);
  font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="url"],
.form-group textarea {
  width: 100%;
  padding: 16px;
  border: 1px solid var(--md-sys-color-outline);
  border-radius: var(--md-sys-shape-corner-medium);
  background: var(--md-sys-color-surface-container-high);
  color: var(--md-sys-color-on-surface);
  font-size: 16px;
  transition: all 0.2s;
  font-family: inherit;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="url"]:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--md-sys-color-primary);
  border-width: 2px;
  padding: 15px;
  background: var(--md-sys-color-surface-container-highest);
}

.form-group input[type="text"]::placeholder,
.form-group input[type="password"]::placeholder,
.form-group input[type="url"]::placeholder,
.form-group textarea::placeholder {
  color: var(--md-sys-color-on-surface-variant);
}

.form-group input[type="file"] {
  width: 100%;
  padding: 40px 24px;
  border: 2px dashed var(--md-sys-color-outline-variant);
  border-radius: var(--md-sys-shape-corner-large);
  background: var(--md-sys-color-surface-container);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
}

.form-group input[type="file"]:hover {
  border-color: var(--md-sys-color-primary);
  background: var(--md-sys-color-primary-container);
}

.form-hint {
  margin: 8px 0 0 0;
  font-size: 13px;
  color: var(--md-sys-color-on-surface-variant);
  line-height: 1.5;
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 12px;
}

.current-file {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--md-sys-color-secondary-container);
  border-radius: var(--md-sys-shape-corner-medium);
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--md-sys-color-on-secondary-container);
}

.current-file span {
  font-weight: 500;
  opacity: 0.8;
}

.current-file a {
  color: var(--md-sys-color-primary);
  text-decoration: none;
  font-weight: 500;
}

.current-file a:hover {
  text-decoration: underline;
}

.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--md-sys-color-surface);
}

.login-page .login-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.login-page .footer {
  margin-top: 0;
}

.login-container {
  max-width: 400px;
  margin: 64px auto;
  padding: 48px 32px;
  background: var(--md-sys-color-surface-container-low);
  border-radius: var(--md-sys-shape-corner-extra-large);
  box-shadow: var(--md-sys-elevation-level2);
  text-align: center;
}

.login-title {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 8px;
}

.login-subtitle {
  color: var(--md-sys-color-on-surface-variant);
  margin-bottom: 32px;
}

.video-detail {
  max-width: 960px;
  margin: 0 auto;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--md-sys-color-primary);
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 20px;
  padding: 8px 16px;
  border-radius: var(--md-sys-shape-corner-full);
  transition: all 0.2s;
  background: var(--md-sys-color-surface-container);
}

.back-button:hover {
  background: var(--md-sys-color-secondary-container);
}

.video-player-wrapper {
  border-radius: var(--md-sys-shape-corner-extra-large);
  overflow: hidden;
  box-shadow: var(--md-sys-elevation-level2);
  margin-bottom: 28px;
  aspect-ratio: 16/9;
  background: var(--md-sys-color-surface-container-highest);
}

.bilibili-player {
  width: 100%;
  height: 100%;
  border: none;
}

.no-video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--md-sys-color-on-surface-variant);
}

.no-video-icon {
  font-size: 64px;
}

.video-detail-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-title {
  font-size: 32px;
  font-weight: 400;
  color: var(--md-sys-color-on-surface);
  line-height: 1.25;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--md-sys-color-outline-variant);
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
}

.detail-category {
  padding: 6px 16px;
  background: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
  border-radius: var(--md-sys-shape-corner-full);
  font-size: 14px;
  font-weight: 500;
}

.detail-date {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 14px;
}

.bilibili-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
  border-radius: var(--md-sys-shape-corner-full);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.bilibili-link:hover {
  filter: brightness(0.95);
}

.detail-description {
  font-size: 16px;
  line-height: 1.75;
  color: var(--md-sys-color-on-surface-variant);
  padding: 8px 0;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-tags .tag {
  padding: 6px 14px;
  background: var(--md-sys-color-surface-container-high);
  color: var(--md-sys-color-on-surface-variant);
  border-radius: var(--md-sys-shape-corner-medium);
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s;
}

.detail-tags .tag:hover {
  background: var(--md-sys-color-surface-container-highest);
  color: var(--md-sys-color-primary);
}

.detail-actions {
  display: flex;
  gap: 12px;
  padding-top: 8px;
}

.audio-player-section {
  margin-top: 24px;
  padding: 24px;
  background: var(--md-sys-color-primary-container);
  border-radius: var(--md-sys-shape-corner-large);
}

.audio-player-section h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--md-sys-color-on-primary-container);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.audio-player-section audio {
  width: 100%;
  height: 48px;
  border-radius: var(--md-sys-shape-corner-medium);
}

.related-videos {
  margin-top: 48px;
}

.related-videos .section-title {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 20px;
  color: var(--md-sys-color-on-surface);
}

.footer {
  margin-top: 64px;
  padding: 32px 0;
  background: var(--md-sys-color-surface-container);
  border-top: 1px solid var(--md-sys-color-outline-variant);
}

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

.footer p {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 14px;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-link {
  color: var(--md-sys-color-primary);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
}

.footer-link:hover {
  text-decoration: underline;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-icp {
  color: var(--md-sys-color-on-surface-variant);
  text-decoration: none;
  font-size: 12px;
  transition: all 0.2s;
}

.footer-icp:hover {
  color: var(--md-sys-color-primary);
  text-decoration: underline;
}

.page-header {
  margin-bottom: 32px;
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--md-sys-color-on-surface);
  margin: 0 0 8px 0;
}

.page-subtitle {
  font-size: 16px;
  color: var(--md-sys-color-on-surface-variant);
  margin: 0;
}

.api-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.api-card {
  background: var(--md-sys-color-surface-container-low);
  border-radius: var(--md-sys-shape-corner-large);
  padding: 24px;
}

.api-section-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--md-sys-color-on-surface);
  margin: 0 0 20px 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-label {
  font-size: 12px;
  color: var(--md-sys-color-on-surface-variant);
  font-weight: 500;
}

.info-value {
  font-size: 14px;
  font-weight: 600;
}

.code-block {
  background: var(--md-sys-color-surface-container-high);
  border-radius: var(--md-sys-shape-corner-medium);
  padding: 20px;
  overflow-x: auto;
}

.code-block pre {
  margin: 0;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 14px;
  line-height: 1.6;
}

.code-key {
  color: var(--md-sys-color-tertiary);
}

.code-string {
  color: var(--md-sys-color-primary);
}

.code-number {
  color: var(--md-sys-color-secondary);
}

.code-punctuation {
  color: var(--md-sys-color-on-surface-variant);
}

.code-comment {
  color: var(--md-sys-color-outline);
  font-style: italic;
}

.code-const {
  color: var(--md-sys-color-error);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--md-sys-color-surface-container-high);
  border-radius: var(--md-sys-shape-corner-medium);
}

.status-item.success .status-code {
  color: var(--md-sys-color-primary);
}

.status-item.error .status-code {
  color: var(--md-sys-color-error);
}

.status-code {
  font-size: 20px;
  font-weight: 700;
  font-family: 'Consolas', monospace;
}

.status-text {
  font-size: 14px;
  color: var(--md-sys-color-on-surface);
}

.endpoint-card {
  background: var(--md-sys-color-surface-container-low);
  border-radius: var(--md-sys-shape-corner-large);
  overflow: hidden;
}

.endpoint-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--md-sys-color-surface-container);
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
  flex-wrap: wrap;
}

.method {
  padding: 4px 12px;
  border-radius: var(--md-sys-shape-corner-full);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.method.get {
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}

.method.mini {
  font-size: 10px;
  padding: 2px 8px;
}

.endpoint-path {
  font-family: 'Consolas', monospace;
  font-size: 15px;
  font-weight: 600;
  color: var(--md-sys-color-on-surface);
}

.endpoint-desc {
  margin-left: auto;
  font-size: 14px;
  color: var(--md-sys-color-on-surface-variant);
}

.endpoint-body {
  padding: 20px;
}

.endpoint-summary {
  font-size: 14px;
  color: var(--md-sys-color-on-surface-variant);
  margin: 0 0 16px 0;
}

.endpoint-body h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--md-sys-color-on-surface);
  margin: 0 0 12px 0;
}

.param-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}

.param-table th,
.param-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
  font-size: 14px;
}

.param-table th {
  font-weight: 600;
  color: var(--md-sys-color-on-surface-variant);
  background: var(--md-sys-color-surface-container);
}

.param-table td {
  color: var(--md-sys-color-on-surface);
}

.btn-small {
  padding: 6px 16px !important;
  font-size: 13px !important;
}

.contact-section {
  max-width: 800px;
  margin: 0 auto;
}

.contact-card {
  background: var(--md-sys-color-surface-container-low);
  border-radius: var(--md-sys-shape-corner-large);
  padding: 32px;
  text-align: center;
  margin-bottom: 24px;
}

.contact-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.contact-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--md-sys-color-on-surface);
  margin-bottom: 12px;
}

.contact-text {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 16px;
  line-height: 1.8;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.contact-item {
  background: var(--md-sys-color-surface-container-low);
  border-radius: var(--md-sys-shape-corner-large);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
}

.contact-item:hover {
  background: var(--md-sys-color-surface-container);
  transform: translateY(-2px);
}

.contact-item-icon {
  font-size: 32px;
}

.contact-item-content h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--md-sys-color-on-surface);
  margin: 0 0 4px 0;
}

.contact-item-content p {
  font-size: 14px;
  color: var(--md-sys-color-primary);
  margin: 0;
  font-weight: 500;
}

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

.page-btn {
  padding: 10px 20px;
  border-radius: var(--md-sys-shape-corner-medium);
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.page-btn:hover:not(.disabled) {
  background: var(--md-sys-color-on-primary-container);
  transform: translateY(-1px);
}

.page-btn.disabled {
  background: var(--md-sys-color-surface-container-highest);
  color: var(--md-sys-color-on-surface-variant);
  cursor: not-allowed;
  opacity: 0.6;
}

.page-info {
  padding: 10px 20px;
  background: var(--md-sys-color-surface-container);
  border-radius: var(--md-sys-shape-corner-medium);
  color: var(--md-sys-color-on-surface-variant);
  font-size: 14px;
  font-weight: 500;
}

.footer-beian {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--md-sys-color-on-surface-variant);
  text-decoration: none;
  font-size: 13px;
  margin-top: 4px;
}

.footer-beian:hover {
  color: var(--md-sys-color-primary);
}

.beian-icon {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.download-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.download-stats {
  font-size: 16px;
  color: var(--md-sys-color-on-surface-variant);
}

.stat-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.stat-item strong {
  color: var(--md-sys-color-primary);
  font-size: 20px;
}

.download-actions {
  display: flex;
  gap: 12px;
}

.download-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.download-list-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--md-sys-color-surface-container-low);
  border-radius: var(--md-sys-shape-corner-large);
  transition: background 0.2s, box-shadow 0.2s;
}

.download-list-item:hover {
  background: var(--md-sys-color-surface-container);
  box-shadow: var(--md-sys-elevation-level1);
}

.checkbox-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  cursor: pointer;
  flex-shrink: 0;
}

.download-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--md-sys-color-primary);
}

.download-checkbox:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.item-thumbnail {
  width: 80px;
  height: 80px;
  border-radius: var(--md-sys-shape-corner-medium);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--md-sys-color-surface-container-high);
  display: flex;
  align-items: center;
  justify-content: center;
}

.item-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-thumbnail .no-thumb {
  font-size: 32px;
}

.item-info {
  flex: 1;
  min-width: 0;
}

.item-info h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--md-sys-color-on-surface);
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-info h3 a {
  color: inherit;
  text-decoration: none;
}

.item-info h3 a:hover {
  text-decoration: underline;
  color: var(--md-sys-color-primary);
}

.item-description {
  display: none;
}

.item-description-inline {
  font-size: 14px;
  font-weight: 400;
  color: var(--md-sys-color-on-surface-variant);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--md-sys-color-on-surface-variant);
  margin-bottom: 8px;
}

.item-meta .date {
  font-size: 13px;
}

.item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.item-tags .tag {
  font-size: 12px;
  padding: 2px 8px;
  background: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
  border-radius: var(--md-sys-shape-corner-full);
}

.item-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.no-audio {
  font-size: 14px;
  color: var(--md-sys-color-on-surface-variant);
  opacity: 0.7;
}

.play-btn {
  display: flex;
  align-items: center;
  gap: 4px;
}

.stat-item {
  font-size: 14px;
  color: var(--md-sys-color-on-surface-variant);
}

.stat-item strong {
  color: var(--md-sys-color-on-surface);
}

.col-date {
  min-width: 100px;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 14px;
}

.col-action {
  min-width: 80px;
  text-align: right;
}

.no-audio {
  font-size: 13px;
  color: var(--md-sys-color-error);
  opacity: 0.7;
}

.btn-secondary {
  background: var(--md-sys-color-secondary);
  color: var(--md-sys-color-on-secondary);
}

.btn-secondary:hover {
  background: var(--md-sys-color-secondary-container);
}

.download-btn {
  white-space: nowrap;
}

.audio-player-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--md-sys-color-surface-container-high);
  border-top: 1px solid var(--md-sys-color-outline-variant);
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.audio-player-bar.active {
  transform: translateY(0);
}

.player-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 24px;
  display: grid;
  grid-template-columns: 300px 1fr 200px;
  align-items: center;
  gap: 24px;
}

.player-track-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.player-cover {
  width: 56px;
  height: 56px;
  border-radius: var(--md-sys-shape-corner-medium);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--md-sys-color-primary-container);
}

.player-track-details {
  min-width: 0;
  flex: 1;
}

.player-track-title {
  font-weight: 500;
  color: var(--md-sys-color-on-surface);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.player-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.player-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.player-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: var(--md-sys-shape-corner-full);
  background: transparent;
  color: var(--md-sys-color-on-surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-size: 18px;
}

.player-btn:hover {
  background: var(--md-sys-color-surface-container-highest);
}

.player-btn.play-btn {
  width: 48px;
  height: 48px;
  background: var(--md-sys-color-primary);
  color: white;
  font-size: 20px;
}

.player-btn.play-btn:hover {
  filter: brightness(1.1);
  box-shadow: var(--md-sys-elevation-level2);
}

.player-btn.active {
  color: var(--md-sys-color-primary);
}

.player-progress {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress-bar {
  flex: 1;
  height: 4px;
  background: var(--md-sys-color-surface-container-highest);
  border-radius: var(--md-sys-shape-corner-full);
  cursor: pointer;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: var(--md-sys-color-primary);
  border-radius: var(--md-sys-shape-corner-full);
  position: relative;
  transition: width 0.1s linear;
}

.progress-handle {
  width: 12px;
  height: 12px;
  background: var(--md-sys-color-primary);
  border-radius: 50%;
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.2s;
}

.progress-bar:hover .progress-handle {
  opacity: 1;
}

.player-time {
  font-size: 12px;
  color: var(--md-sys-color-on-surface-variant);
  font-variant-numeric: tabular-nums;
  min-width: 80px;
  text-align: center;
}

.player-extra {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.player-volume {
  display: flex;
  align-items: center;
  gap: 8px;
}

.volume-bar {
  width: 80px;
  height: 4px;
  background: var(--md-sys-color-outline-variant);
  border-radius: var(--md-sys-shape-corner-full);
  cursor: pointer;
  position: relative;
}

.volume-fill {
  height: 100%;
  background: var(--md-sys-color-primary);
  border-radius: var(--md-sys-shape-corner-full);
  transition: width 0.1s;
}

.volume-slider {
  width: 80px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--md-sys-color-surface-container-highest);
  border-radius: var(--md-sys-shape-corner-full);
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  background: var(--md-sys-color-primary);
  border-radius: 50%;
  cursor: pointer;
}

.playlist-toggle {
  position: relative;
}

.playlist-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  background: var(--md-sys-color-primary);
  color: white;
  font-size: 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.playlist-panel {
  position: fixed;
  bottom: 104px;
  right: 24px;
  width: 360px;
  max-height: 480px;
  background: var(--md-sys-color-surface-container);
  border-radius: var(--md-sys-shape-corner-large);
  box-shadow: var(--md-sys-elevation-level3);
  z-index: 999;
  display: none;
  overflow: hidden;
}

.playlist-panel.active {
  display: flex;
  flex-direction: column;
}

.playlist-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.playlist-header h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--md-sys-color-on-surface);
}

.playlist-clear {
  font-size: 12px;
  color: var(--md-sys-color-primary);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--md-sys-shape-corner-small);
}

.playlist-clear:hover {
  background: var(--md-sys-color-primary-container);
}

.playlist-items {
  flex: 1;
  overflow-y: auto;
  max-height: 360px;
}

.playlist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  cursor: pointer;
  transition: background 0.2s;
}

.playlist-item:hover {
  background: var(--md-sys-color-surface-container-high);
}

.playlist-item.playing {
  background: var(--md-sys-color-primary-container);
}

.playlist-item-cover {
  width: 40px;
  height: 40px;
  border-radius: var(--md-sys-shape-corner-small);
  object-fit: cover;
  flex-shrink: 0;
}

.playlist-item-info {
  flex: 1;
  min-width: 0;
}

.playlist-item-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--md-sys-color-on-surface);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playlist-item-remove {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--md-sys-color-on-surface-variant);
  cursor: pointer;
  border-radius: var(--md-sys-shape-corner-full);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.2s;
}

.playlist-item:hover .playlist-item-remove {
  opacity: 1;
}

.playlist-item-remove:hover {
  background: var(--md-sys-color-error-container);
  color: var(--md-sys-color-error);
}

.playlist-empty {
  padding: 48px 20px;
  text-align: center;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 14px;
}

.add-to-playlist {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: var(--md-sys-shape-corner-full);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  opacity: 0;
  transition: all 0.2s;
  z-index: 5;
}

.video-card-wrapper:hover .add-to-playlist,
.video-card:hover .add-to-playlist {
  opacity: 1;
}

.add-to-playlist:hover {
  background: var(--md-sys-color-primary);
  transform: scale(1.1);
}

.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 12px 24px;
  background: var(--md-sys-color-inverse-surface);
  color: var(--md-sys-color-inverse-on-surface);
  border-radius: var(--md-sys-shape-corner-small);
  font-size: 14px;
  z-index: 3000;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

body.has-player {
  padding-bottom: 116px;
}

.banner-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--md-sys-shape-corner-large);
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
}

.banner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: white;
}

.banner-overlay h3 {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 8px 0;
}

.banner-overlay p {
  font-size: 16px;
  margin: 0;
  opacity: 0.9;
}

.carousel-indicators {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.indicator.active {
  background: white;
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  z-index: 10;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: rgba(0, 0, 0, 0.7);
}

.carousel-prev {
  left: 16px;
}

.carousel-next {
  right: 16px;
}

.banners-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.banner-card {
  background: var(--md-sys-color-surface-container-low);
  border-radius: var(--md-sys-shape-corner-large);
  overflow: hidden;
}

.banner-preview {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.banner-info {
  padding: 16px;
}

.banner-info h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
}

.banner-info p {
  margin: 0 0 8px 0;
  font-size: 14px;
  color: var(--md-sys-color-on-surface-variant);
}

.banner-link {
  font-size: 13px;
  color: var(--md-sys-color-primary);
  word-break: break-all;
}

.banner-actions {
  padding: 0 16px 16px;
  display: flex;
  gap: 8px;
}

.banner-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--md-sys-color-surface-container-high);
  font-size: 48px;
}

.banner-preview-placeholder {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--md-sys-color-surface-container-high);
  font-size: 36px;
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
  }
  
  .search-form {
    order: 3;
    max-width: 100%;
    flex-basis: 100%;
  }
  
  .video-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .admin-item {
    flex-wrap: wrap;
  }
  
  .admin-item-thumbnail {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* MD3 Admin Banner Styles */
.md3-card {
  background: var(--md-sys-color-surface-container-low);
  border-radius: var(--md-sys-shape-corner-large);
  box-shadow: var(--md-sys-elevation-level1);
  padding: 24px;
  margin-bottom: 24px;
}

.admin-section {
  margin-bottom: 32px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
}

.section-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
  border-radius: var(--md-sys-shape-corner-medium);
  font-size: 20px;
}

.section-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--md-sys-color-on-surface);
  margin: 0;
}

.section-subtitle {
  font-size: 14px;
  color: var(--md-sys-color-on-surface-variant);
  margin: 4px 0 0 0;
}

/* MD3 Form Styles */
.md3-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.md3-label {
  display: flex;
  align-items: center;
  gap: 4px;
}

.label-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--md-sys-color-on-surface-variant);
}

.label-required {
  color: var(--md-sys-color-error);
  font-size: 14px;
}

.label-optional {
  font-size: 12px;
  color: var(--md-sys-color-outline);
  font-weight: 400;
}

.md3-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--md-sys-color-outline);
  border-radius: var(--md-sys-shape-corner-medium);
  background: var(--md-sys-color-surface-container-highest);
  color: var(--md-sys-color-on-surface);
  font-size: 16px;
  transition: all 0.2s;
  outline: none;
}

.md3-input:focus {
  border-color: var(--md-sys-color-primary);
  box-shadow: 0 0 0 2px rgba(103, 80, 164, 0.2);
}

.md3-input::placeholder {
  color: var(--md-sys-color-outline);
}

.md3-select-wrapper {
  position: relative;
}

.md3-select {
  width: 100%;
  padding: 12px 16px;
  padding-right: 48px;
  border: 1px solid var(--md-sys-color-outline);
  border-radius: var(--md-sys-shape-corner-medium);
  background: var(--md-sys-color-surface-container-highest);
  color: var(--md-sys-color-on-surface);
  font-size: 16px;
  transition: all 0.2s;
  outline: none;
  cursor: pointer;
  appearance: none;
}

.md3-select:focus {
  border-color: var(--md-sys-color-primary);
  box-shadow: 0 0 0 2px rgba(103, 80, 164, 0.2);
}

.md3-select-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--md-sys-color-on-surface-variant);
  pointer-events: none;
  font-size: 12px;
}

/* MD3 Buttons */
.md3-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--md-sys-shape-corner-full);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.md3-btn-primary {
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
}

.md3-btn-primary:hover {
  background: var(--md-sys-color-primary);
  filter: brightness(1.05);
  box-shadow: var(--md-sys-elevation-level2);
}

.md3-btn-secondary {
  background: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
}

.md3-btn-secondary:hover {
  background: var(--md-sys-color-secondary-container);
  filter: brightness(1.05);
}

.md3-btn-danger {
  background: var(--md-sys-color-error-container);
  color: var(--md-sys-color-on-error-container);
}

.md3-btn-danger:hover {
  background: var(--md-sys-color-error-container);
  filter: brightness(1.05);
}

.btn-icon {
  font-size: 16px;
}

.btn-icon-only {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--md-sys-shape-corner-full);
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

/* Preview Section */
.preview-section {
  display: none;
  padding: 16px;
  background: var(--md-sys-color-surface-container-highest);
  border-radius: var(--md-sys-shape-corner-medium);
  margin-top: 8px;
}

.preview-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.preview-icon {
  font-size: 18px;
}

.preview-header h4 {
  font-size: 14px;
  font-weight: 500;
  color: var(--md-sys-color-on-surface);
  margin: 0;
}

.banner-preview-container {
  position: relative;
  max-width: 400px;
  aspect-ratio: 16/9;
  border-radius: var(--md-sys-shape-corner-medium);
  overflow: hidden;
  background: var(--md-sys-color-surface-dim);
}

.preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#preview-title {
  color: white;
  font-size: 16px;
  font-weight: 600;
}

#preview-desc {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
}

/* Banner Grid */
.banners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

/* Banner Card MD3 */
.banner-card-md3 {
  background: var(--md-sys-color-surface-container-highest);
  border-radius: var(--md-sys-shape-corner-large);
  overflow: hidden;
  box-shadow: var(--md-sys-elevation-level1);
  transition: box-shadow 0.2s;
}

.banner-card-md3:hover {
  box-shadow: var(--md-sys-elevation-level2);
}

.banner-card-image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.banner-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--md-sys-color-surface-dim);
  font-size: 48px;
}

.banner-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  background: rgba(0,0,0,0.6);
  color: white;
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--md-sys-shape-corner-full);
}

.banner-card-content {
  padding: 16px;
}

.banner-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--md-sys-color-on-surface);
  margin: 0 0 8px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.banner-card-desc {
  font-size: 14px;
  color: var(--md-sys-color-on-surface-variant);
  margin: 0 0 8px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.banner-card-link {
  font-size: 12px;
  color: var(--md-sys-color-primary);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.banner-card-actions {
  display: flex;
  gap: 8px;
  padding: 0 16px 16px;
}

/* Empty State */
.empty-state-md3 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px;
  text-align: center;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.empty-state-md3 h4 {
  font-size: 18px;
  font-weight: 500;
  color: var(--md-sys-color-on-surface);
  margin: 0 0 8px 0;
}

.empty-state-md3 p {
  font-size: 14px;
  color: var(--md-sys-color-on-surface-variant);
  margin: 0;
}

/* Alert Styles */
.alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--md-sys-shape-corner-medium);
  margin-bottom: 16px;
}

.alert-error {
  background: var(--md-sys-color-error-container);
  color: var(--md-sys-color-on-error-container);
}

.alert-success {
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}

.alert-icon {
  font-size: 18px;
}

/* Edit Form */
.edit-form {
  margin-bottom: 24px;
}

/* Responsive */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .banners-grid {
    grid-template-columns: 1fr;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .form-actions {
    flex-wrap: wrap;
  }
}
