*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg-white: #ffffff;
  --bg-light-gray: #f7f7f7;
  --text-dark: #37352f;
  --text-secondary: #787774;
  --accent-color: #6565f0;
  --border-color: #e5e5e5;
  --spacing: 30px;
}

body.notion-theme {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
    "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
    sans-serif;
  background-color: var(--bg-light-gray);
  color: var(--text-dark);
  margin: 0;
  line-height: 1.6;
}

.page-container {
  display: flex;
  min-height: 100vh;
  margin: 0 auto;
  max-width: 1600px;
}

.sidebar {
  flex: 0 0 30%;

  min-width: 300px;

  z-index: 10;
  background-color: var(--bg-white);
  border-right: 1px solid var(--border-color);
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.03);

  padding: var(--spacing);
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-header {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
}

.logo-text a {
  font-size: 40px;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
  margin-right: 10px;
}

.logo-icon {
  height: 150px;
  opacity: 0.8;
  max-width: 40%;
}

.main-nav ul {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
}

.main-nav ul li a {
  display: block;
  padding: 8px 10px;
  text-decoration: none;
  color: var(--text-dark);
  border-radius: 4px;
  transition: background-color 0.2s;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
  background-color: #ededed;
  font-weight: 600;
  color: var(--text-dark);
}

.community-feed h4 {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-top: 0;
}

.feed-list {
  list-style: none;
  padding: 0;
}

.feed-list li {
  font-size: 0.95rem;
  padding: 6px 0;
  border-bottom: 1px dashed #eee;
  color: var(--text-secondary);
}

.feed-list li a {
  color: var(--text-dark);
  text-decoration: none;
  display: block;
}

.feed-list li a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

.feed-list li.notice-feed a {
  color: #cc3333;
  font-weight: 600;
}

.feed-link a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  margin-top: 10px;
  display: block;
}

.audio-player {
  width: 100%;
  margin-bottom: 20px;
}

.responsive-video {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.content-main {
  flex: 1 1 70%;

  min-width: 600px;

  padding: var(--spacing) 40px;
  overflow-y: auto;
  background-color: var(--bg-light-gray);
}

.content-section {
  background-color: var(--bg-white);
  padding: var(--spacing);
  border-radius: 8px;
  margin-bottom: var(--spacing);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.content-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 15px;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 10px;
}

footer {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.8rem;
  padding-top: 20px;
}

@media (max-width: 992px) {
  .page-container {
    display: block;
  }

  .sidebar,
  .content-main {
    width: 100%;
    min-width: auto;
    border-right: none;
    padding: 0;
  }

  .sidebar {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
  }

  .content-main {
    padding-top: 10px;
  }

  .community-feed {
    margin-top: 20px;
  }
}

.carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 20px;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 300%;
}

.carousel-item {
  min-width: 33.333%;

  position: relative;

  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  height: 450px;
}

.carousel-image {
  width: auto;
  height: 100%;
  max-height: 400px;
  max-width: 100%;

  display: block;
  object-fit: contain;

  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.caption {
  position: absolute;
  bottom: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 15px;
  text-align: center;
  font-size: 1.1rem;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 1.5rem;
  z-index: 10;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.carousel-button:hover {
  opacity: 1;
}

.prev-button {
  left: 10px;
  border-radius: 0 5px 5px 0;
}

.next-button {
  right: 10px;
  border-radius: 5px 0 0 5px;
}

.trending-carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  margin-top: 20px;
  background-color: var(--bg-light-gray);
  padding: 10px;
}

.trending-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.trending-slide {
  min-width: 25%;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  padding: 10px;
}

.trending-movie-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.trending-info {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0));
  padding: 10px 5px 5px 5px;
  color: white;
}

.trending-rank {
  font-size: 1.2rem;
  font-weight: bold;

  position: absolute;
  top: -263px;
  left: 6px;
  z-index: 1;

  background-color: var(--accent-color);
  padding: 2px 6px;
  border-radius: 3px;
  color: white;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.trending-title {
  font-size: 0.8rem;
  margin: 0;
  font-weight: 500;
  height: 1.8em;
  line-height: 1.2;
  overflow: hidden;
}

.trending-favorite-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 1.2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: white;
  padding: 0;
  margin: 0;
  line-height: 1;
  z-index: 2;
}

.trending-favorite-btn.favorited {
  color: #ff0000;
}

.trending-carousel-container .carousel-button {
  top: 50%;
  padding: 8px 12px;
}
.trending-prev-button {
  left: 5px;
}
.trending-next-button {
  right: 5px;
}
