@font-face {
  font-family: "Globo Tx";
  src: url("https://s3.glbimg.com/v1/AUTH_a6ffa1815e2a466c92e4f50645c1a372/g1/2026/rock-in-rio-anos/fonts/GLOBOTIPO/Globo%20Tx%20Rg.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Globo Tx";
  src: url("https://s3.glbimg.com/v1/AUTH_a6ffa1815e2a466c92e4f50645c1a372/g1/2026/rock-in-rio-anos/fonts/GLOBOTIPO/Globo%20Tx%20Bd.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}

:root {
  --g1-red: #c4170c;
  --g1-dark: #3f0a06;
  --ink: #1f1f1f;
  --muted: #696969;
  --line: #e7e7e7;
  --paper: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Globo Tx", Arial, Helvetica, sans-serif;
}

body.is-loading-page {
  overflow: hidden;
}

button {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #fff;
  color: var(--ink);
  font-family: "Globo Tx", Arial, Helvetica, sans-serif;
}

.page-loader-inner {
  width: min(100%, 320px);
}

.page-loader p {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
}

.page-loader-bar {
  position: relative;
  display: block;
  width: 100%;
  height: 4px;
  overflow: hidden;
  background: #eeeeee;
}

.page-loader-bar span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 42%;
  background: var(--g1-red);
  animation: pageLoader 900ms ease-in-out infinite;
}

.page-shell {
  min-height: 100svh;
  width: min(100%, 430px);
  margin: 0 auto;
  background-color: #fff;
}

.quiz {
  width: 100%;
  height: 80vh;
  min-height: 0;
  overflow: hidden;
  background: var(--paper);
  display: flex;
  flex-direction: column;
}

@media (max-width: 1199px) {
  .quiz.is-dropdown-open {
    overflow: visible;
  }
}

.content {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 18px 14px 14px;
  background-color: #fff;
}

.selection-view {
  flex: 1 1 auto;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  height: 100%;
  padding-top: 20px;
  background-color: #fff;
}

.selection-copy {
  display: contents;
}

.selection-view .title-row {
  grid-row: 1;
}

.selection-view .line-fine {
  grid-row: 2;
}

.selection-view .publication-date {
  grid-row: 5;
  align-self: end;
  margin: 0;
}

.selection-tools {
  grid-row: 3;
  display: flex;
  flex-direction: column;
}

.title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.logo-wrap {
  display: none;
  align-items: center;
  justify-content: flex-end;
  color: var(--g1-red);
}

.g1-logo {
  display: block;
  width: 44px;
  height: auto;
}

h1 {
  margin: 0;
  color: var(--ink);
  font-size: 30px;
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: 0;
}

h1 span {
  display: inline;
}

.line-fine {
  margin: 16px 0 0;
  color: #4f4f4f;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 400;
}

.line-fine span {
  display: block;
}

.publication-date {
  margin: auto 0 0;
  padding-top: 14px;
  color: #8a8a8a;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 400;
}

.status-message {
  margin: 12px 0 0;
  color: var(--g1-red);
  font-size: 16px;
  line-height: 1.3;
  font-weight: 700;
}

.year-search {
  position: relative;
  z-index: 10;
  width: 100%;
  margin: 26px 0 12px;
}

.year-label {
  display: block;
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
}

.year-entry {
  display: block;
  width: 100%;
}

.year-input-shell {
  position: relative;
  min-width: 0;
  width: 100%;
}

.year-input {
  width: 100%;
  height: 64px;
  display: block;
  padding: 0 78px 0 18px;
  border: 2px solid #d9d9d9;
  border-radius: 999px;
  outline: none;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 32px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
}

.year-input::placeholder {
  color: #979797;
  opacity: 1;
}

.year-input:focus {
  border-color: var(--g1-red);
  box-shadow: 0 0 0 3px rgba(196, 23, 12, 0.12);
}

.year-input:disabled {
  cursor: wait;
  opacity: 0.62;
}

.year-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 150px;
  overflow: hidden;
  border: 1px solid #dedede;
  border-radius: 8px;
  background: #fff;
}

@media (max-width: 1199px) {
  .year-dropdown {
    max-height: 180px;
  }
}

.year-options {
  max-height: inherit;
  overflow-x: hidden;
  overflow-y: scroll;
  overscroll-behavior: contain;
  padding: 6px 18px 6px 6px;
  scrollbar-width: none;
}

.year-options::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.year-scrollbar {
  position: absolute;
  top: 8px;
  right: 6px;
  bottom: 8px;
  width: 4px;
  display: none;
  border-radius: 999px;
  background: #eeeeee;
  pointer-events: none;
}

.year-dropdown.is-scrollable .year-scrollbar {
  display: block;
}

.year-scrollbar span {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  min-height: 28px;
  border-radius: 999px;
  background: #b9b9b9;
  transform: translateY(0);
}

.year-option {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
  text-align: left;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.year-option.is-highlighted,
.year-option:hover {
  background: #fff1f0;
  color: var(--g1-red);
}

.year-option.is-active::after {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 999px;
  background: currentColor;
}

.year-empty {
  margin: 0;
  padding: 14px 16px;
  color: #666666;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 700;
}

.mobile-keypad {
  display: none;
}

.mobile-keypad-button {
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: #f1f1f1;
  color: var(--ink);
  font: inherit;
  font-size: 22px;
  line-height: 1;
  font-weight: 800;
  cursor: pointer;
}

.mobile-keypad-button:active {
  transform: translateY(1px);
  background: #fff1f0;
  color: var(--g1-red);
}

.mobile-keypad-delete {
  color: var(--g1-red);
}

@media (max-width: 1199px) {
  .selection-tools {
    grid-row: 4;
    min-height: 0;
    justify-content: flex-end;
    padding-bottom: 20px;
  }

  .selection-tools .year-search {
    margin: 0;
  }

  .selection-view.is-mobile-entry-active {
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  .selection-view.is-mobile-entry-active .line-fine {
    display: none;
  }

  .selection-view.is-mobile-entry-active .selection-tools {
    grid-row: 2;
    min-height: 0;
    justify-content: flex-end;
    padding-bottom: 20px;
  }

  .selection-view.is-mobile-entry-active .publication-date {
    grid-row: 3;
    align-self: end;
  }

  .selection-view.is-mobile-entry-active .year-search {
    margin: 0;
  }

  .selection-view.is-mobile-entry-active .year-dropdown {
    position: relative;
    top: auto;
    max-height: 112px;
    margin-top: 8px;
  }

  .selection-view.is-mobile-entry-active .mobile-keypad {
    flex: 0 0 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(4, 50px);
    gap: 8px;
    width: 100%;
    margin-top: 14px;
  }

  .selection-view.is-mobile-entry-active .mobile-keypad-button {
    height: 50px;
    min-height: 0;
    border-radius: 12px;
    font-size: 24px;
  }

  .selection-view.is-mobile-entry-active .mobile-keypad-button[data-key="0"] {
    grid-column: 2;
  }

  .selection-view.is-mobile-entry-active .mobile-keypad-delete {
    grid-column: 3;
  }
}

.confirm-button {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--g1-red);
  color: #fff;
  font-size: 0;
  cursor: pointer;
}

.confirm-button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 13px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: translate(-65%, -50%) rotate(-45deg);
}

.confirm-button:active {
  transform: translateY(1px);
}

.confirm-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.result-view {
  flex: 1 1 auto;
  height: 100%;
  justify-content: flex-start;
  gap: 18px;
  padding-top: 40px;
  padding-bottom: 58px;
  padding-inline: 0;
  background-color: #fff;
  animation: resultIn 220ms ease both;
}

.result-info {
  display: contents;
}

.back-button {
  width: auto;
  min-width: 0;
  height: 42px;
  flex: 0 0 42px;
  order: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px 0 16px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: var(--g1-red);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  align-self: flex-end;
  margin-top: auto;
  margin-right: 14px;
}

.back-button::before {
  content: "";
  width: 9px;
  height: 9px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.back-button:active {
  transform: translateY(1px);
}

.result-copy {
  width: 100%;
  flex: 0 0 auto;
  order: 2;
  padding-inline: 14px;
}

.result-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
}

.result-copy h2 {
  margin: 0;
  max-width: 100%;
  color: var(--g1-red);
  font-size: clamp(2.2rem, 10vw, 3rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0;
  overflow-wrap: break-word;
  word-break: normal;
}

.result-text {
  margin: 12px 0 0;
  color: #4f4f4f;
  font-size: clamp(1.08rem, 4.9vw, 1.28rem);
  line-height: 1.26;
  font-weight: 400;
}

.result-credit {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 5.2vw, 1.42rem);
  line-height: 1.18;
  font-weight: 700;
}

.video-wrap {
  width: 100%;
  flex: 0 0 auto;
  order: 1;
}

.video-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #202020;
}

.video-player::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: var(--video-poster);
  background-position: center;
  background-size: cover;
  opacity: 0.42;
}

.video-player:not(.is-loading)::before {
  display: none;
}

.video-player iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.video-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border: 0;
  background: rgba(32, 32, 32, 0.82);
  color: #fff;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
  text-align: center;
}

.video-player:not(.is-loading) .video-loading {
  display: none;
}

.video-fallback {
  margin: 0;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 18px;
  background: #202020;
  color: #fff;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
  text-align: center;
}

.credits {
  margin-top: 32px;
  margin-right: 14px;
  margin-bottom: 64px;
  margin-left: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--color-gray-200, #dedede);
  background-color: #fff;
  color: var(--color-gray-700, #5f5f5f);
  font-family: "Globo Tx", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.35;
}

.credits-title {
  margin: 0 0 14px;
  color: var(--color-gray-900, #2b2b2b);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.credit-item {
  margin: 0 0 16px;
}

.credit-role {
  display: block;
  font-weight: 700;
}

.credit-name {
  display: block;
}

@keyframes resultIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pageLoader {
  0% {
    transform: translateX(-110%);
  }

  100% {
    transform: translateX(245%);
  }
}

@media (max-height: 660px) {
  .content {
    padding: 14px 12px 12px;
  }

  .result-view {
    padding-inline: 0;
  }

  .title-row {
    gap: 12px;
  }

  .g1-logo {
    width: 38px;
  }

  .line-fine {
    margin-top: 5px;
    line-height: 1.16;
  }

  .publication-date {
    padding-top: 10px;
  }

  .year-search {
    margin: 20px 0 10px;
  }

  .selection-view.is-mobile-entry-active .year-search {
    margin: 0;
  }

  .selection-view.is-mobile-entry-active .year-dropdown {
    max-height: 96px;
  }

  .selection-view.is-mobile-entry-active .mobile-keypad {
    grid-template-rows: repeat(4, 42px);
    gap: 7px;
    margin-top: 10px;
  }

  .selection-view.is-mobile-entry-active .mobile-keypad-button {
    height: 42px;
    min-height: 0;
    font-size: 22px;
  }

  .mobile-keypad-button {
    height: 36px;
    font-size: 20px;
  }

  .year-input {
    height: 56px;
    padding-right: 68px;
    font-size: 28px;
  }

  .confirm-button {
    top: 7px;
    right: 7px;
    width: 42px;
    height: 42px;
  }

  .result-view {
    gap: 13px;
  }

  .back-button {
    height: 38px;
    flex-basis: 38px;
  }

  .credits {
    margin-right: 12px;
    margin-left: 12px;
  }

  .result-copy h2 {
    font-size: 2rem;
  }

  .result-text {
    font-size: 1rem;
  }

  .result-credit {
    font-size: 1.08rem;
  }
}

@media (min-width: 1200px) {
  .page-shell {
    width: 1200px;
  }

  .quiz {
    width: 1200px;
    height: 600px;
  }

  .selection-view {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    grid-template-rows: 600px;
    align-content: start;
    column-gap: 70px;
    height: 600px;
    padding: 0 14px;
  }

  .selection-copy {
    grid-column: 1;
    grid-row: 1;
    height: 100%;
    padding-top: 100px;
    display: flex;
    flex-direction: column;
    align-self: start;
    justify-self: stretch;
  }

  .selection-view .title-row {
    align-self: start;
  }

  .selection-view h1 {
    font-size: 50px;
  }

  .selection-view h1 span {
    display: block;
  }

  .selection-view .line-fine {
    max-width: 500px;
    font-size: 22px;
  }

  .selection-view .publication-date {
    align-self: flex-start;
    margin-top: auto;
    padding-top: 0;
  }

  .selection-tools {
    grid-column: 2;
    grid-row: 1;
    align-self: stretch;
    justify-self: stretch;
    height: 100%;
    min-height: 0;
    justify-content: center;
  }

  .selection-tools .year-search {
    flex: 0 0 auto;
    margin: 0;
  }

  .result-view {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 900px;
    grid-template-rows: 600px;
    align-content: start;
    align-items: center;
    justify-content: stretch;
    gap: 28px;
    height: 600px;
    padding: 0 14px;
  }

  .result-info {
    grid-column: 1;
    grid-row: 1;
    height: calc(900px * 9 / 16);
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 22px;
    align-self: center;
  }

  .result-copy {
    width: 100%;
    order: 2;
    margin-top: auto;
    padding: 0;
  }

  .result-kicker {
    font-size: 24px;
  }

  .result-copy h2 {
    font-size: clamp(1.8rem, 8vw, 2rem);
  }

  .result-text {
    margin-top: 10px;
    font-size: clamp(1rem, 4.7vw, 1.2rem);
  }

  .video-wrap {
    grid-column: 2;
    grid-row: 1;
    width: 900px;
    justify-self: end;
  }

  .back-button {
    width: auto;
    max-width: none;
    flex: 0 0 42px;
    order: 1;
    align-self: flex-start;
    margin-top: 0;
    margin-right: 0;
  }
}
