:root {
  --gf-navy: #241e54;
  --gf-purple: #6c5ce7;
  --gf-pink: #ff7eb3;
  --gf-teal: #00cec9;
  --gf-yellow: #ffeaa7;
  --gf-bg: #f8f9fc;
  --gf-text-main: #2d3436;
  --gf-text-muted: #636e72;
  --gf-card-border: #e2e8f0;
}

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

html,
body {
  height: 100%;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--gf-bg);
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(108, 92, 231, 0.05) 0%, transparent 20%),
    radial-gradient(circle at 90% 90%, rgba(255, 126, 179, 0.05) 0%, transparent 20%);
  color: var(--gf-navy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.gf-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* Header */
.gf-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--gf-navy);
  color: #fff;
  box-shadow: 0 4px 12px rgba(36, 30, 84, 0.15);
}

.gf-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.gf-logo {
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.2rem;
  text-shadow: 2px 2px 0px rgba(0,0,0,0.2);
}

.gf-logo span {
  color: var(--gf-teal);
}

.gf-header-search {
  flex: 0 0 320px;
  display: flex;
  justify-content: flex-end;
}

.gf-icon-btn {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.12);
  transition: background 0.3s ease, transform 0.3s ease;
}

.gf-icon-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.gf-icon-btn:active {
  transform: translateY(1px);
}

.gf-menu-toggle {
  display: none;
  flex-shrink: 0;
  flex-direction: column;
}

.gf-menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  display: block;
  margin: 2px 0;
}

.gf-search-toggle {
  display: none;
  flex-shrink: 0;
}

.gf-nav-desktop {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 1rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.gf-nav-desktop a {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.85);
  transition: all 0.2s ease;
}

.gf-nav-desktop a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: translateY(-2px);
}

.gf-screen-dim {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 40;
}

body.is-menu-open .gf-screen-dim,
body.is-search-open .gf-screen-dim {
  opacity: 1;
  pointer-events: auto;
}

.gf-menu-panel {
  position: fixed;
  inset: 0 auto 0 0;
  width: 80%;
  max-width: 320px;
  background: var(--gf-navy);
  color: #fff;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 50;
  display: flex;
  flex-direction: column;
}

.gf-menu-panel-inner {
  padding: 1.25rem 1.25rem 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.gf-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.gf-menu-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.gf-menu-close {
  position: relative;
}

.gf-menu-close span {
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
}

.gf-menu-close span:first-child {
  transform: rotate(45deg);
}

.gf-menu-close span:last-child {
  transform: rotate(-45deg);
}

.gf-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.gf-menu-nav a {
  padding: 0.9rem 0.9rem;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.7);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  transition: background 0.3s ease, transform 0.3s ease;
}

.gf-menu-nav a:hover {
  background: rgba(59, 130, 246, 0.4);
  transform: translateX(4px);
}

.gf-search-panel {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  transform: translateY(-100%);
  background: var(--gf-navy);
  color: #fff;
  z-index: 60;
  transition: transform 0.3s ease;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.5);
}

.gf-search-panel-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem 1.1rem;
}

.gf-search-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.gf-search-bar {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0.25rem 0.25rem 0.25rem 1rem;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  flex: 1;
}

.gf-search-bar:focus-within {
  background: #fff;
  border-color: var(--gf-teal);
  box-shadow: 0 0 0 4px rgba(0, 206, 201, 0.2);
}

.gf-search-bar input {
  border: none;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 0.95rem;
  color: #fff;
  width: 100%;
  font-weight: 500;
}

.gf-search-bar:focus-within input {
  color: var(--gf-navy);
}

.gf-search-bar input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.gf-search-bar:focus-within input::placeholder {
  color: #999;
}

.gf-search-bar button {
  background: var(--gf-teal);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gf-navy);
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s, background 0.2s;
}

.gf-search-bar button:hover {
  background: #00bdb8;
  transform: scale(1.05);
}

.gf-search-cancel {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  padding: 0.4rem 0.6rem;
}

.gf-search-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.9rem;
}

.gf-search-meta-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.4rem;
}

.gf-search-history-list,
.gf-search-suggestion-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.gf-search-chip {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.8rem;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.9);
  transition: background 0.2s ease, transform 0.2s ease;
}

.gf-search-chip:hover {
  background: rgba(59, 130, 246, 0.5);
  transform: translateY(-1px);
}

body.is-menu-open .gf-menu-panel {
  transform: translateX(0);
}

body.is-search-open .gf-search-panel {
  transform: translateY(0);
}

body.is-menu-open,
body.is-search-open {
  overflow: hidden;
  touch-action: none;
}

/* Hero Section */
.gf-hero {
  position: relative;
  max-width: 1200px;
  margin: 2rem auto 0;
  padding: 3rem;
  border-radius: 32px;
  background: var(--gf-navy);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(36, 30, 84, 0.2);
  color: #fff;
}

.gf-hero-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.gf-hero-text h1 {
  font-size: 3.2rem;
  line-height: 1.1;
  margin-bottom: 1.2rem;
  font-weight: 800;
  text-shadow: 3px 3px 0 rgba(0,0,0,0.2);
}

.gf-hero-text p {
  font-size: 1.1rem;
  max-width: 480px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.gf-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.gf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-bottom: 4px solid rgba(0,0,0,0.2);
  position: relative;
  top: 0;
}

.gf-btn:active {
  border-bottom-width: 0;
  top: 4px;
}

.gf-btn-primary {
  background: var(--gf-purple);
  color: #fff;
  border-bottom-color: #5649c0;
}

.gf-btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.gf-btn-primary:active {
  transform: translateY(2px);
}

.gf-btn-ghost {
  background: #fff;
  color: var(--gf-navy);
  border-bottom-color: #d1d5db;
}

.gf-btn-ghost:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
}

.gf-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.gf-hero-meta span {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Hero Showcase */
.gf-hero-showcase {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.1);
  transform: rotate(2deg);
}

.gf-hero-showcase-card {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 0 rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.gf-hero-showcase-card:hover {
  transform: translateY(-4px) scale(1.02);
}

.gf-hero-showcase-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.gf-hero-showcase-info {
  padding: 0.8rem;
}

.gf-hero-showcase-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gf-navy);
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gf-hero-showcase-tag {
  font-size: 0.75rem;
  color: var(--gf-text-muted);
  font-weight: 600;
}

/* Background Bubbles */
.gf-hero-bubbles {
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  background: #fff;
}

.bubble-1 { width: 150px; height: 150px; top: -50px; right: 10%; }
.bubble-2 { width: 100px; height: 100px; bottom: -30px; left: 10%; }
.bubble-3 { width: 200px; height: 200px; bottom: -80px; right: -50px; }
.bubble-4 { width: 80px; height: 80px; top: 20%; left: -20px; }

/* Sections */
.gf-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 0 1rem;
}

.gf-section-header {
  margin-bottom: 2rem;
}

.gf-section-header h2 {
  font-size: 2rem;
  color: var(--gf-navy);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.gf-section-header p {
  font-size: 1rem;
  color: var(--gf-text-muted);
}

/* Filters */
.gf-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.gf-filter-pill {
  padding: 0.6rem 1.2rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  background: #fff;
  border: 2px solid var(--gf-card-border);
  color: var(--gf-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom-width: 4px;
}

.gf-filter-pill:hover {
  transform: translateY(-2px);
  border-color: var(--gf-purple);
  color: var(--gf-purple);
}

.gf-filter-pill:active {
  transform: translateY(2px);
  border-bottom-width: 2px;
}

.gf-filter-pill.is-active {
  background: var(--gf-purple);
  color: #fff;
  border-color: #5649c0;
}

/* Grids */
.gf-grid {
  display: grid;
  gap: 1.5rem;
}

.gf-grid-featured {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.gf-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.gf-grid-category {
  grid-template-columns: repeat(5, 1fr);
}

/* Game Card */
.gf-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 2px solid var(--gf-card-border);
  box-shadow: 0 4px 0 var(--gf-card-border);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.gf-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 0 var(--gf-card-border);
  border-color: var(--gf-purple);
}

.gf-card-thumb-wrap {
  position: relative;
  overflow: hidden;
}

.gf-card-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gf-card:hover .gf-card-thumb {
  transform: scale(1.08);
}

.gf-card-badge {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--gf-yellow);
  color: var(--gf-navy);
  box-shadow: 0 2px 0 rgba(0,0,0,0.1);
  text-transform: uppercase;
}

.gf-card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.gf-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gf-navy);
  line-height: 1.3;
  min-height: 2.6em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gf-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--gf-text-muted);
  margin-top: auto;
}

.gf-card-category {
  font-weight: 600;
  color: var(--gf-purple);
}

.gf-card-cta {
  margin-top: 0.8rem;
  display: block;
  text-align: center;
  padding: 0.5rem;
  background: #f1f3f5;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gf-navy);
  transition: background 0.2s;
}

.gf-card:hover .gf-card-cta {
  background: var(--gf-navy);
  color: #fff;
}

/* Trending Row */
.gf-trending-row {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 1.5rem;
  scroll-snap-type: x mandatory;
}

.gf-trending-row::-webkit-scrollbar {
  height: 10px;
}

.gf-trending-row::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
  border: 2px solid #fff;
}

.gf-card-trending {
  min-width: 240px;
  scroll-snap-align: start;
}

.gf-card-trending-rank {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gf-navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  box-shadow: 0 4px 0 rgba(0,0,0,0.2);
  border: 2px solid #fff;
}

/* Hot Picks Layout */
.gf-hot-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
}

.gf-hot-main {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--gf-navy);
  color: #fff;
  display: flex;
  flex-direction: row;
  min-height: 320px;
  box-shadow: 0 12px 0 rgba(36, 30, 84, 0.15);
  border: 2px solid var(--gf-navy);
  transition: transform 0.2s;
}

.gf-hot-main:hover {
  transform: translateY(-6px);
}

.gf-hot-main-img-wrap {
  flex: 1.3;
  position: relative;
  overflow: hidden;
}

.gf-hot-main-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gf-hot-main:hover .gf-hot-main-thumb {
  transform: scale(1.05);
}

.gf-hot-main-info {
  flex: 1;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  background: linear-gradient(to right, rgba(36, 30, 84, 0.9), var(--gf-navy));
}

.gf-hot-badge {
  align-self: flex-start;
  padding: 0.3rem 0.8rem;
  background: var(--gf-pink);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 6px;
  text-transform: uppercase;
  box-shadow: 0 3px 0 rgba(0,0,0,0.2);
}

.gf-hot-main-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
}

.gf-hot-main-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gf-hot-main-tags {
  display: flex;
  gap: 0.5rem;
}

.gf-hot-main-tag {
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.gf-hot-cta {
  margin-top: 1rem;
  align-self: flex-start;
  background: var(--gf-teal);
  color: var(--gf-navy);
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-weight: 800;
  border-bottom: 4px solid #009995;
}

.gf-hot-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.gf-hot-side {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* Footer */
.gf-footer {
  margin-top: 4rem;
  background: var(--gf-navy);
  color: #fff;
  padding-top: 4rem;
  border-top: 6px solid var(--gf-purple);
}

.gf-footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
}

.gf-footer-column h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--gf-yellow);
}

.gf-footer-about p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin: 1rem 0 1.5rem;
}

.gf-social-links {
  display: flex;
  gap: 1rem;
}

.gf-social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.gf-social-link:hover {
  background: var(--gf-pink);
  transform: translateY(-3px);
  border-color: #fff;
}

.gf-footer-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.gf-footer-list a {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.2s;
  font-weight: 500;
}

.gf-footer-list a:hover {
  color: var(--gf-teal);
  transform: translateX(5px);
}

.gf-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gf-newsletter-form input {
  padding: 1rem;
  border-radius: 10px;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  outline: none;
  font-family: inherit;
}

.gf-newsletter-form input:focus {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--gf-teal);
}

.gf-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.2);
}

/* Collections Section */
.gf-section-collections {
  padding-bottom: 3rem;
}

.gf-collections-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.gf-collection-card {
  display: block;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.gf-collection-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.gf-collection-large {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
}

.gf-collection-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.gf-collection-overlay h3 {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  margin: 0;
}

.gf-collection-small {
  grid-column: span 1;
  display: flex;
  flex-direction: column;
  background: #fff;
  height: 100%;
}

.gf-collection-thumb {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.gf-collection-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gf-collection-card:hover .gf-collection-thumb img {
  transform: scale(1.05);
}

.gf-collection-content {
  padding: 1rem;
  color: #fff;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.gf-collection-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
}

.gf-bg-green { background-color: #2ecc71; }
.gf-bg-blue { background-color: #0984e3; }
.gf-bg-orange { background-color: #e67e22; }
.gf-bg-purple { background-color: #9b59b6; }

/* Responsive */
@media (max-width: 1024px) {
  .gf-hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  .gf-hero-text p {
    margin-left: auto;
    margin-right: auto;
  }
  .gf-hero-actions {
    justify-content: center;
  }
  .gf-hero-meta {
    justify-content: center;
  }
  .gf-hot-layout {
    grid-template-columns: 1fr;
  }
  .gf-grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }
  .gf-footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
  .gf-collections-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gf-collection-large {
    grid-column: span 1;
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 600px) {
  .gf-collections-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .gf-header-inner {
    padding-inline: 1rem;
  }

  .gf-header-search {
    display: none;
  }

  .gf-nav-desktop {
    display: none;
  }

  .gf-logo {
    font-size: 1.3rem;
  }

  .gf-menu-toggle,
  .gf-search-toggle {
    display: inline-flex;
  }

  .gf-hero {
    margin: 1rem;
    padding: 2rem 1.5rem;
    border-radius: 24px;
  }
  
  .gf-hero-text h1 {
    font-size: 2.2rem;
  }

  .gf-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gf-grid-category {
    grid-template-columns: repeat(2, 1fr);
  }

  .gf-hot-main {
    flex-direction: column;
  }
  
  .gf-hot-main-img-wrap {
    min-height: 200px;
  }
  
  .gf-hot-main-info {
    padding: 1.5rem;
  }
  
  .gf-hot-side {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .gf-hero-text h1 {
    font-size: 1.8rem;
  }
  
  .gf-hero-text p {
    font-size: 1rem;
  }

  .gf-grid-featured {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
  
  .gf-grid-4 {
    grid-template-columns: 1fr;
  }
  
  .gf-grid-category {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  .gf-footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .gf-social-links {
    justify-content: center;
  }
  
  .gf-footer-about p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .gf-card-body {
    padding: 0.8rem;
  }
  
  .gf-card-title {
    font-size: 0.9rem;
  }
  
  .gf-btn {
    min-height: 48px;
    width: 100%;
  }
  
  .gf-filter-bar {
    justify-content: center;
  }
  
  .gf-filter-pill {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 350px) {
  .gf-grid-featured,
  .gf-grid-category {
    grid-template-columns: 1fr;
  }
}

/* Detail Page Styles */
.gf-detail-page {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.gf-detail-layout {
  display: grid;
  grid-template-columns: 240px 1fr 240px; /* Increased sidebar width */
  gap: 1.5rem; /* Increased gap */
  height: 620px; /* Increased height to fit 5 rows of larger cards */
  align-items: stretch;
}

.gf-detail-sidebar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px; /* Increased gap */
  overflow: hidden; /* Hide overflowing items */
  align-content: start;
}

.gf-sidebar-card {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-decoration: none;
  aspect-ratio: 1;
  width: 100%;
  position: relative;
}

.gf-sidebar-card:hover {
  transform: scale(1.1); /* Stronger scale effect */
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  z-index: 2;
}

.gf-sidebar-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  transition: filter 0.3s;
}

.gf-sidebar-card:hover img {
  filter: brightness(1.1);
}

/* Remove sidebar title as requested */
.gf-sidebar-card-title {
  display: none;
}

.gf-detail-card {
  background: #fff;
  border-radius: 20px;
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(36, 30, 84, 0.1);
  border: 1px solid rgba(226, 232, 240, 0.8);
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.gf-detail-image-wrap {
  width: 100%;
  height: 360px; /* Fixed height for image area */
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #f1f5f9;
  margin-bottom: 1rem;
}

.gf-detail-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gf-detail-info {
  padding: 0 0.5rem;
  flex: 1;
  overflow: hidden; /* Prevent scrolling */
}

.gf-detail-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  gap: 1rem;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
  padding-bottom: 0.5rem;
}

.gf-detail-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gf-navy);
  margin: 0;
  line-height: 1.2;
}

.gf-detail-play-btn {
  background: #8e44ad; /* Purple from screenshot */
  color: #fff;
  padding: 0.5rem 1.2rem;
  border-radius: 999px; /* Pill shape */
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: capitalize;
  transition: all 0.2s;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(142, 68, 173, 0.3);
}

.gf-detail-play-btn:hover {
  transform: translateY(-2px);
  background: #9b59b6;
  box-shadow: 0 6px 15px rgba(142, 68, 173, 0.4);
}

.gf-detail-category {
  display: inline-block;
  color: #d63031; /* Reddish/Pink tone */
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

.gf-detail-desc {
  color: var(--gf-text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
  margin-bottom: 0;
  /* Restore scrolling behavior */
  overflow-y: auto;
  padding-right: 5px; /* Add space for scrollbar */
  max-height: 120px; /* Limit height to approx 6 lines */
  flex: none; /* Do not take remaining space */
  scrollbar-width: thin;
  scrollbar-color: #8e44ad transparent;
}

.gf-detail-desc::-webkit-scrollbar {
  width: 4px;
}

.gf-detail-desc::-webkit-scrollbar-track {
  background: transparent;
}

.gf-detail-desc::-webkit-scrollbar-thumb {
  background-color: #8e44ad;
  border-radius: 4px;
}

/* Recommended grids */
.gf-grid-5 {
  grid-template-columns: repeat(5, 1fr);
}

.gf-grid-6 {
  grid-template-columns: repeat(6, 1fr);
}

/* Detail Responsive */
@media (max-width: 1024px) {
  .gf-detail-layout {
    grid-template-columns: 180px 1fr 180px;
    height: 520px;
  }
  .gf-detail-image-wrap {
    height: 240px;
  }
  .gf-grid-6 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .gf-detail-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
    height: auto; /* Auto height for mobile */
  }
  .gf-detail-sidebar {
    display: none; /* Hide sidebars on mobile to focus on content */
  }
  .gf-detail-card {
    height: auto;
    overflow: visible;
  }
  .gf-detail-image-wrap {
    height: auto;
    aspect-ratio: 16/9;
  }
  .gf-detail-info {
    overflow: visible;
  }
  .gf-detail-header-row {
    flex-direction: column;
    align-items: flex-start;
    position: static;
  }
  .gf-detail-play-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    display: flex;
  }
  .gf-grid-6 {
    grid-template-columns: repeat(2, 1fr);
  }
}
