* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
}

body {
  background: #000;
  color: #fff;
  overflow: auto;
}

* {
  font-family: Jost, sans-serif;
}

h1 {
  text-align: center;
}

a {
  color: #6583bc;
  text-decoration: none;
}

#main {
  padding: 20px;
  margin-top: 80px;
  min-height: calc(100vh - 80px - 60px);
}

#navigation {
  height: 80px;
  border-bottom: 1px solid #333;
  position: fixed;
  background: #111;
  top: 0;
  left: 0;
  right: 0;
  color: #fff;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

#navigation-inner {
  max-width: 1400px;
  min-height: 80px;
  margin: 0 auto;
  height: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 30px;
}

#logo {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
  flex-shrink: 0;
}
#logo:hover {
  color: #6583bc;
}

#navigation-links {
  display: flex;
  gap: 5px;
  margin: 0;
  padding: 0;
  align-items: center;
}
#navigation-links a {
  padding: 8px 16px;
  border-radius: 6px;
  color: #aaa;
  font-weight: 500;
  transition: all 0.2s ease;
}
#navigation-links a:hover {
  background: #1a1a1a;
  color: #6583bc;
}
#navigation-links .nav-surprise {
  padding: 8px;
  display: flex;
  align-items: center;
  margin-left: 4px;
  border: 1px solid #333;
}
#navigation-links .nav-surprise .material-icons {
  font-size: 20px;
}
#navigation-links .nav-surprise:hover {
  border-color: #6583bc;
}

#search-toggle {
  display: none;
  padding: 10px;
  border: 1px solid #333;
  border-radius: 6px;
  background: transparent;
  color: #aaa;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: auto;
}
#search-toggle:hover {
  border-color: #6583bc;
  color: #6583bc;
}
#search-toggle .material-icons {
  font-size: 20px;
  display: block;
}
@media (max-width: 1500px) {
  #search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

#navigation-search {
  margin-left: auto;
  display: flex;
  gap: 5px;
}
@media (max-width: 1500px) {
  #navigation-search {
    display: none;
  }
}
#navigation-search input[type=search] {
  padding: 10px 16px;
  border: 1px solid #333;
  border-radius: 6px;
  background: #1a1a1a;
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  width: 300px;
  transition: all 0.2s ease;
}
#navigation-search input[type=search]::placeholder {
  color: #666;
}
#navigation-search input[type=search]:focus {
  outline: none;
  border-color: #6583bc;
  background: #222;
}
#navigation-search button {
  padding: 10px 16px;
  border: 1px solid #333;
  border-radius: 6px;
  background: #6583bc;
  color: #fff;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
#navigation-search button:hover {
  background: rgb(136.5384615385, 159.6153846154, 203.4615384615);
  transform: translateY(-1px);
}
#navigation-search button:active {
  transform: translateY(0);
}
#navigation-search button .material-icons {
  font-size: 20px;
}

#search-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
}
#search-overlay.open {
  display: flex;
}

#search-overlay-content {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 600px;
  padding: 0 20px;
}

#search-overlay-form {
  display: flex;
  flex: 1;
  gap: 8px;
}
#search-overlay-form input[type=search] {
  flex: 1;
  padding: 16px 20px;
  border: 1px solid #444;
  border-radius: 8px;
  background: #1a1a1a;
  color: #fff;
  font-size: 1.1rem;
  font-family: inherit;
}
#search-overlay-form input[type=search]::placeholder {
  color: #666;
}
#search-overlay-form input[type=search]:focus {
  outline: none;
  border-color: #6583bc;
}
#search-overlay-form button {
  padding: 16px 24px;
  border: none;
  border-radius: 8px;
  background: #6583bc;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}
#search-overlay-form button:hover {
  background: rgb(136.5384615385, 159.6153846154, 203.4615384615);
}
#search-overlay-form button .material-icons {
  font-size: 24px;
  display: block;
}

#search-overlay-close {
  padding: 12px;
  border: 1px solid #444;
  border-radius: 8px;
  background: transparent;
  color: #888;
  cursor: pointer;
  transition: all 0.2s ease;
}
#search-overlay-close:hover {
  border-color: #666;
  color: #fff;
}
#search-overlay-close .material-icons {
  font-size: 24px;
  display: block;
}

#auth-icons-mobile,
#login-link-mobile {
  display: none;
}
@media (max-width: 1100px) and (min-width: 501px) {
  #auth-icons-mobile,
  #login-link-mobile {
    display: flex;
  }
}

#login-link-mobile {
  padding: 8px 16px;
  border: 1px solid #333;
  border-radius: 6px;
  font-size: 0.9rem;
}
#login-link-mobile:hover {
  border-color: #6583bc;
  background: rgba(101, 131, 188, 0.1);
}

.auth-icons {
  display: flex;
  gap: 0;
  border: 1px solid #333;
  border-radius: 6px;
  overflow: hidden;
}
.auth-icons .auth-link-icon {
  border: none;
  border-radius: 0;
  border-right: 1px solid #333;
}
.auth-icons .auth-link-icon:last-child {
  border-right: none;
}
.auth-icons .auth-link-icon:hover {
  background: rgba(101, 131, 188, 0.1);
}

.auth-link {
  color: #6583bc;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 8px 16px;
  border: 1px solid #333;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}
.auth-link:hover {
  border-color: #6583bc;
  background: rgba(101, 131, 188, 0.1);
}
.auth-link.auth-link-icon {
  padding: 8px;
  display: flex;
  align-items: center;
}
.auth-link.auth-link-icon .material-icons {
  font-size: 20px;
}

#navigation-auth {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 16px;
}
#navigation-auth .auth-user {
  color: #999;
  font-size: 0.9rem;
}
@media (max-width: 1100px) {
  #navigation-auth .auth-icons-desktop,
  #navigation-auth .auth-link-desktop {
    display: none;
  }
}
#navigation-auth .auth-logout {
  background: transparent;
  border: none;
  color: #777;
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}
#navigation-auth .auth-logout:hover {
  color: #6583bc;
}
#navigation-auth .logout-form {
  display: inline;
}

#nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 8px;
  cursor: pointer;
  color: #fff;
  transition: all 0.2s ease;
}
#nav-toggle:hover {
  border-color: #6583bc;
  color: #6583bc;
}
#nav-toggle .material-icons {
  font-size: 24px;
  display: block;
}

#navigation-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

@media (max-width: 1100px) {
  #navigation {
    height: auto;
    min-height: 80px;
  }
  #navigation-inner {
    flex-wrap: wrap;
  }
  #navigation-search {
    margin-left: auto;
    margin-right: 12px;
    flex: 1;
    max-width: 300px;
  }
  #navigation-search input[type=search] {
    width: 100%;
  }
  #nav-toggle {
    display: flex;
  }
  #navigation-menu {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0;
    padding: 16px 0;
    border-top: 1px solid #333;
    margin-top: 15px;
  }
  #navigation.nav-open #navigation-menu {
    display: flex;
  }
  #navigation-links {
    flex-direction: column;
    gap: 0;
    text-align: center;
  }
  #navigation-links a {
    padding: 14px 0;
    border-radius: 0;
    border-bottom: 1px solid #222;
  }
  #navigation-links a:first-child {
    border-top: 1px solid #222;
  }
  #navigation-links .nav-surprise {
    border: none;
    border-bottom: 1px solid #222;
    border-radius: 0;
    padding: 14px 0;
    margin-left: 0;
    justify-content: center;
  }
  #navigation-links .nav-surprise:hover {
    border-color: #222;
    border-bottom-color: #222;
  }
  #navigation-auth {
    margin-left: 0;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #222;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }
  #navigation-auth .auth-user {
    padding: 8px 0;
  }
  #navigation-auth .logout-form {
    display: flex;
    align-items: center;
  }
}
@media (max-width: 600px) {
  #navigation-search input[type=search] {
    width: 120px;
    padding: 10px 12px;
    font-size: 0.9rem;
  }
  #navigation-search button {
    padding: 10px 12px;
  }
  #logo {
    font-size: 18px;
  }
}
.work-list,
.artist-list,
.museum-list,
.subject-list,
.movement-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.list-item {
  background: #111;
  color: #fff;
  border: 1px solid #333;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}
.list-item:hover {
  transform: translateY(-4px);
  border-color: #555;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
.list-item-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  flex: 1;
}
.list-item-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: #0a0a0a;
  overflow: hidden;
  transition: background 0.4s ease;
}
.list-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 0.5s ease;
}
.list-item-image:hover {
  background: #151515;
}
.list-item-image:hover img {
  object-fit: contain;
  transform: scale(1);
}
.list-item-content {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.list-item-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.6em;
}
.list-item-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
}
.list-item-actions {
  display: flex;
  gap: 0;
  border-top: 1px solid #222;
  background: #0a0a0a;
}
.list-item-actions a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  color: #777;
  text-decoration: none;
  transition: all 0.2s ease;
  border-right: 1px solid #222;
}
.list-item-actions a:last-child {
  border-right: none;
}
.list-item-actions a:hover {
  background: #1a1a1a;
  color: #6583bc;
}
.list-item-actions a .material-icons {
  font-size: 20px;
}

.work-list-item .work-list-item-year {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
}
.work-list-item .work-list-item-meta {
  gap: 5px;
}
.work-list-item .work-list-item-artist {
  color: #aaa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.work-list-item .work-list-item-museum {
  color: #777;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.work-list-item .work-list-item-unknown {
  color: #555;
  font-style: italic;
}

.artist-list-item .artist-list-item-years {
  color: #aaa;
  display: flex;
  gap: 6px;
  align-items: center;
}
.artist-list-item .artist-list-item-separator {
  color: #555;
}
.artist-list-item .artist-list-item-works {
  color: #777;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
}
.artist-list-item .artist-list-item-works .material-icons {
  font-size: 16px;
}

.subject-list-item .subject-list-item-description {
  color: #aaa;
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.subject-list-item .subject-list-item-works {
  color: #777;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
}
.subject-list-item .subject-list-item-works .material-icons {
  font-size: 16px;
}

.movement-list-item .movement-list-item-description {
  color: #aaa;
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.movement-list-item .movement-list-item-works {
  color: #777;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
}
.movement-list-item .movement-list-item-works .material-icons {
  font-size: 16px;
}

.museum-list-item .museum-list-item-location {
  color: #aaa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.museum-list-item .museum-list-item-count {
  color: #777;
  font-size: 0.8rem;
}

.museum-map {
  height: 300px;
  width: 100%;
  max-width: 600px;
  margin-bottom: 30px;
  border-radius: 8px;
  border: 1px solid #333;
}

.entity-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
@media (max-width: 968px) {
  .entity-actions {
    justify-content: center;
  }
}
@media (max-width: 480px) {
  .entity-actions {
    gap: 8px;
  }
}

.entity-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 6px;
  color: #6583bc;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.95rem;
}
.entity-link:hover {
  background: #222;
  border-color: #6583bc;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.entity-link .material-icons {
  font-size: 20px;
}
@media (max-width: 600px) {
  .entity-link {
    padding: 10px 16px;
    font-size: 0.85rem;
    gap: 6px;
  }
  .entity-link .material-icons {
    font-size: 18px;
  }
}
@media (max-width: 480px) {
  .entity-link {
    padding: 10px 12px;
  }
  .entity-link .entity-link-text {
    display: none;
  }
}

.map-popup-work-list {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  width: 100%;
  min-width: 100px;
}

.map-popup-work-list .item {
  width: 50px;
  height: 50px;
  background: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.map-popup-work-list .item img {
  max-width: 100%;
  max-height: 100%;
}

.no-work-image,
.no-artist-image,
.no-museum-image,
.no-subject-image,
.no-movement-image {
  min-height: 200px;
  min-width: 200px;
  width: 100%;
  height: 100%;
  background: url("/assets/img/work-placeholder.png") no-repeat center center;
  background-size: contain;
}

.letter-navigation {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 50px;
  margin: 20px;
}
.letter-navigation a {
  text-decoration: none;
  color: #333;
  font-size: 20px;
  font-weight: 500;
  margin: 10px;
  padding: 10px 20px;
  border-radius: 25px;
  transition: all 0.3s ease;
}
.letter-navigation a:hover {
  background-color: #6583bc;
  color: #fff;
  transform: scale(1.1);
}
.letter-navigation a:focus {
  outline: none;
  background-color: #6583bc;
  color: #fff;
}
.letter-navigation a.active {
  background-color: #6583bc;
  color: #fff;
}

#footer {
  padding: 30px 20px;
  border-top: 1px solid #333;
  background: #0a0a0a;
  text-align: center;
}

#footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
#footer-links a {
  color: #777;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}
#footer-links a:hover {
  color: #6583bc;
}

/* Work Detail Page */
.work-detail {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

.work-detail-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 968px) {
  .work-detail-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.work-detail-image {
  position: sticky;
  top: 120px;
  border-radius: 8px;
  overflow: hidden;
  background: #111;
  border: 1px solid #333;
}
.work-detail-image a {
  display: block;
  cursor: zoom-in;
}
.work-detail-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}
.work-detail-image a:hover img {
  transform: scale(1.02);
}

.work-detail-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.work-detail-header {
  border-bottom: 2px solid #333;
  padding-bottom: 20px;
}

.work-detail-title {
  font-size: 2.5rem;
  font-weight: 600;
  margin: 0 0 10px 0;
  text-align: left;
  line-height: 1.2;
}

.work-detail-year {
  font-size: 1.2rem;
  color: #999;
  font-weight: 300;
}

.work-detail-metadata {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.work-detail-meta-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  align-items: baseline;
  padding: 15px 0;
  border-bottom: 1px solid #222;
}

.work-detail-meta-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #777;
  font-weight: 500;
}

.work-detail-meta-value {
  font-size: 1.1rem;
  color: #fff;
  transition: color 0.2s ease;
}
.work-detail-meta-value:hover {
  color: #6583bc;
}

.work-detail-meta-external {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.work-detail-meta-external .material-icons {
  font-size: 16px;
  opacity: 0.7;
}

.work-detail-meta-unknown {
  color: #555;
  font-style: italic;
}

.work-detail-description {
  margin-top: 24px;
  padding: 16px 20px;
  background: #111;
  border: 1px solid #333;
  border-radius: 8px;
}
.work-detail-description p {
  margin: 0;
  color: #ccc;
  line-height: 1.7;
}

.work-detail-description-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #222;
  font-size: 0.85rem;
  color: #666;
}
.work-detail-description-hint .material-icons {
  font-size: 16px;
}
.work-detail-description-hint a {
  color: #6583bc;
  text-decoration: none;
  margin-left: 4px;
}
.work-detail-description-hint a:hover {
  text-decoration: underline;
}

.work-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
}

.work-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #111;
  border: 1px solid #333;
  border-radius: 6px;
  color: #6583bc;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}
.work-detail-link:hover {
  background: #1a1a1a;
  border-color: #6583bc;
  transform: translateY(-2px);
}
.work-detail-link .material-icons {
  font-size: 18px;
}

@media (max-width: 768px) {
  .work-detail-title {
    font-size: 2rem;
  }
  .work-detail-meta-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .work-detail-image {
    position: relative;
    top: 0;
  }
}
.favorite-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  background: #111;
  border: 1px solid #333;
  border-radius: 6px;
  color: #888;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  font-size: 0.9rem;
}
.favorite-btn:hover {
  background: #1a1a1a;
  border-color: #e74c3c;
  color: #e74c3c;
  transform: translateY(-2px);
}
.favorite-btn.favorited {
  background: rgba(231, 76, 60, 0.1);
  border-color: #e74c3c;
  color: #e74c3c;
}
.favorite-btn.favorited .favorite-icon {
  animation: heartbeat 0.3s ease;
}
.favorite-btn.loading {
  opacity: 0.7;
  pointer-events: none;
}
.favorite-btn .favorite-icon {
  font-size: 20px;
}
.favorite-btn .favorite-count {
  font-weight: 500;
  min-width: 1ch;
}

@keyframes heartbeat {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}
.favorites-page {
  max-width: 1400px;
  margin: 0 auto;
}

.favorites-header {
  text-align: center;
  margin-bottom: 40px;
}
.favorites-header h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 2rem;
  margin: 0 0 8px;
}
.favorites-header h1 .material-icons {
  font-size: 32px;
  color: #e74c3c;
}

.favorites-subtitle {
  color: #888;
  font-size: 1rem;
  margin: 0;
}

.favorites-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  text-align: center;
}
.favorites-empty .material-icons {
  font-size: 64px;
  color: #333;
  margin-bottom: 16px;
}
.favorites-empty p {
  color: #888;
  font-size: 1.1rem;
  margin: 0 0 8px;
}
.favorites-empty .favorites-empty-hint {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 24px;
}

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

.work-detail-share {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #222;
  margin-top: 16px;
}

.work-detail-share-label {
  color: #888;
  font-size: 0.9rem;
}

.work-detail-share-buttons {
  display: flex;
  gap: 8px;
}

.share-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 50%;
  color: #888;
  cursor: pointer;
  transition: all 0.2s ease;
}
.share-btn:hover {
  background: #222;
  border-color: #6583bc;
  color: #6583bc;
  transform: translateY(-2px);
}
.share-btn .material-icons {
  font-size: 18px;
}
.share-btn.share-btn-copy.copied {
  background: rgba(101, 131, 188, 0.2);
  border-color: #6583bc;
  color: #6583bc;
}

.work-related {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #333;
}

.work-related-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  margin: 0 0 24px;
}
.work-related-title .material-icons {
  font-size: 28px;
  color: #6583bc;
}

.work-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.work-related-item {
  display: flex;
  flex-direction: column;
  background: #111;
  border: 1px solid #333;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
}
.work-related-item:hover {
  border-color: #6583bc;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
.work-related-item:hover .work-related-image img {
  transform: scale(1.05);
}

.work-related-image {
  aspect-ratio: 1;
  overflow: hidden;
  background: #0a0a0a;
}
.work-related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.work-related-info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.work-related-item-title {
  color: #fff;
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.3;
}

.work-related-item-artist {
  color: #888;
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .work-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.work-comments {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #333;
}

.work-comments-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  margin: 0 0 24px;
  text-align: left;
}
.work-comments-title .material-icons {
  font-size: 28px;
  color: #6583bc;
}

.work-comments-success {
  padding: 12px 16px;
  margin-bottom: 20px;
  background: rgba(101, 131, 188, 0.1);
  border: 1px solid rgba(101, 131, 188, 0.3);
  border-radius: 6px;
  color: #6583bc;
  font-size: 0.9rem;
}

.work-comment-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: #111;
  border: 1px solid #333;
  border-radius: 8px;
  margin-bottom: 32px;
}

.work-comment-form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.work-comment-form-field label {
  color: #ccc;
  font-size: 0.9rem;
}
.work-comment-form-field input, .work-comment-form-field textarea {
  padding: 12px 16px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 6px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}
.work-comment-form-field input::placeholder, .work-comment-form-field textarea::placeholder {
  color: #666;
}
.work-comment-form-field input:focus, .work-comment-form-field textarea:focus {
  outline: none;
  border-color: #6583bc;
}
.work-comment-form-field textarea {
  resize: vertical;
  min-height: 100px;
}

.work-comment-form-error {
  color: #dc3545;
  font-size: 0.85rem;
}

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

.work-comment {
  padding: 20px;
  background: #111;
  border: 1px solid #333;
  border-radius: 8px;
}

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

.work-comment-author {
  font-weight: 600;
  color: #fff;
}

.work-comment-date {
  color: #777;
  font-size: 0.85rem;
}

.work-comment-delete-form {
  margin-left: auto;
}

.work-comment-delete {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  background: transparent;
  border: none;
  color: #666;
  cursor: pointer;
  transition: color 0.2s ease;
}
.work-comment-delete:hover {
  color: #dc3545;
}
.work-comment-delete .material-icons {
  font-size: 18px;
}

.work-comment-content {
  color: #ccc;
  line-height: 1.6;
  white-space: pre-wrap;
}

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

.comment-vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: transparent;
  border: 1px solid #333;
  border-radius: 16px;
  color: #888;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}
.comment-vote-btn:hover {
  background: #1a1a1a;
  border-color: #6583bc;
  color: #6583bc;
}
.comment-vote-btn.voted {
  background: rgba(101, 131, 188, 0.1);
  border-color: #6583bc;
  color: #6583bc;
}
.comment-vote-btn.loading {
  opacity: 0.6;
  pointer-events: none;
}
.comment-vote-btn .material-icons {
  font-size: 16px;
}
.comment-vote-btn .comment-vote-count {
  font-weight: 500;
  min-width: 0.5ch;
}

.work-comments-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  text-align: center;
}
.work-comments-empty .material-icons {
  font-size: 48px;
  color: #444;
  margin-bottom: 12px;
}
.work-comments-empty p {
  color: #777;
  margin: 0;
}

.work-comment-reply-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: transparent;
  border: none;
  color: #777;
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: color 0.2s ease;
}
.work-comment-reply-btn:hover {
  color: #6583bc;
}
.work-comment-reply-btn .material-icons {
  font-size: 16px;
}

.work-comment-reply-form {
  margin-top: 16px;
  padding: 16px;
  background: #0a0a0a;
  border-radius: 6px;
}
.work-comment-reply-form .work-comment-form-field {
  margin-bottom: 12px;
}
.work-comment-reply-form .work-comment-form-field input, .work-comment-reply-form .work-comment-form-field textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 0.9rem;
}

.work-comment-reply-actions {
  display: flex;
  gap: 8px;
}

.work-comment-replies {
  margin-top: 16px;
  padding-left: 24px;
  border-left: 2px solid #333;
}

.work-comment-reply {
  padding: 16px;
  background: #0a0a0a;
  margin-bottom: 8px;
}
.work-comment-reply:last-child {
  margin-bottom: 0;
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.85rem;
}
.btn-small .material-icons {
  font-size: 16px;
}

.home-hero {
  text-align: center;
  padding: 60px 20px 80px;
  background: linear-gradient(180deg, #111 0%, #000 100%);
  margin: -20px -20px 0;
  border-bottom: 1px solid #333;
}

.home-hero-title {
  font-size: 3rem;
  font-weight: 600;
  margin: 0 0 16px;
  background: linear-gradient(135deg, #fff 0%, #ccc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home-hero-subtitle {
  font-size: 1.2rem;
  color: #999;
  margin: 0 0 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.home-search {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  gap: 12px;
}
.home-search input {
  flex: 1;
  padding: 16px 24px;
  font-size: 1rem;
  border: 1px solid #333;
  border-radius: 8px;
  background: #1a1a1a;
  color: #fff;
  outline: none;
  transition: border-color 0.2s ease;
}
.home-search input:focus {
  border-color: #6583bc;
}
.home-search input::placeholder {
  color: #666;
}
.home-search button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 500;
  background: #6583bc;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.home-search button:hover {
  background: rgb(136.5384615385, 159.6153846154, 203.4615384615);
  transform: translateY(-2px);
}
.home-search button .material-icons {
  font-size: 20px;
}

.home-section {
  padding: 60px 0;
}

.home-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.home-section-header h2 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 600;
  text-align: left;
}

.home-section-link {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #6583bc;
  font-weight: 500;
  transition: gap 0.2s ease;
}
.home-section-link:hover {
  gap: 8px;
}
.home-section-link .material-icons {
  font-size: 18px;
}

.home-featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.home-featured-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  background: #111;
}
.home-featured-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.home-featured-item:hover img {
  transform: scale(1.05);
}

.home-featured-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 16px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.home-featured-title {
  font-weight: 500;
  color: #fff;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-featured-artist {
  font-size: 0.85rem;
  color: #999;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-categories {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin: 0 -20px;
  padding: 40px 20px;
  background: #0a0a0a;
  border-bottom: 1px solid #222;
}

.home-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 16px;
  background: #111;
  border: 1px solid #333;
  border-radius: 12px;
  transition: all 0.3s ease;
}
.home-category:hover {
  border-color: #6583bc;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.home-category .material-icons {
  font-size: 32px;
  color: #6583bc;
  margin-bottom: 12px;
}

.home-category-count {
  font-size: 1.8rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.home-category-title {
  font-size: 1rem;
  font-weight: 500;
  color: #ccc;
  margin-bottom: 8px;
}

.home-category-desc {
  font-size: 0.8rem;
  color: #666;
  line-height: 1.4;
}

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

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

.home-trending-item {
  display: flex;
  flex-direction: column;
  background: #111;
  border: 1px solid #333;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
}
.home-trending-item:hover {
  border-color: #6583bc;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
.home-trending-item:hover .home-trending-image img {
  transform: scale(1.05);
}

.home-trending-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #0a0a0a;
}
.home-trending-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.home-trending-info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.home-trending-title {
  color: #fff;
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.3;
}

.home-trending-artist {
  color: #888;
  font-size: 0.8rem;
}

.home-section-header h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.home-section-header h2 .material-icons {
  color: #6583bc;
}

.home-of-the-day-header {
  display: flex;
  gap: 24px;
  padding: 24px;
  background: #111;
  border: 1px solid #333;
  border-radius: 12px;
  margin-bottom: 24px;
  transition: border-color 0.2s ease;
}
.home-of-the-day-header:hover {
  border-color: #6583bc;
}

.home-of-the-day-image {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.home-of-the-day-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-of-the-day-info {
  flex: 1;
  min-width: 0;
}
.home-of-the-day-info h3 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
}

.home-of-the-day-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #999;
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.home-of-the-day-meta .material-icons {
  font-size: 16px;
}

.home-of-the-day-desc {
  margin: 0;
  color: #999;
  font-size: 0.95rem;
  line-height: 1.5;
}

.home-of-the-day-works {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.home-of-the-day-work {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  background: #111;
}
.home-of-the-day-work img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.home-of-the-day-work:hover img {
  transform: scale(1.05);
}

.home-of-the-day-work-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 12px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
}

.home-of-the-day-work-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-of-the-day-all-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  color: #6583bc;
  font-weight: 500;
  transition: gap 0.2s ease;
}
.home-of-the-day-all-link:hover {
  gap: 10px;
}
.home-of-the-day-all-link .material-icons {
  font-size: 18px;
}

.home-map-section {
  background: linear-gradient(135deg, #111 0%, #1a1a2e 100%);
  margin: 0 -20px;
  padding: 80px 40px;
  text-align: center;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
}

.home-map-content {
  max-width: 600px;
  margin: 0 auto;
}
.home-map-content h2 {
  margin: 0 0 16px;
  font-size: 2rem;
  text-align: center;
}
.home-map-content p {
  color: #999;
  font-size: 1.1rem;
  margin: 0 0 32px;
  line-height: 1.6;
}

.home-map-icon {
  font-size: 64px;
  color: #6583bc;
  margin-bottom: 16px;
}

.home-map-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: #6583bc;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.home-map-button:hover {
  background: rgb(136.5384615385, 159.6153846154, 203.4615384615);
  transform: translateY(-2px);
}
.home-map-button .material-icons {
  font-size: 20px;
}

.home-lists-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  margin: 0 -20px;
  padding: 80px 40px;
  text-align: center;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
}

.home-lists-content {
  max-width: 600px;
  margin: 0 auto;
}
.home-lists-content h2 {
  margin: 0 0 16px;
  font-size: 2rem;
  text-align: center;
}
.home-lists-content p {
  color: #bbb;
  font-size: 1.1rem;
  margin: 0 0 32px;
  line-height: 1.6;
}

.home-lists-icon {
  font-size: 64px;
  color: #6583bc;
  margin-bottom: 16px;
}

.home-lists-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.home-lists-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.home-lists-button .material-icons {
  font-size: 20px;
}
.home-lists-button:hover {
  transform: translateY(-2px);
}

.home-lists-button-primary {
  background: #6583bc;
  color: #fff;
}
.home-lists-button-primary:hover {
  background: rgb(136.5384615385, 159.6153846154, 203.4615384615);
}

.home-lists-button-secondary {
  background: transparent;
  border: 1px solid #555;
  color: #ccc;
}
.home-lists-button-secondary:hover {
  border-color: #6583bc;
  color: #fff;
}

@media (max-width: 1100px) {
  .home-categories {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 968px) {
  .home-hero-title {
    font-size: 2.2rem;
  }
  .home-search {
    flex-direction: column;
  }
  .home-search button {
    justify-content: center;
  }
  .home-featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-categories {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-of-the-day-works {
    grid-template-columns: repeat(4, 1fr);
  }
  .home-entity-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .home-hero {
    padding: 40px 20px 60px;
  }
  .home-hero-title {
    font-size: 1.8rem;
  }
  .home-hero-subtitle {
    font-size: 1rem;
  }
  .home-section {
    padding: 40px 0;
  }
  .home-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .home-section-header h2 {
    font-size: 1.5rem;
  }
  .home-featured-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .home-categories {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .home-category {
    padding: 24px 12px;
  }
  .home-category .material-icons {
    font-size: 28px;
  }
  .home-category-count {
    font-size: 1.4rem;
  }
  .home-of-the-day-header {
    padding: 16px;
    gap: 16px;
  }
  .home-of-the-day-image {
    width: 80px;
    height: 80px;
  }
  .home-of-the-day-info h3 {
    font-size: 1.2rem;
  }
  .home-of-the-day-desc {
    display: none;
  }
  .home-of-the-day-works {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .home-of-the-day-work-title {
    font-size: 0.8rem;
  }
  .home-entity-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-map-section,
  .home-lists-section {
    padding: 60px 20px;
  }
  .home-map-content h2,
  .home-lists-content h2 {
    font-size: 1.5rem;
  }
}
@media (max-width: 480px) {
  .home-lists-buttons {
    flex-direction: column;
  }
  .home-lists-button {
    justify-content: center;
  }
  .home-categories {
    grid-template-columns: 1fr;
  }
  .home-of-the-day-works {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .home-entity-grid {
    grid-template-columns: 1fr;
  }
}
.faq-page h1 {
  margin-bottom: 32px;
}

.faq-item {
  margin-bottom: 40px;
  padding: 24px;
  background: #111;
  border: 1px solid #333;
  border-radius: 8px;
}
.faq-item h2 {
  margin: 0 0 16px 0;
  font-size: 1.25rem;
  color: #fff;
}
.faq-item p {
  margin: 0 0 12px 0;
  color: #ccc;
  line-height: 1.7;
}
.faq-item p:last-child {
  margin-bottom: 0;
}

/* Artist Header */
.entity-header {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 40px;
  padding: 24px;
  background: #111;
  border: 1px solid #333;
  border-radius: 12px;
}
.entity-header:not(:has(.entity-header-image)) {
  grid-template-columns: 1fr;
}
@media (max-width: 968px) {
  .entity-header {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 20px;
  }
}
@media (max-width: 480px) {
  .entity-header {
    padding: 16px;
    gap: 16px;
    margin-bottom: 24px;
    border-radius: 8px;
  }
}

.entity-header-image {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 8px;
  overflow: hidden;
  background: #0a0a0a;
  border: 1px solid #333;
}
.entity-header-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 968px) {
  .entity-header-image {
    max-width: 200px;
    margin: 0 auto;
  }
}
@media (max-width: 480px) {
  .entity-header-image {
    max-width: 150px;
  }
}

.entity-header-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (max-width: 968px) {
  .entity-header-content {
    text-align: center;
  }
}
@media (max-width: 480px) {
  .entity-header-content {
    gap: 12px;
  }
}

.entity-header-title {
  font-size: 2.2rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.2;
  color: #fff;
}
@media (max-width: 768px) {
  .entity-header-title {
    font-size: 1.8rem;
  }
}
@media (max-width: 480px) {
  .entity-header-title {
    font-size: 1.5rem;
  }
}

.entity-header-subtitle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2rem;
  color: #999;
  font-weight: 300;
}
@media (max-width: 968px) {
  .entity-header-subtitle {
    justify-content: center;
  }
}
@media (max-width: 480px) {
  .entity-header-subtitle {
    font-size: 1rem;
  }
}
.entity-header-subtitle .separator {
  color: #555;
}
.entity-header-subtitle .material-icons {
  font-size: 1.2rem;
  color: #666;
}

.entity-header-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #ccc;
  margin: 0;
}
@media (max-width: 480px) {
  .entity-header-description {
    font-size: 0.9rem;
    line-height: 1.5;
  }
}

.entity-header-summary {
  padding: 16px;
  background: #0a0a0a;
  border-left: 3px solid #6583bc;
  border-radius: 6px;
}
@media (max-width: 968px) {
  .entity-header-summary {
    text-align: left;
  }
}
@media (max-width: 480px) {
  .entity-header-summary {
    padding: 12px;
  }
}
.entity-header-summary p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #ddd;
}

.work-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 20px;
  background: #111;
  border: 1px solid #333;
  border-radius: 8px;
  margin-bottom: 20px;
}

.work-filter-bar-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: flex-start;
}

.work-filter-bar-sort {
  display: flex;
  align-items: center;
  gap: 10px;
}
.work-filter-bar-sort label {
  color: #999;
  font-size: 0.9rem;
  white-space: nowrap;
}
.work-filter-bar-sort select {
  padding: 10px 14px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 6px;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  min-width: 120px;
}
.work-filter-bar-sort select:focus {
  outline: none;
  border-color: #6583bc;
}

.work-filter-bar-search input {
  padding: 10px 14px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 6px;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  min-width: 200px;
}
.work-filter-bar-search input::placeholder {
  color: #666;
}
.work-filter-bar-search input:focus {
  outline: none;
  border-color: #6583bc;
}

.work-filter-bar-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 1;
}

.work-filter-bar-checkbox {
  display: flex;
  align-items: center;
}
.work-filter-bar-checkbox label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ccc;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
}
.work-filter-bar-checkbox input[type=checkbox] {
  width: 18px;
  height: 18px;
  accent-color: #6583bc;
  cursor: pointer;
}

.filter-select {
  padding: 10px 14px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 6px;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  min-width: 150px;
  max-width: 250px;
}
.filter-select:focus {
  outline: none;
  border-color: #6583bc;
}
.filter-select option {
  background: #1a1a1a;
  color: #fff;
}

@media (max-width: 768px) {
  .work-filter-bar-controls {
    flex-direction: column;
  }
  .work-filter-bar-search {
    width: 100%;
  }
  .work-filter-bar-search input {
    width: 100%;
    min-width: 100%;
  }
  .work-filter-bar-filters {
    flex-direction: column;
    width: 100%;
  }
  .filter-select {
    min-width: 100%;
    max-width: 100%;
  }
  .work-filter-bar-sort {
    width: 100%;
  }
  .work-filter-bar-sort select {
    flex: 1;
  }
  .work-filter-bar-checkbox {
    width: 100%;
  }
}
.auth-page {
  display: flex;
  justify-content: center;
  padding: 40px 20px;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  padding: 32px;
  background: #111;
  border: 1px solid #333;
  border-radius: 12px;
}
.auth-card h1 {
  margin: 0 0 24px 0;
  font-size: 1.75rem;
  text-align: center;
}

.auth-errors {
  padding: 12px 16px;
  margin-bottom: 20px;
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.3);
  border-radius: 6px;
}
.auth-errors p {
  margin: 0;
  color: #dc3545;
  font-size: 0.9rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.auth-field label {
  color: #ccc;
  font-size: 0.9rem;
}
.auth-field input[type=text],
.auth-field input[type=email],
.auth-field input[type=password] {
  padding: 12px 16px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 6px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}
.auth-field input[type=text]:focus,
.auth-field input[type=email]:focus,
.auth-field input[type=password]:focus {
  outline: none;
  border-color: #6583bc;
}

.auth-field-checkbox {
  flex-direction: row;
  align-items: center;
}
.auth-field-checkbox input[type=checkbox] {
  width: 18px;
  height: 18px;
  accent-color: #6583bc;
  cursor: pointer;
}
.auth-field-checkbox label {
  cursor: pointer;
}

.auth-button {
  padding: 14px 24px;
  background: #6583bc;
  border: none;
  border-radius: 6px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.auth-button:hover {
  background: rgb(136.5384615385, 159.6153846154, 203.4615384615);
  transform: translateY(-1px);
}
.auth-button:active {
  transform: translateY(0);
}

.auth-links {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #333;
  text-align: center;
}
.auth-links p {
  margin: 0;
  color: #999;
  font-size: 0.9rem;
}
.auth-links a {
  color: #6583bc;
  text-decoration: none;
}
.auth-links a:hover {
  text-decoration: underline;
}

.lists-page {
  max-width: 1200px;
}

.lists-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.lists-header h1 {
  margin: 0;
}

.lists-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: #111;
  border: 1px solid #333;
  border-radius: 12px;
  text-align: center;
}
.lists-empty .material-icons {
  font-size: 64px;
  color: #444;
  margin-bottom: 16px;
}
.lists-empty p {
  color: #999;
  margin: 0 0 20px 0;
}

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

.list-card {
  display: flex;
  flex-direction: column;
  background: #111;
  border: 1px solid #333;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
  overflow: hidden;
}
.list-card:hover {
  border-color: #555;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.list-card-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  aspect-ratio: 1;
  background: #0a0a0a;
}

.list-card-preview-item {
  overflow: hidden;
}
.list-card-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.list-card-preview-empty {
  background: #1a1a1a;
}

.list-card-preview-placeholder {
  grid-column: 1/-1;
  grid-row: 1/-1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a1a;
}
.list-card-preview-placeholder .material-icons {
  font-size: 48px;
  color: #333;
}

.list-card-content {
  padding: 20px;
}

.list-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.list-card-title {
  margin: 0;
  font-size: 1.25rem;
  color: #fff;
}

.list-card-badge, .list-badge {
  padding: 4px 10px;
  background: rgba(101, 131, 188, 0.2);
  border-radius: 4px;
  font-size: 0.75rem;
  color: #6583bc;
  white-space: nowrap;
}

.list-badge-private {
  background: rgba(102, 102, 102, 0.2);
  color: #999;
}

.list-card-description {
  margin: 0 0 12px 0;
  color: #999;
  font-size: 0.9rem;
  line-height: 1.5;
}

.list-card-meta {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: #666;
}

.list-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  padding: 24px;
  background: #111;
  border: 1px solid #333;
  border-radius: 12px;
}
@media (max-width: 768px) {
  .list-detail-header {
    flex-direction: column;
    gap: 20px;
  }
}

.list-detail-info h1 {
  margin: 0 0 8px 0;
}

.list-detail-description {
  margin: 0 0 12px 0;
  color: #ccc;
}

.list-detail-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 0.9rem;
  color: #999;
}

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

.list-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}
.list-empty .material-icons {
  font-size: 64px;
  color: #444;
  margin-bottom: 16px;
}
.list-empty p {
  color: #999;
  margin: 0;
}
.list-empty .list-empty-hint {
  margin-top: 8px;
  font-size: 0.9rem;
}

.work-list-item-wrapper {
  position: relative;
}
.work-list-item-wrapper .list-item {
  height: 100%;
}

.remove-work-form {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
}

.remove-work-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid #444;
  border-radius: 50%;
  color: #999;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0;
}
.work-list-item-wrapper:hover .remove-work-btn {
  opacity: 1;
}
.remove-work-btn:hover {
  background: #dc3545;
  border-color: #dc3545;
  color: #fff;
}
.remove-work-btn .material-icons {
  font-size: 18px;
}

.list-form-page {
  max-width: 500px;
}
.list-form-page h1 {
  margin-bottom: 24px;
}

.list-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.list-form textarea {
  padding: 12px 16px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 6px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
  min-height: 80px;
}
.list-form textarea:focus {
  outline: none;
  border-color: #6583bc;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #6583bc;
  border: none;
  border-radius: 6px;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary:hover {
  background: rgb(136.5384615385, 159.6153846154, 203.4615384615);
  transform: translateY(-1px);
}
.btn-primary .material-icons {
  font-size: 20px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: transparent;
  border: 1px solid #333;
  border-radius: 6px;
  color: #ccc;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-secondary:hover {
  border-color: #555;
  color: #fff;
}
.btn-secondary .material-icons {
  font-size: 20px;
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: transparent;
  border: 1px solid #dc3545;
  border-radius: 6px;
  color: #dc3545;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-danger:hover {
  background: #dc3545;
  color: #fff;
}
.btn-danger .material-icons {
  font-size: 20px;
}

.inline-form {
  display: inline;
}

.add-to-list-dropdown {
  position: relative;
}

.add-to-list-btn {
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
}
.add-to-list-btn.has-lists {
  border-color: #6583bc;
  color: #6583bc;
}

.add-to-list-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  min-width: 220px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 100;
  overflow: hidden;
}
.add-to-list-menu.open {
  display: block;
}

.add-to-list-loading,
.add-to-list-error,
.add-to-list-empty {
  padding: 16px;
  text-align: center;
  color: #999;
  font-size: 0.9rem;
}

.add-to-list-empty p {
  margin: 0 0 12px 0;
}

.add-to-list-create {
  display: inline-block;
  padding: 8px 16px;
  background: #6583bc;
  border-radius: 4px;
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
}
.add-to-list-create:hover {
  background: rgb(136.5384615385, 159.6153846154, 203.4615384615);
}

.add-to-list-login-prompt {
  padding: 20px;
  text-align: center;
}
.add-to-list-login-prompt .material-icons {
  font-size: 32px;
  color: #6583bc;
  margin-bottom: 8px;
}
.add-to-list-login-prompt p {
  margin: 0 0 16px 0;
  color: #ccc;
  font-size: 0.9rem;
  line-height: 1.4;
}

.add-to-list-login-btn {
  display: block;
  padding: 10px 20px;
  background: #6583bc;
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background 0.2s ease;
}
.add-to-list-login-btn:hover {
  background: rgb(136.5384615385, 159.6153846154, 203.4615384615);
}

.add-to-list-register-hint {
  display: block;
  margin-top: 12px;
  font-size: 0.8rem;
  color: #777;
}
.add-to-list-register-hint a {
  color: #6583bc;
  text-decoration: none;
}
.add-to-list-register-hint a:hover {
  text-decoration: underline;
}

.add-to-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.add-to-list-item:hover {
  background: #222;
}
.add-to-list-item .material-icons {
  font-size: 20px;
  color: #666;
}
.add-to-list-item.in-list .material-icons {
  color: #6583bc;
}
.add-to-list-item .list-name {
  color: #ccc;
  font-size: 0.9rem;
}

.add-to-list-create-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid #333;
  color: #6583bc;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.15s ease;
}
.add-to-list-create-link:hover {
  background: #222;
}
.add-to-list-create-link .material-icons {
  font-size: 18px;
}

.follow-btn {
  cursor: pointer;
}
.follow-btn.following {
  background: rgba(101, 131, 188, 0.1);
  border-color: #6583bc;
  color: #6583bc;
}
.follow-btn.loading {
  opacity: 0.7;
  pointer-events: none;
}

.following-page {
  max-width: 1400px;
  margin: 0 auto;
}

.following-header {
  text-align: center;
  margin-bottom: 40px;
}
.following-header h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 2rem;
  margin: 0 0 8px;
}
.following-header h1 .material-icons {
  font-size: 32px;
  color: #6583bc;
}

.following-subtitle {
  color: #888;
  font-size: 1rem;
  margin: 0;
}

.following-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  text-align: center;
}
.following-empty .material-icons {
  font-size: 64px;
  color: #333;
  margin-bottom: 16px;
}
.following-empty p {
  color: #888;
  font-size: 1.1rem;
  margin: 0 0 8px;
}
.following-empty .following-empty-hint {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 24px;
}

.following-section {
  margin-bottom: 48px;
}
.following-section h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  margin: 0 0 24px;
  text-align: left;
}
.following-section h2 .material-icons {
  font-size: 24px;
  color: #6583bc;
}
.following-section .following-count {
  font-size: 0.9rem;
  color: #888;
  font-weight: 400;
  margin-left: 4px;
}

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

.entity-header-simple {
  grid-template-columns: 1fr;
  padding: 20px 24px;
  margin-bottom: 24px;
}
.entity-header-simple .entity-header-content {
  text-align: left;
}
@media (max-width: 600px) {
  .entity-header-simple .entity-header-content {
    text-align: center;
  }
}
.entity-header-simple .entity-header-title {
  font-size: 1.8rem;
  text-align: left;
  margin-bottom: 0;
}
@media (max-width: 600px) {
  .entity-header-simple .entity-header-title {
    font-size: 1.4rem;
    text-align: center;
  }
}
.entity-header-simple .entity-actions {
  margin-bottom: 0;
  margin-top: 16px;
}
@media (max-width: 600px) {
  .entity-header-simple .entity-actions {
    justify-content: center;
  }
}
@media (max-width: 480px) {
  .entity-header-simple {
    padding: 16px;
  }
}

.games-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.games-hero {
  text-align: center;
  padding: 40px 20px 50px;
}
.games-hero h1 {
  font-size: 2.5rem;
  margin: 0 0 12px;
  color: #fff;
}

.games-subtitle {
  color: #888;
  font-size: 1.1rem;
  margin: 0;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 600px) {
  .games-grid {
    grid-template-columns: 1fr;
  }
}

.game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 24px;
  background: #111;
  border: 1px solid #333;
  border-radius: 12px;
  transition: all 0.3s ease;
  text-decoration: none;
}
.game-card:hover {
  border-color: #6583bc;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.game-card:hover .game-card-play {
  gap: 12px;
}

.game-card-icon {
  font-size: 48px;
  color: #6583bc;
  margin-bottom: 16px;
}

.game-card-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 10px;
}

.game-card-description {
  color: #888;
  font-size: 0.9rem;
  margin: 0 0 20px;
  line-height: 1.5;
}

.game-card-play {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #6583bc;
  font-weight: 500;
  transition: gap 0.2s ease;
}
.game-card-play .material-icons {
  font-size: 18px;
}

.game-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.game-header {
  text-align: center;
  margin-bottom: 28px;
}
.game-header h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 1.8rem;
  margin: 16px 0 10px;
  color: #fff;
}
.game-header h1 .material-icons {
  font-size: 32px;
  color: #6583bc;
}

.game-back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #777;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}
.game-back-link:hover {
  color: #6583bc;
}
.game-back-link .material-icons {
  font-size: 16px;
}

.game-instructions {
  color: #888;
  font-size: 1rem;
  margin: 0;
}

.game-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 14px 18px;
  background: #111;
  border: 1px solid #333;
  border-radius: 8px;
  margin-bottom: 24px;
}

.game-difficulty {
  display: flex;
  align-items: center;
  gap: 10px;
}
.game-difficulty label {
  color: #888;
  font-size: 0.85rem;
}
.game-difficulty select {
  padding: 8px 14px;
  background: #1a1a1a;
  border: 1px solid #444;
  border-radius: 6px;
  color: #fff;
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}
.game-difficulty select:focus {
  outline: none;
  border-color: #6583bc;
}

.game-score-display {
  display: flex;
  gap: 20px;
}

.game-score-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.game-score-label {
  color: #666;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.game-score-value {
  color: #6583bc;
  font-size: 1.3rem;
  font-weight: 600;
}

.game-board {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.artist-match-board {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 700px) {
  .artist-match-board {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 480px) {
  .artist-match-board {
    grid-template-columns: repeat(2, 1fr);
  }
}

.odd-one-out-board {
  grid-template-columns: repeat(2, 1fr);
  max-width: 550px;
  margin: 0 auto 24px;
}

.movement-match-board {
  grid-template-columns: repeat(2, 1fr);
  max-width: 650px;
  margin: 0 auto 24px;
}
@media (max-width: 500px) {
  .movement-match-board {
    grid-template-columns: 1fr;
  }
}

.museum-detective-board {
  grid-template-columns: repeat(2, 1fr);
  max-width: 600px;
  margin: 0 auto 24px;
  gap: 12px;
}
@media (max-width: 500px) {
  .museum-detective-board {
    grid-template-columns: 1fr;
  }
}

.game-work-card {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  background: #0a0a0a;
  border: 3px solid #333;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  text-align: left;
}
.game-work-card:hover {
  border-color: #555;
  transform: scale(1.02);
}
.game-work-card.selected {
  border-color: #6583bc;
  box-shadow: 0 0 0 3px rgba(101, 131, 188, 0.3);
}
.game-work-card.correct {
  border-color: #27ae60;
  box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.3);
}
.game-work-card.correct::after {
  content: "check_circle";
  font-family: "Material Icons";
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 28px;
  color: #27ae60;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.game-work-card.incorrect {
  border-color: #e74c3c;
  opacity: 0.7;
}
.game-work-card.incorrect::after {
  content: "cancel";
  font-family: "Material Icons";
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 28px;
  color: #e74c3c;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.game-work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-work-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 10px 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  color: #fff;
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-work-image {
  width: 100%;
  height: 100%;
  position: relative;
}
.game-work-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-zoom-btn {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
  z-index: 5;
}
.game-zoom-btn .material-icons {
  font-size: 18px;
}
.game-zoom-btn:hover {
  background: rgba(0, 0, 0, 0.9);
}

.game-work-card:hover .game-zoom-btn,
.featured-work-image:hover .game-zoom-btn {
  opacity: 1;
}

.featured-work-image {
  position: relative;
  display: inline-block;
}
.featured-work-image .game-zoom-btn {
  top: 12px;
  left: 12px;
  width: 40px;
  height: 40px;
}
.featured-work-image .game-zoom-btn .material-icons {
  font-size: 22px;
}

.game-museum-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: #111;
  border: 2px solid #333;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}
.game-museum-card:hover {
  border-color: #555;
  background: #1a1a1a;
}
.game-museum-card.selected {
  border-color: #6583bc;
  background: rgba(101, 131, 188, 0.1);
}
.game-museum-card.correct {
  border-color: #27ae60;
  background: rgba(39, 174, 96, 0.1);
}
.game-museum-card.incorrect {
  border-color: #e74c3c;
  opacity: 0.7;
}
.game-museum-card .museum-name {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}
.game-museum-card .museum-location {
  color: #777;
  font-size: 0.85rem;
}

.game-movement-info {
  text-align: center;
  padding: 28px;
  background: #111;
  border: 1px solid #333;
  border-radius: 10px;
  margin-bottom: 24px;
}
.game-movement-info h2 {
  font-size: 1.6rem;
  color: #6583bc;
  margin: 0 0 12px;
}
.game-movement-info p {
  color: #999;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.game-featured-work {
  max-width: 450px;
  margin: 0 auto 28px;
  text-align: center;
}
.game-featured-work img {
  width: 100%;
  max-height: 350px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #333;
  background: #0a0a0a;
}
.game-featured-work .featured-work-info {
  margin-top: 12px;
}
.game-featured-work .featured-work-info h3 {
  color: #fff;
  font-size: 1.1rem;
  margin: 0 0 4px;
}
.game-featured-work .featured-work-info p {
  color: #888;
  font-size: 0.9rem;
  margin: 0;
}

.game-result {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.game-result.visible {
  display: flex;
}

.game-result-content {
  background: #111;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 36px;
  text-align: center;
  max-width: 380px;
  width: 100%;
}
.game-result-content .result-icon {
  font-size: 60px;
  margin-bottom: 12px;
}
.game-result-content .result-icon.correct {
  color: #27ae60;
}
.game-result-content .result-icon.incorrect {
  color: #e74c3c;
}
.game-result-content h3 {
  font-size: 1.4rem;
  margin: 0 0 10px;
  color: #fff;
}
.game-result-content p {
  color: #999;
  margin: 0 0 20px;
  font-size: 0.95rem;
  line-height: 1.5;
}
.game-result-content .result-link {
  display: block;
  margin-bottom: 20px;
  color: #6583bc;
  font-size: 0.9rem;
}
.game-result-content .result-link:hover {
  text-decoration: underline;
}
.game-result-content .result-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.game-result-content .result-buttons button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.game-result-content .result-buttons button .material-icons {
  font-size: 18px;
}

.game-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.game-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px;
  color: #777;
  font-size: 1rem;
  grid-column: 1/-1;
}
.game-loading .material-icons {
  font-size: 36px;
  margin-bottom: 10px;
  animation: spin 1s linear infinite;
}

.game-error {
  padding: 40px;
  text-align: center;
  color: #e74c3c;
  grid-column: 1/-1;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 600px) {
  .game-page {
    padding: 12px;
  }
  .game-header {
    margin-bottom: 16px;
  }
  .game-header h1 {
    font-size: 1.4rem;
    margin: 10px 0 6px;
  }
  .game-header h1 .material-icons {
    font-size: 26px;
  }
  .game-instructions {
    font-size: 0.9rem;
  }
  .game-controls {
    padding: 10px 12px;
    margin-bottom: 16px;
    gap: 10px;
  }
  .game-difficulty {
    gap: 6px;
  }
  .game-difficulty label {
    font-size: 0.8rem;
  }
  .game-difficulty select {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
  .game-score-display {
    gap: 14px;
  }
  .game-score-value {
    font-size: 1.1rem;
  }
  .game-board {
    gap: 8px;
    margin-bottom: 16px;
  }
  .artist-match-board {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .odd-one-out-board {
    max-width: 100%;
  }
  .movement-match-board {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
  .museum-detective-board {
    max-width: 100%;
  }
  .game-work-card {
    border-width: 2px;
  }
  .game-work-card.correct::after, .game-work-card.incorrect::after {
    top: 4px;
    right: 4px;
    font-size: 22px;
    width: 28px;
    height: 28px;
  }
  .game-work-label {
    font-size: 0.7rem;
    padding: 16px 6px 6px;
  }
  .game-zoom-btn {
    width: 28px;
    height: 28px;
    top: 4px;
    left: 4px;
    opacity: 0.7;
  }
  .game-zoom-btn .material-icons {
    font-size: 16px;
  }
  .game-featured-work {
    max-width: 100%;
    margin-bottom: 20px;
  }
  .game-featured-work img {
    max-height: 280px;
  }
  .game-featured-work .featured-work-info h3 {
    font-size: 1rem;
  }
  .featured-work-image .game-zoom-btn {
    width: 32px;
    height: 32px;
    top: 8px;
    left: 8px;
    opacity: 0.7;
  }
  .featured-work-image .game-zoom-btn .material-icons {
    font-size: 18px;
  }
  .game-movement-info {
    padding: 14px;
    margin-bottom: 16px;
  }
  .game-movement-info h2 {
    font-size: 1.2rem;
  }
  .game-movement-info p {
    font-size: 0.85rem;
  }
  .game-museum-card {
    padding: 14px;
  }
  .game-museum-card .museum-name {
    font-size: 0.95rem;
  }
  .game-museum-card .museum-location {
    font-size: 0.8rem;
  }
  .game-actions {
    gap: 8px;
    flex-wrap: wrap;
  }
  .game-actions button {
    padding: 10px 14px;
    font-size: 0.85rem;
  }
  .game-actions button .material-icons {
    font-size: 18px;
  }
  .game-result-content {
    padding: 24px 18px;
    max-width: 320px;
  }
  .game-result-content .result-icon {
    font-size: 48px;
  }
  .game-result-content h3 {
    font-size: 1.2rem;
  }
  .game-result-content p {
    font-size: 0.9rem;
  }
  .game-result-content .result-buttons {
    gap: 8px;
  }
  .game-result-content .result-buttons button {
    padding: 10px 14px;
    font-size: 0.85rem;
  }
}
@media (max-width: 600px) {
  .games-hero h1 {
    font-size: 2rem;
  }
  .game-header h1 {
    font-size: 1.5rem;
  }
  .game-header h1 .material-icons {
    font-size: 26px;
  }
  .game-controls {
    flex-direction: column;
    text-align: center;
  }
}

/*# sourceMappingURL=main.css.map */
