
.day-section
{
	margin-bottom: 30px;
}

.day-title
{
	border-bottom: 2px solid var(--border-color);
	padding-bottom: 5px;
	color: var(--day-title-color);
	font-size: 1.1em;
}

.hour-group
{
	margin-top: 15px;
}

.hour-label
{
	font-weight: bold;
	background: var(--hour-label-bg);
	color: var(--text-color);
	padding: 2px 8px;
	display: inline-block;
	border-radius: 4px;
	font-size: 0.85em;
	margin-bottom: 10px;
}

.grid
{
	display: grid;
	gap: 15px;
	justify-content: center;
}

/*
	Sサイズ
*/

#schedule-container.size-sm .grid
{
	grid-template-columns: repeat(auto-fill, min(30%, 160px));
	gap: 10px;
}
#schedule-container.size-sm .card-inner
{
	padding: 6px;
}
#schedule-container.size-sm .stream-title
{
	font-size: 0.75em;
}
#schedule-container.size-sm .card-time
{
	font-size: 0.85em;
}
#schedule-container.size-sm
{
	--platform-icon-size: 20px;
}

/*
	Mサイズ
*/

#schedule-container.size-md .grid
{
	grid-template-columns: repeat(auto-fill, min(45%, 220px));
	gap: 10px;
}
#schedule-container.size-md .card-inner
{
	padding: 6px;
}
#schedule-container.size-md
{
	--platform-icon-size: 30px;
}

/*
	Lサイズ
*/

#schedule-container.size-lg .grid
{
	grid-template-columns: repeat(auto-fill, 320px);
}
#schedule-container.size-lg .stream-title
{
	font-size: 1em;
}
#schedule-container.size-lg
{
	--platform-icon-size: 48px;
}

/*
==========================================================
		カード
*/

.card
{
	background: var(--card-bg);
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 5px var(--card-shadow);
	display: flex;
	flex-direction: column;
	position: relative;
	transition: transform 0.2s, background 0.3s;
	width: 100%;
}

.card:hover
{
	transform: translateY(-2px);
}

.card.live
{
	outline: 3px solid var(--live-color);
	z-index: 1;
}

.card.archived
{
	opacity: 0.7;
}

.stream-thumbnail
{
	width: 100%;
	aspect-ratio: 16/9;
	object-fit: cover;
}

.stream-thumbnail-link
{
	position: relative;
	display: block;
	line-height: 0;
}

.platform-icon
{
	position: absolute;
	right: var(--platform-icon-offset);
	bottom: var(--platform-icon-offset);
	width: var(--platform-icon-size);
	height: var(--platform-icon-size);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.24);
	object-fit: contain;
}

/*
	ダークテーマ時のアイコンの背景
*/
body.dark .platform-icon
{
	background: rgba(36, 37, 38, 0.92);
}

.card-inner
{
	padding: 10px;
	border-left-width: 6px;
	border-left-style: solid;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.card-time
{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	font-weight: bold;
	color: var(--live-color);
	font-size: 1em;
}

.card-time-text
{
	min-width: 0;
}

.card-time .type-badge
{
	display: inline-flex;
	align-items: center;
	margin-left: auto;
}

.streamer-name
{
	font-size: 0.8em;
	color: var(--secondary-text);
	font-weight: bold;
	flex: 1 1 auto;
	min-width: 0;
}

.card-meta-row
{
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	min-width: 0;
}

.stream-status
{
	font-size: 0.7rem;
	font-weight: bold;
	padding: 2px 8px;
	border-radius: 999px;
	background: rgba(108, 117, 125, 0.14);
	color: var(--secondary-text);
	white-space: nowrap;
}

.stream-status.live
{
	background: rgba(230, 57, 70, 0.14);
	color: var(--live-color);
}

.stream-status.upcoming
{
	background: rgba(108, 117, 125, 0.14);
	color: var(--secondary-text);
}

.stream-status.archived
{
	background: rgba(108, 117, 125, 0.16);
	color: var(--secondary-text);
}

.stream-title
{
	font-size: 0.85em;
	margin: 2px 0;
	font-weight: bold;
	color: var(--text-color);
	display: -webkit-box;
	line-clamp: 2;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	line-height: 1.3;
}

.card-footer
{
	justify-content: center;
	display: flex;
	margin-top: auto;
	padding-top: 8px;
}

.share-button
{
	display: inline-flex;
	align-items: center;
	gap: 7px;
	border: 0;
	border-radius: 999px;
	background: #000;
	color: #fff;
	padding: 7px 14px;
	font: inherit;
	font-size: 0.78rem;
	font-weight: 700;
	cursor: pointer;
}

.share-button::before
{
	content: "";
	width: 16px;
	height: 16px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18 8a3 3 0 1 0-2.83-4A3 3 0 0 0 15 5c0 .18.02.35.05.52L8.91 8.59a3 3 0 1 0 0 4.82l6.14 3.07A3 3 0 0 0 15 17a3 3 0 1 0 .9-2.14l-6.14-3.07a3.1 3.1 0 0 0 0-1.58l6.14-3.07A3 3 0 0 0 18 8Z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18 8a3 3 0 1 0-2.83-4A3 3 0 0 0 15 5c0 .18.02.35.05.52L8.91 8.59a3 3 0 1 0 0 4.82l6.14 3.07A3 3 0 0 0 15 17a3 3 0 1 0 .9-2.14l-6.14-3.07a3.1 3.1 0 0 0 0-1.58l6.14-3.07A3 3 0 0 0 18 8Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.share-button:hover,
.share-button:focus-visible
{
	background: #292929;
}

body.dark .share-button
{
	background: #3f3f3f;
	color: #fff;
}

body.dark .share-button:hover,
body.dark .share-button:focus-visible
{
	background: #555;
}

.share-dialog
{
	width: min(460px, calc(100vw - 32px));
	border: 0;
	border-radius: 16px;
	padding: 0;
	background: transparent;
	color: var(--text-color);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.share-dialog::backdrop
{
	background: rgba(15, 20, 25, 0.56);
}

.share-dialog-content
{
	background: var(--card-bg);
	border: 1px solid var(--border-color);
	border-radius: 16px;
	padding: 20px;
}

.share-dialog-header
{
	position: relative;
	display: grid;
	place-items: center;
	align-items: center;
	min-height: 36px;
	font-size: 1.05rem;
}

.share-dialog-close
{
	position: absolute;
	top: 0;
	right: 0;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: var(--btn-bg);
	color: var(--btn-text);
	font: inherit;
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
}

.share-dialog-close:hover,
.share-dialog-close:focus-visible
{
	background: var(--btn-hover);
}

.share-targets
{
	display: flex;
	align-items: flex-start;
	gap: 20px;
	margin: 22px 0;
	padding: 2px 4px 8px;
	overflow-x: auto;
}

.share-target
{
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	flex: 0 0 64px;
	border: 0;
	border-radius: 8px;
	padding: 4px 0;
	color: var(--text-color);
	text-decoration: none;
	font-size: 0.72rem;
	font-weight: 400;
}

.share-target:hover,
.share-target:focus-visible
{
	background: transparent;
}

.share-target:hover .share-target-icon,
.share-target:focus-visible .share-target-icon
{
	filter: brightness(1.15);
	transform: scale(1.04);
}

.share-target-icon
{
	display: grid;
	place-items: center;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	transition: filter 0.15s ease, transform 0.15s ease;
}

.share-target-icon img
{
	display: block;
	width: 24px;
	height: 24px;
	object-fit: contain;
}

.share-target-x
{
	background: #000;
}

.share-target-bluesky
{
	background: #1185fe;
}

.share-target-bluesky img
{
	width: 28px;
	height: 25px;
}

.share-copy-row
{
	display: flex;
	align-items: stretch;
	gap: 8px;
}

.share-url
{
	min-width: 0;
	flex: 1;
	border: 1px solid var(--border-color);
	border-radius: 12px;
	background: var(--bg-color);
	color: var(--text-color);
	padding: 9px 10px;
	font: inherit;
	font-size: 0.8rem;
}

.share-copy-button
{
	flex: 0 0 auto;
	border: 0;
	border-radius: 999px;
	background: var(--filter-active);
	color: var(--filter-text);
	padding: 8px 14px;
	font: inherit;
	font-size: 0.8rem;
	font-weight: 700;
	cursor: pointer;
}

.share-copy-button:hover,
.share-copy-button:focus-visible
{
	filter: brightness(1.08);
}

.share-status
{
	min-height: 1.2em;
	margin-top: 6px;
	color: var(--secondary-text);
	font-size: 0.75rem;
	text-align: right;
}
