/* Mosaic */

.ratings-list {
	max-width: 1265px;
	margin: 1em auto 0;
	font: 16px Arial, sans-serif;
	text-align: left;
}

.rating-mosaic {
	color: white;
	display: inline-block;
	text-align: left;
	margin: 20px;
	transition: opacity 0.2s ease-out;
}

:where(.rating-mosaic) .rating-inner-container {
	box-sizing: content-box;
	display: flex;
	width: 167px;
	transition: width 0.2s ease-out;
}

:where(.rating-mosaic) .rating-frame {
	box-sizing: content-box;
	width: 167px;
}

:where(.rating-mosaic) .article-name {
	font-size: 0.9em;
	font-weight: bold;
}

:where(.rating-mosaic) .thumbnail-container {
	position: relative;
	display: block;
	width: 167px;
	height: 250px;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	overflow: hidden;
}

:where(.rating-mosaic) .thumbnail-container.clickable {
	cursor: pointer;
}

:where(.rating-mosaic) .banners-layer {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 167px;
	height: 250px;

	display: flex;
	flex-direction: column-reverse;
}

:where(.rating-mosaic) .label-banner {
	background: rgba(86,6,16, 0.8);
	text-transform: uppercase;
	font-weight: bold;
	font-size: 0.8em;
	text-align: center;
	letter-spacing: 0.2em;
	padding: 5px 0;
}

:where(.rating-mosaic) .mini-review-banner {
	visibility: hidden;
	text-align: center;
	padding-bottom: 5px;
	background: linear-gradient(to bottom, transparent, black);
	transition: padding-bottom 0.2s ease-out;
}

:where(.rating-mosaic) .thumbnail-container:focus-visible .mini-review-banner {
	visibility: visible;
}

@media (min-width: 1001px) and (hover: hover) {

	:where(.rating-mosaic) .thumbnail-container:hover .mini-review-banner {
		visibility: visible;
		padding-bottom: 10px;
		cursor: pointer;
	}

}

:where(.rating-mosaic) .rating-meta {
	display: flex;
	justify-content: space-between;
	min-height: 43px;
	background-color: black;
}

:where(.rating-mosaic) ._movie-left {
	padding: 5px;
}

:where(.rating-mosaic) ._movie-right {
	display: flex;
	align-items: center;
	padding: 0 10px;
}

:where(.rating-mosaic) ._movie-right.rated-B {
	background-color: #666;
}

:where(.rating-mosaic) ._movie-right.rated-A {
	background-color: silver;
}

:where(.rating-mosaic) ._movie-right.rated-AA {
	background-color: gold;
}

:where(.rating-mosaic) ._movie-right.rated-A .drm-rating, :where(.rating-mosaic) ._movie-right.rated-AA .drm-rating {
	text-shadow: 0px 0px 10px gray;
}

:where(.rating-mosaic) .movie-title {
	overflow: hidden;
	font-size: 0.9em;
}

:where(.rating-mosaic) .drm-rating {
	font-size: 2em;
}

:where(.rating-mosaic) .rating-thumbnail {
	box-sizing: content-box;
	width: 167px;
	height: 250px;
}

:where(.rating-mosaic) .drm-comment-handle {
	letter-spacing: 3px;
	cursor: pointer;
}

:where(.rating-mosaic) .rating-details {
	display: flex;
	flex-shrink: 0;
	align-items: stretch;
	transition: width .2s ease-out;
	background-color: rgba(255, 255, 255, 0.2);
	color: white;
	overflow: auto;

	width: 0px;
	height: 0px;
	visibility: hidden;
}

:where(.rating-mosaic) .rating-details img {
	max-width: min(100%, 250px);
	height: auto;
}

:where(.rating-mosaic) .rating-details.show {
	width: unset;
	height: unset;
	visibility: visible;
	overflow-wrap: anywhere;
}

:where(.rating-mosaic) .drm-comment {
	font-size: 0.8em;
	width: 100%;
}

:where(.rating-mosaic) .drm-meta {
	padding: 8px 10px;
	border-bottom: 1px solid gray;
	font-size: 0.9em;
	line-height: 1.3em;
}

:where(.rating-mosaic) .drm-meta-1st-row {
	display: flex;
	justify-content: space-between;
}

:where(.rating-mosaic) .drm-awards {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 8px 10px 0;
	font-size: 0.9em;
}

:where(.rating-mosaic) .drm-award {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	white-space: nowrap;
}

:where(.rating-mosaic) .drm-meta .drm-meta-imdb-id a, :where(.rating-mosaic) .drm-timestamp a.permalink {
	color: lightblue;
}

:where(.rating-mosaic) .drm-comment h6 {
	margin: 0;
	font-size: 1em;
}

:where(.rating-mosaic) .drm-timestamp {
	display: flex;
	justify-content: space-between;
	padding: 10px;
	padding-bottom: 0;
}

:where(.rating-mosaic) .drm-timestamp .permalink {
	font-size: 0.9em;
}

:where(.rating-mosaic) .drm-comment-text {
	font-size: 0.9rem;
	padding: 10px;
	padding-top: 0;
}

:where(.rating-mosaic) .drm-comment p:last-child {
	margin-bottom: 0;
}

.rating-mosaic a {
	color: white;
}

.ratings-list .page-link {
	font-size: 0.7em;
	margin-top: 4px;
	display: inline-block;
}


@media (max-width: 1000px) {

	.rating-mosaic {
		margin: 0;
	}

	:where(.rating-mosaic) .rating-inner-container {
		width: 106px;
		overflow: hidden;
		transition: none;
		border: 1px solid black;
	}

	:where(.rating-mosaic) .rating-frame {
		width: 106px;
	}

	:where(.rating-mosaic) .thumbnail-container {
		width: 106px;
		height: 159px;
	}

	:where(.rating-mosaic) .banners-layer {
		width: 106px;
		height: 159px;
	}

	:where(.rating-mosaic) .rating-thumbnail {
		width: 106px;
		height: 159px;
	}

	:where(.rating-mosaic) .rating-meta {
		min-height: initial;
		height: 30px;
	}

	:where(.rating-mosaic) .movie-title {
		font-size: 8px;
	}

	:where(.rating-mosaic) .drm-rating {
		font-size: 15px;
	}

	:where(.rating-mosaic) .label-banner {
		font-size: 8px;
	}

	:where(.rating-mosaic) .drm-comment {
		font-size: 10px;
	}

	:where(.rating-mosaic) .drm-comment-text {
		font-size: 11px;
	}
}

:where(.rating-mosaic, .rating-panel) .rating-annotation {
	color: lightgray;
	font-style: italic;
	font-size: 0.8em;
	margin-top: 5px;
	margin-bottom: 10px;
}

@media (max-width: 1000px) {
	:where(.rating-mosaic) .rating-annotation {
		margin-top: 3px;
	}
}

/* Panels */

.rating-panel {
	--panel-badge-size: 27px;
	--panel-review-padding: 0 0 10px;
	box-sizing: border-box;
	border-style: solid;
	border-width: 1px;
	overflow: hidden;
	margin: 0;
}

:not(dialog) > .rating-panel {
	max-width: 31%;
	min-width: 550px;
	margin: auto;
	margin-bottom: 15px;
}

:where(.rating-panel) .rating-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 0.8em;
	border-bottom-style: solid;
	border-bottom-width: 1px;
}

:where(.rating-panel) .rating-header .rating-date-value {
	font-weight: bold;
}

:where(.rating-panel) .rating-date {
	padding: 4px;
}

:where(.rating-panel) .rating-date-value {
	padding: 4px;
}

:where(.rating-panel) .rating-content {
	display: flex;
	flex-direction: row;
}

:where(.rating-panel) .rating-poster img {
	height: 150px;
}

:where(.rating-panel) .rating-data {
	margin: 15px;
	margin-right: 0;
	margin-bottom: 0;
	flex: 1;
	min-width: 0;
	overflow-wrap: anywhere;
}

:where(.rating-panel) .rating-title {
	margin-bottom: 10px;
	max-height: 50px;
	transition: max-height 0.5s ease-out;
	overflow: hidden;
}

:where(.rating-panel) .rating-movie-title {
	font-size: 1.1em;
	font-weight: bold;
}

:where(.rating-panel) .rating-rating {
	display: flex;
	flex-direction: row;
	align-items: center;
	margin-bottom: 10px;
}

:where(.rating-panel) .rating-value {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	border-style: solid;
	border-width: 1px;
	padding: var(--panel-badge-padding, 3px);
	margin-right: 10px;
	height: var(--panel-badge-size);
	min-width: var(--panel-badge-size);
	text-align: center;
}

:where(.rating-panel) .rating-ap {
	text-shadow: 0px 0px 5px gray;
}

:where(.rating-panel) .rating-a {
	text-shadow: 0px 0px 5px gray;
}

:where(.rating-panel) .rating-in-theater {
	display: flex;
	align-items: center;
	font-size: 0.8em;
}

:where(.rating-panel) .rating-comment {
	padding-right: var(--panel-comment-padding-right, 10px);
	overflow: auto;
	transition: max-height 0.3s ease-out;
}

:where(.rating-panel) .rating-comment.collapsed {
	max-height: 200px;
}

:where(.rating-panel) .rating-comment:not(.collapsed) {
	max-height: 100%;
}

:where(.rating-panel) .literal-review-container {
	font-family: "Baloo 2", sans-serif;
	padding: var(--panel-review-padding);
}

:where(.rating-panel) .literal-review-container img {
	display: block;
	max-width: 100%;
	height: auto;
}

:where(.rating-panel) .literal-review-container p:first-child {
	margin-top: 5px;
}

:where(.rating-panel) .literal-review-container p:last-child {
	margin-bottom: 0;
}

:where(.rating-panel) .rating-comment, :where(.rating-panel) .rating-content {
	width: 100%;
}

:where(.rating-panel) .rating-data {
	flex: 1;
}

:where(.rating-panel) .edit-expand-button {
	width: max-content;
	margin-left: auto;
	margin-top: 10px;
	margin-right: 10px;
	padding: 3px;
	cursor: pointer;
	touch-action: manipulation;
}

/* AWARDS */

:where(.rating-panel) .rating-movie-awards {
	display: grid;
	grid-template-columns: max-content 1fr max-content;
	padding: 5px;
}

:where(.rating-panel) .rating-movie-awards.bordered {
	border-top-style: solid;
	border-top-width: 1px;
}

:where(.rating-panel) .award-line-container {
	display: grid;
	grid-template-columns:subgrid;
	grid-column:1 / -1;
	padding: 5px;
}

:where(.rating-panel) .award-category {
	display: flex;
	align-items: center;
	min-height: 30px;
	margin-right: 10px;
	font-size: 0.9em;
}

:where(.rating-panel) .award-artists-container {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	min-width: 0;
}

:where(.rating-panel) .award-artists {
	display: inline-flex;
	align-items: center;
	flex: none;
	margin-left: 10px;
	font-size: 0.8em;
	font-weight: bold;
}

:where(.rating-panel) .award-artist-pic {
	overflow: hidden;
	height: 30px;
	width: 30px;
	border-style: solid;
	border-width: 1px;
	margin-right: 5px;
}

:where(.rating-panel) .award-artist-pic img {
	object-fit: cover;
	object-position: center;
	width: 100%;
	height: 100%;
}

@media (max-width: 767px) {
	.rating-panel {
		--panel-badge-size: 20px;
		--panel-review-padding: 0 0 8px;
	}

	:not(dialog) > .rating-panel {
		max-width: unset;
		min-width: unset;
		border-radius: 0;
		margin-bottom: 10px;
		border-left: none;
		border-right: none;
	}

	:where(.rating-panel) .rating-date {
		padding: 2px;
	}

	:where(.rating-panel) .rating-poster img {
		height: 100px;
	}

	:where(.rating-panel) .rating-data {
		margin-top: 5px;
		margin-left: 10px;
	}

	:where(.rating-panel) .rating-comment {
		margin-top: 5px;
	}

	:where(.rating-panel) .rating-title {
		margin-top: 5px;
	}

	/* Awards */

	:where(.rating-panel) .rating-movie-awards {
		padding: 2px 5px;
	}

	:where(.rating-panel) .award-artist-pic {
		width: 23px;
		height: 23px;
	}

	:where(.rating-panel) .award-category {
		max-height: 23px;
	}

	:where(.rating-panel) .award-line-container {
		padding: 2px;
	}

}

/* Public Panels */

.public-ratings > .ratings-root:not(.ratings-list) {
	margin-top: 1em;
}

@media (width > 1000px) {
	.public-ratings > .ratings-root:not(.ratings-list) {
		padding-top: 20px;
	}
}

.public-ratings .rating-panel {
	--panel-badge-size: 22px;
	--panel-badge-padding: 2px 4px;
	--panel-comment-padding-right: 0;
	--panel-review-padding: 8px 12px 10px 0;
}

.public-ratings .rating-panel .rating-value {
	font-size: 0.8rem;
}
