:root {
  --color-bg: #f5f5f5;
  --color-text: #222;
  --color-grey: grey;
  --color-accent-red: #DC143C;
}

body {
  font-family: sans-serif;
  padding: 2rem;
  background: var(--color-bg);
}
h1 {
  text-align: center;
  margin-bottom: 0.2rem;
}
h2 {
  text-align: center;
  color: var(--color-grey);
  font-weight: normal;
  margin: 0 0 2rem 0;
}

.poster-title-link {
  display: inline-block;
  font-size: 1.6rem;
  font-weight: bold;
  margin: 0.7rem 0 0.2rem 0;
  color: var(--color-text);
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}
.poster-title-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--color-accent-red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.poster:hover .poster-title-link {
  color: var(--color-accent-red);
}
.poster:hover .poster-title-link::after {
  transform: scaleX(1);
  transform-origin: left;
}

.poster {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  padding: 1rem;
  width: 230px;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}
.poster:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
  transform: translateY(-4px) scale(1.03);
}
.poster-thumbnail {
  width: 100%;
  height: 240px;
  object-fit: contain;
  border-radius: 4px;
  margin: 0.5rem 0;
  transition: box-shadow 0.2s, filter 0.2s;
}
.poster:hover .poster-thumbnail {
  box-shadow: 0 4px 16px rgba(0,122,204,0.12);
  filter: brightness(1.05) saturate(1.05);
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.poster a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: bold;
  display: block;
  margin-top: 0.5rem;
}
.profile-link {
  color: var(--color-accent-red);
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.profile-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--color-accent-red);
  transition: width 0.3s ease;
}
.profile-link:hover {
  color: #b01030;
}
.profile-link:hover::after {
  width: 100%;
}
