.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

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

html,
body {
  width: 100%;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

#app {
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: rgba(45, 45, 45, .95);
}

.layout-header {
  position: sticky;
  top: 0;
  width: 100%;
  height: 60px;
  z-index: 2000;
  padding: 0 100px;
  background: rgba(45, 45, 45, .95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
}

.layout-header .navbar-content {
  display: flex;
  align-items: center;
  height: 60px;
}

.layout-header .navbar-brand {
  margin-right: 30px;
  flex-shrink: 0;
}

.layout-header .navbar-brand img {
  height: 35px;
  display: block;
}

.layout-header .search-form {
  flex: 0 1 400px;
  margin-right: auto;
}

.layout-header .search-form .input-group {
  display: flex;
  height: 34px;
}

.layout-header .search-form .input-group input {
  flex: 1;
  padding: 0 15px;
  background: #333;
  border: 1px solid #444;
  color: #fff;
  border-radius: 4px 0 0 4px;
  font-size: 14px;
}

.layout-header .search-form .input-group input:focus {
  border-color: #e91e63;
  outline: none;
}

.layout-header .search-form .input-group button {
  padding: 0 20px;
  background: #e91e63;
  border: none;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  border-radius: 0 4px 4px 0;
}

.layout-header .search-form .input-group button:hover {
  background: #d81b60;
}

.layout-header .nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 60px;
}

.layout-header .nav-menu li {
  position: relative;
  height: 60px;
  display: flex;
  align-items: center;
}

.layout-header .nav-menu li a {
  padding: 0 20px;
  line-height: 60px;
  color: #bbb;
  text-decoration: none;
  font-size: 15px;
  transition: color .2s;
}

.layout-header .nav-menu li a:hover {
  color: #fff;
}

.layout-header .nav-menu li.active a {
  color: #fff;
  font-weight: bold;
}

.layout-header .nav-menu li.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 3px;
  background: #e91e63;
  border-radius: 3px 3px 0 0;
}

.layout-body {
  flex: 1;
  width: 100%;
  padding: 10px;
}

.layout-body .page {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px;
  color: #fff;
}

/* === 共用列表页样式 === */
.page .movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.page .movie-card {
  display: block;
  background: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  transition: transform .3s;
}

.page .movie-card:hover {
  transform: translateY(-5px);
}

.page .movie-card .card-media {
  position: relative;
  aspect-ratio: 16/10;
  background: #2a2a2a;
}

.page .movie-card .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page .movie-card .card-media .duration-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, .7);
  color: #fff;
  padding: 2px 6px;
  font-size: 11px;
  border-radius: 3px;
  backdrop-filter: blur(4px);
}

.page .movie-card .card-content {
  padding: 12px;
}

.page .movie-card .card-content .card-code {
  color: #e91e63;
  font-weight: bold;
  font-size: 12px;
  margin-bottom: 4px;
}

.page .movie-card .card-content .card-title {
  font-size: 14px;
  color: #eee;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page .movie-card .card-content .card-meta {
  margin-top: 6px;
}

.page .movie-card .card-content .card-meta .card-date {
  font-size: 12px;
  color: #999;
}

.page .empty-state {
  text-align: center;
  padding: 100px 20px;
  color: #666;
  font-size: 16px;
}

.page .pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 30px;
  padding: 20px 0;
}

.page .pagination a,
.page .pagination span {
  padding: 8px 16px;
  background: #333;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
}

.page .pagination a:hover {
  background: #e91e63;
}

.page .pagination .current {
  color: #aaa;
}

@media(max-width:640px) {
  .page .movie-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
  }
}

.layout-footer {
  padding: 50px 0;
  background: #1a1a1a;
  border-top: 1px solid #2d2d2d;
  text-align: center;
  width: 100%;
}

.layout-footer .footer-links {
  margin-bottom: 20px;
}

.layout-footer .footer-links a {
  color: #777;
  margin: 0 15px;
  text-decoration: none;
  font-size: 14px;
}

.layout-footer .footer-links a:hover {
  color: #e91e63;
}

.layout-footer .copyright {
  color: #444;
  font-size: 13px;
}

@media(max-width:992px) {
  .layout-header {
    padding: 0 20px;
  }

  .layout-header .search-form {
    flex: 1;
    margin: 0 15px;
  }

  .layout-header .nav-menu {
    display: none;
  }
}

@media(max-width:600px) {
  .layout-header .search-form {
    display: none;
  }
}
